[FFmpeg-user] Using filename pattern and filter_complex

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Jun 22 00:47:56 EEST 2018

2018-06-21 13:43 GMT+02:00, Taner Sener <tanersener at gmail.com>:
> Hi all,
> Do you know if it is possible to access streams of input files defined by a
> filename pattern? I want to use them inside -filter_complex but didn't find
> a demuxer which provides me that. Tried concat and image2 demuxers but both
> didn't work. Concat demuxer is concatenating them as it should be and
> image2 is doing something similar. Maybe I'm missing something.
> This is my example. There are input images specified with 'photo%d.jpg'
> pattern. I'm trying to use the second one inside -filter_complex with [1:v]
> but it gives 'Invalid file index' error.

Are you searching for the "start_number" option of the image2 demuxer?

Reading files with "%d" concatenates them, you cannot select them
with a stream specifier.

Carl Eugen

More information about the ffmpeg-user mailing list