On Mon, 2010-06-14 at 10:23 +0100, herbert westmacott wrote: > > On 9 June 2010 11:43, Tomas Härdin <[email protected]> wrote: > > > On Wed, 2010-06-09 at 11:25 +0100, herbert westmacott wrote: > > > Hi > > > > > > Im looking to see if its possible to provide a custom decoder for a codec > > ID > > > that ffmpeg already supports. > > > > > > For example ffmpeg provides a decoder for h264, if I provide my own > > custom > > > decoder, how to I tell ffmpeg API which decoder to use? The same > > question > > > applies to the encoder side for a codec ID that is already covered, in > > this > > > a "vcodec" option can be used on the CLI but how do we acheive this using > > > the API. > > > > > > Im interested more in using the ffmpeg API rather than the CLI. > > > > > > Thanks > > > > Look up the codecs using their names rather then their codec IDs, or > > register them further up the list in allcodecs.c. > > > > /Tomas > > > > > Hi Tomas > > So if i specify a specific codec by name via the "-vcodec" option then > define a decoder and an encoder for this name in the libavcodec then ffmpeg > will use the decoder/encoder for this named codec, even if theres other > codecs specified for the given CODEC_ID, e.g. h264. > > Thanks >
Well, it'll work for encoders. For decoders I am less sure. That's why I suggested you register your own codecs before the normal ones. /Tomas
signature.asc
Description: This is a digitally signed message part
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
