[Libav-user] How to specify the audio sample format when opening a file
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Feb 6 11:17:00 CET 2013
黄轩宇 <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
More information about the Libav-user