Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE

How to encode Xvid / DivX video with ffmpeg

A collection of useful tutorials for some common tasks.

How to encode Xvid / DivX video with ffmpeg

Postby burek » Wed May 02, 2012 10:06 am

Although, it might be logical to use a command like this, to encode an XVID video:
Code: Select all
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:
Code: Select all
ffmpeg -i input.avi -vcodec mpeg4 -vtag xvid output.avi

Source: http://ffmpeg.org/faq.html#How-do-I-enc ... fmpeg_003f
"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."
Posts: 864
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: Hot to encode Xvid / DivX video with ffmpeg

Postby AntumDeluge » Sun May 06, 2012 7:19 pm

Thanks! I was trying to remember the alternative to libxvid.
Posts: 2
Joined: Sun May 06, 2012 7:09 pm

Re: Hot to encode Xvid / DivX video with ffmpeg

Postby chagi » Thu Feb 12, 2015 10:22 am

Specifying settings for each input file was too tedious and I was looking for a "magic" setting to always make it look good for DVD.
I didn't find anything readily available for this purpose but eventually <jnvsor> in #ffmpeg (irc) passed on the following cheat code using a filter with custom settings which always seems to get it right................... :oops:
Posts: 1
Joined: Thu Feb 12, 2015 10:21 am

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests