LosslessCut has limited support for automation through the CLI. Note that these examples assume that you have set up LosslessCut in your PATH
environment. Alternatively you can run it like this:
# First navigate to the folder containing the LosslessCut app
cd /path/to/directory/containing/app
# On Linux:
./LosslessCut arguments
# On Windows:
./LosslessCut.exe arguments
# On MacOS:
./LosslessCut.app/Contents/MacOS/LosslessCut arguments
LosslessCut file1.mp4 file2.mkv
See available settings. Note that this is subject to change in newer versions.
LosslessCut --settings-json '{captureFormat:"jpeg", "keyframeCut":true}'
By default, only a single running instance of LosslessCut is allowed. If you start a new LosslessCut instance from the command line, it will instead pass the list of files onto the already running instance. You can override this behavior by passing this option via the CLI:
LosslessCut --allow-multiple-instances