[BUG] FAAD: compressed input bitrate missing, assuming 128kbit/s!
Hello, I've found an Apple h.264/AAC trailer that doesn't have any sound. I don't know if the problem lies with mplayer or with faad, but I figure somebody here will be able to tell for sure. The file is available at: http://movies.apple.com/movies/disney/thechroniclesofnarnia/chroniclesofnarn... A full 'mplayer -v' log is attached. -Corey
I just realized that the message in the subject happens with other Apple trailers that play fine, so it might not be relevant. Nevertheless, mplayer ends up giving up on sound with this file. Thanks, Corey
--- Corey Hickey <bugfood-ml@fatooh.org> wrote:
I just realized that the message in the subject happens with other Apple trailers that play fine, so it might not be relevant. Nevertheless, mplayer ends up giving up on sound with this file.
Thanks, Corey
Try to get latest faad from faad cvs and install it as external library. The problem is that it implements some more features that are already used. The reason it is not synced with mplayer cvs version is that Nero people had putted "explanation" to the GPL clause that according to FSF is not GPL compatable. The problem is very simmilar to XFree86 license hassle. __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/
On Tue, Dec 27, 2005 at 12:54:18AM -0800, Ivan Kalvatchev wrote:
--- Corey Hickey <bugfood-ml@fatooh.org> wrote:
I just realized that the message in the subject happens with other Apple trailers that play fine, so it might not be relevant. Nevertheless, mplayer ends up giving up on sound with this file.
Try to get latest faad from faad cvs and install it as external library. The problem is that it implements some more features that are already used.
The reason it is not synced with mplayer cvs version is that Nero people had putted "explanation" to the GPL clause that according to FSF is not GPL compatable. The problem is very simmilar to XFree86 license hassle.
To be precise, plans to sync with a version before the licensing change are still there. This should fix most of the playback problems. Diego
Ivan Kalvatchev wrote:
I just realized that the message in the subject happens with other Apple trailers that play fine, so it might not be relevant. Nevertheless, mplayer ends up giving up on sound with this file.
Thanks, Corey
Try to get latest faad from faad cvs and install it as external library. The problem is that it implements some more features that are already used.
Thanks for the tip. It doesn't seem to make any difference, though. I built faad2 cvs, installed it, and built mplayer with --disable-internal-faad. I know mplayer is using the external faad now: bugfood@bugfood:~$ ldd /usr/local/src/mplayer/main/mplayer | grep faad libfaad.so.0 => /usr/local/lib/libfaad.so.0 (0x00002aaaab031000) I had a difficult time finding faad2 cvs. Am I getting it from the right place? cvs -z9 -d:pserver:anonymous@cvs.audiocoding.com:/cvsroot/faac co -P faad2
The reason it is not synced with mplayer cvs version is that Nero people had putted "explanation" to the GPL clause that according to FSF is not GPL compatable. The problem is very simmilar to XFree86 license hassle.
Yuck. :( Thanks again, Corey
On Mon, 26 Dec 2005 19:53:56 -0800 Corey Hickey <bugfood-ml@fatooh.org> wrote:
I've found an Apple h.264/AAC trailer that doesn't have any sound. I don't know if the problem lies with mplayer or with faad, but I figure somebody here will be able to tell for sure.
Looks like MPlayer is to blame. That audio stream is 7.1 channels, which mplayer apparently can't handle. With -dumpaudio, I can output an AAC file that faad is happy to decode to a wav. I haven't yet been able to play anything back, as none of the programs I use will even downmix 8 channel wav files.
RC wrote:
I've found an Apple h.264/AAC trailer that doesn't have any sound. I don't know if the problem lies with mplayer or with faad, but I figure somebody here will be able to tell for sure.
Looks like MPlayer is to blame. That audio stream is 7.1 channels, which mplayer apparently can't handle.
Ah, that's it. Thanks. I remember seeing several places in mplayer audio code that assume a maximum of 6 channels; up to now I'd never seen more in the wild. Maybe I'll be able to fix mplayer to handle more, though, at this point, I don't know what the proper fix is. It would be nice to handle an arbitrary number.
With -dumpaudio, I can output an AAC file that faad is happy to decode to a wav. I haven't yet been able to play anything back, as none of the programs I use will even downmix 8 channel wav files.
When I use faad on the dumpstream it downmixes to 6 channels, which I can then downmix to 2 with: mplayer stream.wav -af pan=2:1:0:0:1:1:0:0:1:0.5:0.5:1:1 Or, 'faad -d' downmixes to 2 channels. The audio by itself sounds fine to me. Out of curiosity, how were you able to determine that the audio track has 8 channels? Thanks, Corey
On Tue, 27 Dec 2005 19:12:30 -0800 Corey Hickey <bugfood-ml@fatooh.org> wrote:
When I use faad on the dumpstream it downmixes to 6 channels,
Odd. What version of faad are you trying? V2.1 beta here, prints out: stream.aac file info: RAW --------------------- | Config: 7.1 Ch | --------------------- | Ch | Position | --------------------- | 00 | Center front | | 01 | Left front | | 02 | Right front | | 03 | Left side | | 04 | Right side | | 05 | Left back | | 06 | Right back | | 07 | LFE | --------------------- And even with -d, it doesn't downmix at all.
Out of curiosity, how were you able to determine that the audio track has 8 channels?
See above.
RC wrote:
On Tue, 27 Dec 2005 19:12:30 -0800 Corey Hickey <bugfood-ml@fatooh.org> wrote:
When I use faad on the dumpstream it downmixes to 6 channels,
Odd. What version of faad are you trying? V2.1 beta here, prints out:
I'm using CVS from yesterday morning. When run with no arguments it says it's 2.1 beta. I can't find any actual download of 2.1 beta, only 2.0, which doesn't work at all (it prints "Error: Pulse coding not allowed in short blocks" a few dozen times and doesn't do anything. I could be that my CVS checkout is broken. I had to fix a couple minor build errors to even make it compile.
stream.aac file info: RAW
--------------------- | Config: 7.1 Ch | --------------------- | Ch | Position | --------------------- | 00 | Center front | | 01 | Left front | | 02 | Right front | | 03 | Left side | | 04 | Right side | | 05 | Left back | | 06 | Right back | | 07 | LFE | ---------------------
Or, perhaps we're not even looking at the same file. $ md5sum chroniclesofnarnia-pre_h1080p.mov stream.dump 5d61e6c75fef8432ac43f74e99326b3d chroniclesofnarnia-pre_h1080p.mov 1351126f61091d6a9ae8902e9981c3c6 stream.dump stream.dump file info: RAW --------------------- | Config: 6 Ch | --------------------- | Ch | Position | --------------------- | 00 | Center front | | 01 | Unknown | | 02 | Unknown | | 03 | Unknown | | 04 | Unknown | | 05 | Unknown | ---------------------
And even with -d, it doesn't downmix at all.
The usage information says "Down matrix 5.1 to 2 channels", so maybe my file actually has only 6 channels. -Corey
On Tue, 27 Dec 2005 22:42:46 -0800 Corey Hickey <bugfood-ml@fatooh.org> wrote:
Or, perhaps we're not even looking at the same file.
$ md5sum chroniclesofnarnia-pre_h1080p.mov stream.dump 5d61e6c75fef8432ac43f74e99326b3d chroniclesofnarnia-pre_h1080p.mov 1351126f61091d6a9ae8902e9981c3c6 stream.dump
Same here: md5sum chroniclesofnarnia-pre_h1080p.mov stream.aac 5d61e6c75fef8432ac43f74e99326b3d chroniclesofnarnia-pre_h1080p.mov 1351126f61091d6a9ae8902e9981c3c6 stream.aac So it looks like my faad version is buggy.
RC wrote:
Or, perhaps we're not even looking at the same file.
$ md5sum chroniclesofnarnia-pre_h1080p.mov stream.dump 5d61e6c75fef8432ac43f74e99326b3d chroniclesofnarnia-pre_h1080p.mov 1351126f61091d6a9ae8902e9981c3c6 stream.dump
Same here: md5sum chroniclesofnarnia-pre_h1080p.mov stream.aac 5d61e6c75fef8432ac43f74e99326b3d chroniclesofnarnia-pre_h1080p.mov 1351126f61091d6a9ae8902e9981c3c6 stream.aac
So it looks like my faad version is buggy.
QuickTime on Windows says the file has 6 channels as well. By the way, try out the patch I sent to -dev-eng. :) Date: Wed, 28 Dec 2005 23:42:46 -0800 Subject: [MPlayer-dev-eng] [PATCH] (partially) support QuickTime sound atom version 2 -Corey
Corey Hickey wrote:
Hello,
I've found an Apple h.264/AAC trailer that doesn't have any sound. I don't know if the problem lies with mplayer or with faad, but I figure somebody here will be able to tell for sure.
The file is available at: http://movies.apple.com/movies/disney/thechroniclesofnarnia/chroniclesofnarn...
A full 'mplayer -v' log is attached.
I think I've managed to trace the problem down, though I don't yet know how to fix it. This file appears to use a version 2 audio track, which mplayer can't parse. Look at libmpdemux/demux_mov.c, line 665: // TODO: fix parsing for files using version 2. As it is now, version 2 tracks get parsed incorrectly, which results in a variety of different audio problems (I have a few other files with version 2 tracks). Is there any documentation around on the structure of version 2 audio tracks? This document seems to be outdated: http://developer.apple.com/documentation/QuickTime/QTFF/QTFFChap3/chapter_4_... Anyway, I'll look at tomorrow and, if nobody can find anything, I'll try bugging Apple to see if we can get some specs so somebody can fix this bug. -Corey
participants (4)
-
Corey Hickey -
Diego Biurrun -
Ivan Kalvatchev -
RC