Short answer: LosslessCut is a free desktop app that trims, splits and joins video and audio files without re-encoding them. Cuts take seconds, quality stays exactly the same, and an experimental HTTP API lets scripts and agents drive it.
Most video editors decode your file, apply changes and then encode a brand new file. That takes time and always loses a little quality. LosslessCut skips that step. It copies the original data almost directly, with FFmpeg doing the work underneath, so a two hour recording can be trimmed in the time it takes to save a file.
The project describes itself as "the swiss army knife of lossless video/audio editing". It has been around for years, has about 45,000 stars on GitHub, and is released under GPL-2.0.
For creators, it is the quick first pass before the real edit. Cut the dead air from a podcast recording, pull a highlight from a livestream, or split a long tutorial into short pieces for social media. None of that needs a full editor or a render.
For agent builders, the interesting part is the control layer. LosslessCut has a basic command line and an HTTP API. You start it with --http-api, then send actions like openFiles, goToTimecodeDirect or export, and wait for an export-complete event that returns the output paths. An agent can find cut points with a transcript or the silence detection, then hand the cuts to LosslessCut to export. The project marks this API as experimental, so it may change between versions.
If you need effects, captions, titles and a full timeline, look at a full editor instead. We covered Concat, a free and open source CapCut alternative, in a separate article on masterphub.io. The two work well together: cut with LosslessCut, then edit in a full editor.
Source: mifi/lossless-cut on GitHub
More AI tools and ready prompts at masterphub.io