Can ffmpeg read filters from a text file?
Use the -filter_complex_script
option.
From the documentation:
This option is similar to
-filter_complex
, the only difference is that its argument is the name of the file from which a complex filtergraph description is to be read.