7.6. Encoding with the libavcodec codec family
Prev | Chapter 7. Encoding with MEncoder | Next

## 7.6. Encoding with the `libavcodec` codec family

`libavcodec` provides simple encoding to a lot of interesting video and audio formats. You can encode to the following codecs (more or less up to date):

Codec name | Description
--- | ---
mjpeg | Motion JPEG
ljpeg | Lossless JPEG
h263 | H263
h263p | H263 Plus
mpeg4 | ISO standard MPEG4 (DivX 5, XVID compatible)
msmpeg4 | pre-standard MPEG4 variant by MS, v3 (aka DivX3)
msmpeg4v2 | pre-standard MPEG4 by MS, v2 (used in old asf files)
wmv1 | Windows Media Video, version 1 (aka WMV7)
wmv2 | Windows Media Video, version 2 (aka WMV8)
rv10 | an old RealVideo codec
mpeg1video | MPEG1 video
mpeg2video | MPEG2 video
huffyuv | lossless compression
asv1 | ASUS Video v1
asv2 | ASUS Video v2
ffv1 | FFmpeg's lossless video codec

The first column contains the codec names that should be passed after the `vcodec` config, like: `-lavcopts vcodec=msmpeg4`

An example, with MJPEG compression:

    mencoder dvd://2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -oac copy

Prev | Up | Next
7.5. Fixing AVIs with broken index or interleaving | Home | 7.7. Encoding from multiple input image files (JPEG, PNG, TGA, SGI)