[Libav-user] mp2/mp3 missing header at decoding of mpegts file, but only in OS X
Kalileo
kalileo at universalx.net
Wed Mar 7 17:15:58 CET 2012
On Mar 7, 2012, at 14:15 , Carl Eugen Hoyos wrote:
> Kalileo <kalileo at ...> writes:
>
>> Works fine on windows (with any of these files), however on
>> OS X Lion audio is broken (with every of these files).
>
> (Complete, uncut console output when failing missing.)
>
> Please try with ./configure --cc=clang (removing the other options),
> and please try with things like --disable-optimizations or
> --disable-asm / yasm.
>
> Carl Eugen
Thank you Carl-Eugen, that helped a lot already.
I downloaded new snapshots of ffmpeg, libx264 and lame, and, as you proposed, I compiled ffmpeg with
$ CLFAGS="-DHAVE_LRINTF" ./configure --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libx264 --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang --disable-optimizations --disable-asm --disable-yasm
There are still errors with aac, such as:
[aac @ 0x10e804200] Number of bands (41) exceeds limit (36).
[aac @ 0x10e804200] Error decoding AAC frame header.
[aac @ 0x10e804200] channel element 2.8 is not allocated
and
[aac @ 0x10e804200] invalid band type
[aac @ 0x10e804200] channel element 2.8 is not allocated
[aac @ 0x10e804200] channel element 2.8 is not allocated
[aac @ 0x10e804200] Number of bands (37) exceeds limit (36).
[aac @ 0x10e804200] channel element 0.0 is not allocated
but just about 10% of the error volume before.
With mp3/mp2 unfortunately no change, same amount of errors.
To avoid any misunderstandings, this is happening when using the standard libavformat/libavcodec functions in custom code on OS X Lion. The same code works without any error on windows. Also the same source files play without any error using ffplay, also on OS X.
IIRC I have not seen these errors before the upgrade from OS X Snow Leopard to Lion. Could this be something Lion specific?
Here is what ffmpeg -i says about a source file:
$ /usr/local/bin/ffmpeg -i test-1.ts
ffmpeg version 0.9.1.git-1eabd71 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 7 2012 21:50:55 with clang 2.1 (tags/Apple/clang-163.7.1)
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libx264 --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang --disable-optimizations --disable-asm --disable-yasm
libavutil 51. 42.100 / 51. 42.100
libavcodec 54. 10.100 / 54. 10.100
libavformat 54. 2.100 / 54. 2.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 63.100 / 2. 63.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 7.100 / 0. 7.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 0x7fbafa83d800] max_analyze_duration 5000000 reached at 5000000
Input #0, mpegts, from 'test-1.ts':
Duration: 00:19:27.00, start: 37862.570000, bitrate: 212 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 64 kb/s
Stream #0:1[0x101]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
At least one output file must be specified
More information about the Libav-user
mailing list