Version 1 (modified by burek, 5 years ago) (diff)


Although, it might be logical to use a command like this, to encode an XVID video:

ffmpeg -i input.avi -vcodec libxvid output.avi

but, there is another (better?) way of doing the same thing, with an internal ffmpeg's encoder, without the need for the external library, such as libxvid:

ffmpeg -i input.avi -vcodec mpeg4 -vtag xvid output.avi


"Both Xvid and DivX (version 4+) are implementations of the ISO MPEG-4 standard (note that there are many other coding formats that use this same standard). Thus, use ’-c:v mpeg4’ to encode in these formats. The default fourcc stored in an MPEG-4-coded file will be ’FMP4’. If you want a different fourcc, use the ’-vtag’ option. E.g., ’-vtag xvid’ will force the fourcc ’xvid’ to be stored as the video fourcc rather than the default."