[Libav-user] ffmpeg command line for video rendered from set of image snapshots

Josef Vosyka pepavo at gmail.com
Tue Jul 19 22:16:41 CEST 2016


What is the correct parameter for ffmpeg cmd line with libopenh264 to
make a video from image snapshots.

I used for example this:

    ffmpeg -start_number 1 -framerate 2 -i img_%d.jpg -c:v h264
-profile:v baseline -r 25 -s 208:160 movie.mp4

I've tried:
- various jpeg, png sets of images
- many other variants of cmd with/without -profile, -r, -s, ...
-preset is not recognized ...

LOG shows that proper encoder libopenh264 is recognized.

The error message is:

    Error while opening encoder for output stream #0:0 - maybe
incorrect parameters such as bit_rate, rate, width or height

Always this same error for all possible parameter variations.

Appreciate your help,
--Josef Vosyka


More information about the Libav-user mailing list