[FFmpeg-user] concat demuxer filter_complex (fade)

Ted Park kumowoon1025 at gmail.com
Thu Apr 16 06:48:41 EEST 2020


Hi,

> I learned, that it's possible to define multiple inputs and reference then
> later in the filter_complex to the different inputs like this:
> 
> ffmpeg -i vid1.mkv -i vid2.mkv -i vid3.mkv -filter_complex
> "[0:v]fade=t=in:st=0:d=1[v0]; [1:v]fade=t=in:st=0:d=1[v1];
> [2:v]fade=t=in:st=0:d=1[v2];
> [v0][0:a][v1][1:a][v2][2:a]concat=n=3:v=1:a=1[v][a]" -map "[a]" -map "[v]"
> out.mkv
> 
> But is this possible with using the concat demuxer (providing the files by
> writing them into a file) too? And if yes how?
> (Goal is to specify the videos through a file, using the concat demuxer, but
> apply the fade filter to each of the video files before concatenating them.
> Is it possible to make this in one step?)

> Can you please elaborate what you mean by fragile and complicated?


I mean, you've got to see how that is complicated if nothing else.

Anyway, I remembered that using the ffconcat file, you can define streams within the virtual single input from the concat demuxer, but I've only ever seen it used to specify specific elementary streams within vob files, not sure if it can be used with other demuxers. Maybe someone else does?

Regards,
Ted Park



More information about the ffmpeg-user mailing list