[Libav-user] List of FMT for available decoders

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Mar 11 10:49:46 CET 2014


Ingo Foerster <foerster at ...> writes:

> because many decoders act different, is there a list 
> available for the FMT that each decoder is using?

(FMT is a little unclear imo.)

If you mean the colour space and the raw audio format, 
then you can read AVCodecContext->pix_fmt and 
AVCodecContext->sample_fmt to get the format the 
decoder produced for your input.
There is no "list" because afaict it wouldn't help you: 
The output format depends on the input you provide.

(There are decoders for which you can specify a 
preferred output format, but this is very unusual, 
primarily used to stop libavcodec from decoding alpha 
planes if they aren't needed.)

Carl Eugen



More information about the Libav-user mailing list