Changes between Version 3 and Version 4 of Encode/MPEG-4


Ignore:
Timestamp:
Jun 11, 2014, 5:56:50 AM (5 years ago)
Author:
Timothy_Gu
Comment:

Xvid -> MPEG-4

Legend:

Unmodified
Added
Removed
Modified
  • Encode/MPEG-4

    v3 v4  
    1 = Xvid / Divx Encoding Guide =
     1= MPEG-4 Encoding Guide =
    22
    3 FFmpeg has two encoders to output Xvid video. The external libxvid encoding library:
     3'''[[wikipedia:MPEG-4 Part 2]]''', aka '''MPEG-4''', '''Xvid''', and '''DivX''', is a video codec that was most widely used before the wide adoption of [[Encode/H.264|H.264]]. FFmpeg has two encoders to output MPEG-4 video. The external libxvid encoding library:
    44{{{
    55ffmpeg -i input.avi -c:v libxvid output.avi
     
    1313The native encoder has the advantage of not requiring an external library and both encoders should provide a similar output.
    1414
    15 From [http://ffmpeg.org/faq.html#How-do-I-encode-Xvid-or-DivX-video-with-ffmpeg_003f How do I encode Xvid or DivX video with ffmpeg?]:
    16 
    17   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.
     15The 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.
    1816
    1917'''Note:''' this guide uses AVI container files for the examples, as the most common usage of Xvid video is currently for older hardware devices that don't support H.264 or the MP4 container. If you are using MPEG4 for some other reason, you should probably use the more modern MP4 or MKV (Matroska) containers. For audio the MP3 codec is used; again, this is because certain old hardware devices support MP3 audio only, and you can consider using another codec like AAC. Also, consider using H.264 video as described in the [[https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide|x264 Encoding Guide]], as it will give you better quality video for a given file size, and is very well supported in recent hardware and software.