[FFmpeg-user] Selecting MPEG TS child streams for filter_complex

Ted Park kumowoon1025 at gmail.com
Tue Mar 17 08:32:44 EET 2020


Hello,

> Is there any reason, then, not to always put -filter_complex as the first parameters of the command line? The Synopsis line in the docs shows global options first but most of the doc examples don't.
> 
> Example-
> ffmpeg -i video.mkv -i image.png -filter_complex '[0:v][1:v]overlay[out]' -map '[out]' out.mkv"
> 
> Or is there another reason for listing inputs, then -filter_complex, then outputs?

Unless they were precomposed filter “script” files (and even then) I think having input before the filter followed by the output is the intuitive way to structure the command, if that counts as a reason.

Iirc, “complex” filtergraphs as opposed to the older/simpler -vf, -af filters have implicit input and output pads for each chain that can be remapped pretty freely, and not according to its position.


Regards,
Ted Park



More information about the ffmpeg-user mailing list