

Old syntax: ffmpeg -y -i input.file -vcodec mpeg4 -b 868k -vtag DIVX -s 640x480 -an -pass 1 -f rawvideo /dev/nullįfmpeg -i input.file -vcodec mpeg4 -b 868k -vtag DIVX -s 640x480 -acodec libmp3lame -ab 192k -ac 2 -ar 44100 -pass 2 output.avi Up-to-date syntax: ffmpeg -y -i input.file -c:v mpeg4 -b:v 868k -tag:v DIVX -s 640x480 -an -pass 1 -f rawvideo /dev/nullįfmpeg -i input.file -c:v mpeg4 -b:v 868k -tag:v DIVX -s 640x480 -c:a libmp3lame -b:a 192k -ac 2 -ar 44100 -pass 2 output.avi
#AVI TO DIVX CONVERTER MOVIE#
These examples will fit a 90-minute movie onto a 700 MB CD-ROM. Use this if you want to target a specific size, otherwise just use the VBR quality-targeting -qscale option. Note that Windows users need to use NUL rather than /dev/null. Old syntax: ffmpeg -i input.file -vcodec mpeg4 -qscale 5 -vtag DIVX -s 640x480 -acodec libmp3lame -aq 5 -ac 2 -ar 44100 output.avi Up-to-date syntax: ffmpeg -i input.file -c:v mpeg4 -q:v 5 -tag:v DIVX -s 640x480 -c:a libmp3lame -q:a 5 -ac 2 -ar 44100 output.avi See here for a bit more information anything up to 6 will get you good quality. You can similarly use qscale with libmp3lame, where the range is 0–9, with lower numbers giving better quality. This will target a given quality, with a variable bit rate.

The qscale range for mpeg4 is 1–31, where lower=better quality/higher filesize, and 3–6 can normally be considered a useful range. See this blog post for slightly more in-depth information. Either use a higher bit rate and/or use two-pass encoding, or use -qscale to target a quality level in a variable bit rate mode, rather than a specific bit rate.
