[Libav-user] How to specify the audio sample format when opening a file
xuanyu.huang at gmail.com
Wed Feb 6 23:38:56 CET 2013
Yes, I checked the AAC decoder code and found that only AV_SAMPLE_FMT_FLTP is supported.
So I have to do conversion myself.
在 2013-2-6，21:17，Carl Eugen Hoyos <cehoyos at ag.or.at> 写道：
> 黄轩宇 <xuanyu.huang at ...> writes:
>> Our application, when used with old version to
>> open a MP4 file with AAC encoded audio, the populated
>> pAudioCodecCtx->sample_fmt == AV_SAMPLE_FMT_FLP, but
>> when used with latest FFMPEG version, this value
>> changed to AV_SAMPLE_FMT_FLTP.
>> I found a member AVCodecContext::request_sample_fmt
>> which is said can be set by user.
> This is not a solution because most decoders
> only support one sample_fmt.
> Use the aconvert filter to convert between
> sample formats.
> Carl Eugen
> Libav-user mailing list
> Libav-user at ffmpeg.org
More information about the Libav-user