Bugzilla – Bug 16144
ALAC playback on Linux 64 bit
Last modified: 2011-05-13 09:10:43 UTC
Platform: Ubuntu 9.10 -- 64 Bit (!) Longtime 2xSB3 owner, had a very nice, stable system running 7.3.3 for a long time after having run nightly builds until I had a setup that just worked. Avoided the 7.4 upgrade until a primary HD crash forced my hand (music luckily was on another -- backed up -- hard drive). Once I made the move to 7.4.x, I had lots of issues with playback of ALAC files (lots of "Problem: Can't open file for:" errors). I use a couple of different rippers (Max, Rip, and iTunes) and manage my library through iTunes to my network share on my server. I also moved to the 64 bit version of Ubuntu during the server upgrade. So there were lots of moving parts and possible issues. Had some free time this weekend to finally dig into it, as I'm really tired of not being able to access my music. Moved from "stable" to "testing" to "unstable" Debian feeds, am now working with 7.6. What I discovered was: 1) The i386-linux binaries that are installed are not 64-bit. They will not run on Ubuntu-64. 2) The new scanner has issues with some of my iTunes ripped ALAC files and IDs them as Quicktime Movies. 3) The new scanner IDs all m4a files (AAC and ALAC) as MP4. What I did was: 1) downloaded and built and replaced the shipping faad binary using the patched source at http://svn.slimdevices.com/repos/sli.../vendor/faad2/ 2) for some reason the -b and -s switches will not work with this build of faad. added the following entries to custom-convert.conf mp4 pcm * * # FT:{START=-j %s}U:{END=-e %u} [faad] -q -w -f 2 $START$ $END$ $FILE$ mov pcm * * # FT:{START=-j %s}U:{END=-e %u} [faad] -q -w -f 2 $START$ $END$ $FILE$ I'm now playing both ALAC and AAC files through faad. and I'm happy, as I can listen to all of my music. Hope this helps, as I've see a lot of "Problem: Can't open file for:" and ALAC related issues on the forums lately.
You need to install ia32-libs. You should not need to edit your convert.conf file. If you have a file that doesn't scan properly, please attach it to this bug or upload it to me if it's too big, see http://wiki.slimdevices.com/index.php/Large_File_Upload for instructions.
(In reply to comment #1) > You need to install ia32-libs. You should not need to edit your convert.conf > file. > > If you have a file that doesn't scan properly, please attach it to this bug or > upload it to me if it's too big, see > http://wiki.slimdevices.com/index.php/Large_File_Upload for instructions. ok, installed ia32-libs, thanks for the tip. am now using the binaries in the 7.6 SVN trunk. uploaded 01 Thunderstruck.m4a, ripped to ALAC w/ iTunes 7.6, gets scanned as Quicktime Movie. All m4a (ALAC and AAC) are showing up as MPEG-4. all of the above most definitely still do not play without the custom convert lines. -b and -s switches do not run on the command line: 04:23 PM [OurServer2: ~/]% /usr/share/squeezeboxserver/Bin/i386-linux/faad -o o ut.wav -f 2 -b 1 -s 44100 alac.m4a *********** Ahead Software MPEG-4 AAC Decoder V2.7 ****************** Patched for Squeezebox Server: * ALAC decoder integrated * Seeking support with -j and -e switches * STDIN support * Source at http://svn.slimdevices.com/repos/slim/7.5/trunk/vendor/faad2 Build: Apr 14 2010 Copyright 2002-2004: Ahead Software AG http://www.audiocoding.com Floating point version This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License. ************************************************************************** Cannot resample MP4 file alac.m4a 04:27 PM [OurServer2: ~/]% /usr/share/squeezeboxserver/Bin/i386-linux/faad -o o ut.wav -f 2 -b 1 alac.m4a *********** Ahead Software MPEG-4 AAC Decoder V2.7 ****************** Patched for Squeezebox Server: * ALAC decoder integrated * Seeking support with -j and -e switches * STDIN support * Source at http://svn.slimdevices.com/repos/slim/7.5/trunk/vendor/faad2 Build: Apr 14 2010 Copyright 2002-2004: Ahead Software AG http://www.audiocoding.com Floating point version This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License. ************************************************************************** Cannot specify output format for ALAC file alac.m4a
That file scans OK for me and plays as ALAC. I tested on my x86_64 system. Also, to test decoding, just run faad <file.m4a> with no other switches.
decodes fine without switches: 03:17 PM [OurServer2: ~/]% /usr/share/squeezeboxserver/Bin/i386-linux/faad alac.m4a *********** Ahead Software MPEG-4 AAC Decoder V2.7 ****************** Patched for Squeezebox Server: * ALAC decoder integrated * Seeking support with -j and -e switches * STDIN support * Source at http://svn.slimdevices.com/repos/slim/7.5/trunk/vendor/faad2 Build: Apr 14 2010 Copyright 2002-2004: Ahead Software AG http://www.audiocoding.com Floating point version This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License. ************************************************************************** file info: 200.992 secs, 2 ch, samplerate=44100, timescale=44100 album: Middle Cyclone artist: Neko Case date: 2009-03-03 title: This Tornado Loves You track: 1 totaltracks: 15 tool: Max 0.8.1 iTunNORM: 00001908 00001C3B 00003EF3 00004B48 000222C1 00022306 00007E8B 00007E8C 0001FBC0 0000C35F cover: ???? album_artist: Neko Case disc: 1 totaldiscs: 1 genre: Alt Country Decoding alac.m4a took: 2.93 sec. 68.60x real-time.
I have verified that faad fails (sbs 7.5.1, os x 10.6.6) with the failure dependent on the whole path to the input .m4a file. See the comments 8 and 9 in Bug 16319.
Doesn't seem to be a bug here anymore.
Closing due to Andy's comments.