0

I'm having trouble encoding a sequence of images (that might not start from 0000) to an avi

ffmpeg -y -f image2 -framerate 30 -start_number 560 -i "images_%04d.png" -an -vcodec rawvideo -pix_fmt bgr24 video.avi

Works, but is an uncompressed .avi (and is therefore enormous in size). So we try to encode it with xvi:

ffmpeg -y -f image2 -framerate 30 -start_number 560 -i "images_%04d.png" -vcodec xvid video.avi -an video.avi

Only that doesn't do the trick, it says unknown encoder 'xvid'. I can convert the images to an xvid .avi in VirtualDub - I just want to learn how to do in via a command line in FFMPEG

4
  • xvid output video.avi playing in VLC player ? or, Are you able to play it in any media player? try installing the libxvid codec on your system, that might help. Aug 14, 2014 at 9:57
  • Oops that should of read -vcodec xvid video.avi. As it does now
    – Ghoul Fool
    Aug 14, 2014 at 11:28
  • I asked whether the avi file can be played by any media player or not Aug 14, 2014 at 13:11
  • WMP & Virtual dub won't play it. VLC will play it back, but the video is poor (artifacts & streaking)
    – Ghoul Fool
    Aug 14, 2014 at 14:06

1 Answer 1

2

You need to use codec names recognised by ffmpeg. For MPEG-4 part 2 it is either "mpeg4", a native FFmpeg encoder, or the external encoding library "libxvid". So your command should include -vcodec mpeg4 or -vcodec libxvid.

A complete list of codecs supported by ffmpeg is generated by ffmpeg -codecs. You can also run ffmpeg -encoders or ffmpeg -decoders if you want to be more specific. To list private options (these are specific to each encoder) use ffmpeg -h encoder=mpeg4.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .