[FFmpeg-user] He aac sampling rate and time stamps

Ronak ronak2121 at yahoo.com
Sun Mar 18 19:42:21 EET 2018

Hey Carl,

Are you sure that this is how HE-AACv2 works? Apple's AVAudioFile class is able to see the correct sampling rate & channel count.
AVURLAsset & Exoplayer does not properly see it though. Does ffmpeg write the sampling rate in multiple parts of the MP4 container?

If so, maybe one of them isn't consistent?


> On Mar 17, 2018, at 8:02 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2018-03-17 12:38 GMT+01:00, Ronak Patel <ronak2121-at-yahoo.com at ffmpeg.org>:
>> Hello,
>> I’m encoding my wav files to HE AAC v2 in 44kHz/32 Kbps and 44/64.
> Command line and complete, uncut console output missing.
>> Ffprobe is correctly showing that the audio is HE AAC v2 stereo with the
>> correct sampling rate and nitrate.
>> When I open the audio in Exoplayer or Apple’s AVURLAsset code, they report
>> that the sampling rate is 22050kHz instead.
> I believe this is how SBR ("HE AAC v2") is defined.
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list