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 | H.263
h263p | H.263+
mpeg4 | ISO standard MPEG-4 (DivX 5, XVID compatible)
msmpeg4 | pre-standard MPEG-4 variant by MS, v3 (AKA DivX3)
msmpeg4v2 | pre-standard MPEG-4 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 | MPEG-1 video
mpeg2video | MPEG-2 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)