[FFmpeg-devel] [PATCH] ffmpeg should look up AVCodec by name

Aurelien Jacobs aurel
Mon Oct 6 01:22:09 CEST 2008


Hi,

Curently, when specifying a codec with -[asv]codec to ffmpeg, it is
first converted to a CODEC_ID_* and then the coresponding AVCodec
is picked up. Problem arise when we have several AVCodec handling the
same CODEC_ID_*. eg: -acodec libvorbis select the internal vorbis
encoder instead of the libvorbis one...
Attached patch ensure we pick up AVCodec using the codec name, when
available. This allows to actually select the libvorbis encoder for
example. This works for both input and output codecs. This also
correctly display the selected codec.

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_codec_by_name.diff
Type: text/x-diff
Size: 5376 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081006/eb75fb84/attachment.diff>



More information about the ffmpeg-devel mailing list