View previous topic :: View next topic |
Author |
Message |
joaander Tux's lil' helper
Joined: 30 Apr 2004 Posts: 132
|
Posted: Mon Jul 05, 2004 12:09 am Post subject: faad not working [solved] |
|
|
On my athlon gentoo box:
Code: | joaander@fileserver joaander $ faac test.wav test.aac
<snipped header for brevity>
libfaac version 1.23.5 (Jul 4 2004)
Quantization quality: 100
Bandwidth: 16000 Hz
Object type: Low Complexity(MPEG-2) + M/S
Encoding test.wav to test.aac
frame | elapsed/estim | play/CPU | ETA
4763/4763 (100%)| 14.8/14.8 | 7.495 | 0.0
joaander@fileserver joaander $ faad test.aac
<snipped header for brevity>
test.aac file info:
ADTS, 110.597 sec, 115 kbps, 44100 Hz
---------------------
| Config: 2 Ch |
---------------------
| Ch | Position |
---------------------
| 00 | Left front |
| 01 | Right front |
---------------------
Decoding test.aac took: 1.89 sec. 58.52x real-time.
|
*joaander transfers test.aac over to his new dual Opteron 246 box running 64-bit gentoo*
Code: |
joaander@neutron joaander $ faad test.aac
...........................................................
Error: Pulse coding not allowed in short blocks
Error: Pulse coding not allowed in short blocks
Error: Pulse coding not allowed in short blocks
Error: Pulse coding not allowed in short blocks
Error: Pulse coding not allowed in short blocks
Segmentation fault.aac.
joaander@neutron joaander $
|
:(
I get exactly the same behavior with faad2-2.0-r2 (stable amd64) and faad2-2.0-rc3-r1 (~amd6). faadv2-1.1 would not compile. Also, i get exactly the same behavior after compiling with CFLAGS="". The xmms faad plugin is similarly broken and produces no output.
This is an otherwise stable system with 0 (other) problems so far (*knock on wood*).
Code: | joaander@neutron joaander $ gcc --version
gcc (GCC) 3.4.0 20040601 (Gentoo Linux 3.4.0-r6, ssp-3.4-2, pie-8.7.6.3)
|
Does anyone have any suggestions? I open to ways to get faad/xmms to work, or any other player that can play aac files. All other players i have tried that use faad as a decoder are broken. mpeg4ip, which i don't even know if it can play music files, wouldn't compile.
Last edited by joaander on Sat Aug 06, 2005 3:24 pm; edited 2 times in total |
|
Back to top |
|
|
nutznboltz Apprentice
Joined: 23 Apr 2004 Posts: 239
|
|
Back to top |
|
|
joaander Tux's lil' helper
Joined: 30 Apr 2004 Posts: 132
|
Posted: Thu Aug 04, 2005 7:15 pm Post subject: |
|
|
Wow, old post. Guess I should have marked it solved.
Anyway, for those who don't know, faad2 still doesn't work on amd64, despite my own pathetic attempt at a patch (look it up in bugs.gentoo.org). The CVS version at www.audiocoding.org works... except the xmms plugin skips the last 2 seconds of every track which makes it useless to me. Other nice programs like amarok which uses xine-lib for aac which uses faad2, of course don't work.
Hmm, maybe amarok linked to xine-lib using the cvs faad2 will not have the 2 second cutoff problem. Maybe its worth a faad2-cvs ebuild.
Anyways, as in the thread nutznboltz pointed out, mp4player from the mpeg4ip package works. |
|
Back to top |
|
|
Corona688 Veteran
Joined: 10 Jan 2004 Posts: 1204
|
Posted: Fri Aug 05, 2005 3:46 am Post subject: |
|
|
Arrrgh. Have you tried rebuilding it? I've solved it and gotten the fix in portage if they haven't removed it again. _________________ Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html |
|
Back to top |
|
|
joaander Tux's lil' helper
Joined: 30 Apr 2004 Posts: 132
|
Posted: Fri Aug 05, 2005 3:41 pm Post subject: |
|
|
Quote: | Arrrgh. Have you tried rebuilding it? I've solved it and gotten the fix in portage if they haven't removed it again. |
Hey, cool, you're right. Looks like some people picked up and got the patch to work after all. https://bugs.gentoo.org/show_bug.cgi?id=61528 |
|
Back to top |
|
|
joaander Tux's lil' helper
Joined: 30 Apr 2004 Posts: 132
|
Posted: Sat Aug 06, 2005 3:23 pm Post subject: |
|
|
Well, faad2-2.0-r7 works on the command line but not in xmms. I tried amarok with the default xine-lib decoder, but it just plays popping sounds. Turns out that xine-lib uses its own internal version of faad2 as an internal library (WTF is up with that? kinda defies the point of a shared library). So, i tried the ~amd64 gstreamer-faad plugin, and still no luck! On a whim, I changed the extension of the file from .m4a, which to my understanding is fairly common, to .aac and it works! (this appears to be a known extension issue with amarok). Time for some mass renaming.
So, good news for gstreamer based players. Still no good news for xine-lib players. The bug has already been submitted to xine: http://sourceforge.net/tracker/index.php?func=detail&aid=1111791&group_id=9655&atid=109655 . Any bets on how many years before it gets fixed? |
|
Back to top |
|
|
toofastforyahuh Apprentice
Joined: 18 May 2004 Posts: 164
|
Posted: Fri Feb 24, 2006 5:24 pm Post subject: |
|
|
Does this patch work with vlc or ffplay?
I've tried both -r7 and -r11, followed by recompiles of ffmpeg and vlc. I have the aac USE flag set, and I don't use crazy ricer CFLAGS.
For any given Quicktime/h.264/AAC file I try,
ffplay will decode h.264 video, but with no sound.
vlc will decode h.264 video, but will have broken sound. |
|
Back to top |
|
|
|