Image sequence to video quality [closed]

The quality of that command’s output is bad for a few reasons:

  • It is encoding using the MPEG-1 codec, which is quite outdated.
  • You are not setting the bitrate, so it is coming up with its own guess, which is probably inadequate.

Try something like:

ffmpeg -f image2 -i image%d.jpg -vcodec mpeg4 -b 800k video.avi

for mpeg 4 video or:

ffmpeg -f image2 -i image%d.jpg -vcodec libx264 -b 800k video.avi

for H.264 video (You will need to have libx264 installed for this to work). You can play around with the bitrate because it depends on the size of your frames what bitrate you will need. Also, running ffmpeg -formats will display all of the output formats and codecs if you want to experiment more.

See the ffmpeg documentation for even more options.

Leave a Comment