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 nameDescription
mjpeg Motion JPEG
ljpeg Lossless JPEG
h263 H263
h263p H263 Plus
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 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

Наш баннер
Вы можете установить наш баннер на своем сайте или блоге, скопировав этот код:
RSS новости