Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
faad not working [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
joaander
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2004
Posts: 132

PostPosted: Mon Jul 05, 2004 12:09 am    Post subject: faad not working [solved] Reply with quote

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
View user's profile Send private message
nutznboltz
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 239

PostPosted: Thu Aug 04, 2005 3:06 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-284457.html
Back to top
View user's profile Send private message
joaander
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2004
Posts: 132

PostPosted: Thu Aug 04, 2005 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Corona688
Veteran
Veteran


Joined: 10 Jan 2004
Posts: 1204

PostPosted: Fri Aug 05, 2005 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message
joaander
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2004
Posts: 132

PostPosted: Fri Aug 05, 2005 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
joaander
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2004
Posts: 132

PostPosted: Sat Aug 06, 2005 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
toofastforyahuh
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 157

PostPosted: Fri Feb 24, 2006 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum