ffmpeg-python
ffmpeg-python copied to clipboard
Introduce script_filename parameter to get_args
This PR adds the script_filename parameter to get_args and compile functions, introducing the ability to sidestep the "command line too long" error that can arise from complex filtergraphs, described in the issue https://github.com/kkroening/ffmpeg-python/issues/161.
It is a backwards compatible change, defaulting to the current behaviour when script_filename is not defined.
Really great addition, I would like to add to that that, you can also pass the args to the script_filename with the movie filter by adding it on top of the script filename, as per the answer of Arnon Weiberg here: https://stackoverflow.com/questions/64407313/is-it-possible-to-provide-input-files-list-to-ffmpeg-in-a-text-file-instead-of-o
(I am a bit lazy to do it sorry haha)