[FFmpeg-devel] AVCodec.supported_samplerates mostly null

Don Moir donmoir at comcast.net
Thu Jun 7 23:20:49 CEST 2012


Noticing that AVCodec.supported_samplerates is null for all audio codecs except mp3 after avcodec_find_encoder.

If this is not available then it's guess work as to what the encoder actually supports.

Seems that this should be a simple thing to fill in.

You can kind of guess that the common sample rates are available, but there are a number of uncommon sample rates that various codecs can support and the only way to tell is trial and error.

So no easy way to enumerate the supported sample rates and probably bit rates as far as I know.


More information about the ffmpeg-devel mailing list