ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

Introduce script_filename parameter to get_args

Open utdemir opened this issue 3 years ago • 1 comments

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.

utdemir avatar Oct 02 '22 00:10 utdemir

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)

Shaf987 avatar Apr 27 '24 22:04 Shaf987