[Libav-user] av_probe_input_buffer wont recognize AAC

Christoph Winter mail.christoph.winter at googlemail.com
Fri Feb 10 20:38:35 CET 2012


Hey all,

I have problems with mp4 files with encoded AAC audio stream. If I use 
av_probe_input_buffer with av_open_input_stream the AAC stream wont get 
recognized correctly; an av_dump_format shows:

Duration: 00:01:41.98, start: 0.000000, bitrate: 1326 kb/s
Stream #0.0(eng): Video: mpeg4, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 
1207 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Metadata:
creation_time : 2011-08-09 09:32:18
Stream #0.1(eng): Audio: aac, stereo, s16, 117 kb/s

as you can se the sample rate is missing; my code works for other 
formats/codecs.
Most surprising is, that if I use the simple av_open_input_file the file 
playes fine.

What does av_open_input_file better than av_open_input_stream?

Thanks,
Christoph

PS: the problem remains with newer versions of libav libraries
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120210/77025820/attachment.html>


More information about the Libav-user mailing list