Programmatically controlling LosslessCut / API / CLI
mifi opened this issue · 2 comments
Suggested ways to programmatically control LosslessCut. Feel free to add suggestions in comments below.
command line arguments
- open file or multiple files on launch
- seek to specified time value after file opened on launch #1204
- …
API / actions / macros
I could imagine some API that allows automating actions in LosslessCut, internally and externally. This could be tied to custom keyboard mappings #254
- HTTP API
- allow executing keyboard actions from command line
Run a custom command from segments
See also afterExport event #974 #1347
Ability to press a button in losslesscut and have it run a custom command line (or more commands, e.g. one cmd per segment) and with ability to inject information about the current segments into this command. I think this requires some coding in one way or another by the user.
I think such a «hack» can currently be achieved by creating a custom bash script. Losslesscut will auto save a project .llc
file with json5 containing information about each segment. You could create a bash script that you trigger by a keyboard shortcut (outside losslesscut). Then this script will then read the .llc
file and run the desired commands. The workflow would be:
- Edit segments in losslesscut
- once you’re done, trigger your bash script
this was closed by accident
there's now a new http api