[FFmpeg-user] image2 examples missing `-f image2`, can that be right?

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Jan 8 01:20:01 EET 2018


2018-01-07 8:08 GMT+01:00 Jim DeLaHunt <from.ffmpeg-user at jdlh.com>:

> I'm reading the documentation for the image2 demuxer[1]. It has three
> examples, in section 20.9.1 Examples.
>
> ffmpeg -framerate 10 -i 'img-%03d.jpeg' out.mkv
> ffmpeg -framerate 10 -start_number 100 -i 'img-%03d.jpeg' out.mkv
> ffmpeg -framerate 10 -pattern_type glob -i "*.png" out.mkv

For input that cannot be auto-detected, the file suffixes "jpeg" and "png"
(and several others) imply the image2 demuxer which in turn is the only
demuxer that understands the "%d" syntax.
Since "img-%03d.jpeg" is not a file that can be auto-detected, the file
suffix will be used to identify the image2 demuxer.

Note in addition that the image2 demuxer is one of the few demuxers
that does not support auto-detection but only works through file suffixes.
There are specific demuxers for jpeg, png and several others that do
support auto-detection (but not the "%d" syntax).

I hope this helps, I will close your ticket (and try to explain there).

Feel free to ask more here, Carl Eugen


More information about the ffmpeg-user mailing list