PDA

View Full Version : Problems playing AAC files on Linux with SliMP3



Kevin Murphy
2004-12-02, 17:45
Hello all,

I recently picked up a little Shuttle box to use as a sort of "Media
Server" running Linux (Fedora Core 3 to be precise) and I'm having some
trouble getting my AAC files working with SlimServer on my SliMP3.

I followed the instructions in the FAQ regarding the installation of
faad2 and the latest nightly of the SlimServer, as well as the
modification to convert.conf.

Here's what I've got:

RPM Information:

[root@babyblue slimserver]# rpm -q faad2
faad2-2.0-2.20040923.1.fc3.rf
[root@babyblue slimserver]# rpm -q slimserver
slimserver-2004_12_01-1
[root@babyblue slimserver]# rpm -q lame
lame-3.96.1-2.1.fc3.rf


Snip from /usr/local/slimserver/convert.conf:

## you can comment this out if you want to use LAME to transcode AAC/MOV
files to MP3.
# mov aif * *
# [mov123] $FILE$

mov wav * *
[faad] -w -f 2 $FILE$

(I changed the 'squeezebox' to a '*' after realizing that might be the
problem, and it got me nowhere)

When I try to play an .m4a file, I get the tag info on the display, but
a message briefly appears that says "Problem: Can't open file for:" on
the top line of the display.

I verified that faad is functioning properly by using the command line
configured in convert.conf like so:

[root@babyblue slimserver]# faad -w -f 2 /home/kevin/Media/Music/01\
Opera\ Singer.m4a

This produced a slew of output to stdio, so I can at least assume that
faad is doing *something* (though admittedly I cannot verify the content
of its output)

On a hunch, I also tried passing the output from faad into lame and
seeing what happens with that. Best case I got was an MP3 that had
static to the beat of the song I was supposed to be hearing.

Is what I'm attempting even possible? I assumed it was, but perhaps I
assumed incorrectly. Can anyone provide any pointers or assistance here?

Thanks!

--Kevin Murphy
SliMP3 #003

Robin Bowes
2004-12-03, 04:35
Kevin Murphy wrote:
>
> Is what I'm attempting even possible? I assumed it was, but perhaps I
> assumed incorrectly. Can anyone provide any pointers or assistance here?

Kevin,

I don't know about aac files but I had problems playing back m4a files
with faad2.

Here's how I fixed it: http://robinbowes.com/article.php/2004080319394853

Let me know if this helps.

R.

Kevin Murphy
2004-12-03, 23:37
Robin Bowes wrote:
> Kevin Murphy wrote:
>
>>
>> Is what I'm attempting even possible? I assumed it was, but perhaps I
>> assumed incorrectly. Can anyone provide any pointers or assistance here?
>
>
> Kevin,
>
> I don't know about aac files but I had problems playing back m4a files
> with faad2.
>
> Here's how I fixed it: http://robinbowes.com/article.php/2004080319394853
>
> Let me know if this helps.
>

Thanks for the info. I followed the instructions there, and I can't
seem to get that version to build for me.

Do you have any information on what the supposed bug is? Do we know if
anyone has mentioned this bug to the faad developers? It seems like a
path of less resistance than trying to use 9 month old code.

Are there any known alternative ways to get SliMP3 AAC (m4a) playback in
Linux? This seems like it should be far simpler than it is.

Thanks,

--Kevin

Robin Bowes
2004-12-04, 03:21
Kevin Murphy wrote:
> Robin Bowes wrote:
>> I don't know about aac files but I had problems playing back m4a files
>> with faad2.
>>
>> Here's how I fixed it: http://robinbowes.com/article.php/2004080319394853
>>
>> Let me know if this helps.
>>
>
> Thanks for the info. I followed the instructions there, and I can't
> seem to get that version to build for me.
>
> Do you have any information on what the supposed bug is? Do we know if
> anyone has mentioned this bug to the faad developers? It seems like a
> path of less resistance than trying to use 9 month old code.
>
> Are there any known alternative ways to get SliMP3 AAC (m4a) playback in
> Linux? This seems like it should be far simpler than it is.

Kevin,

I've raised this as a bug with the livna team:

http://bugzilla.livna.org/show_bug.cgi?id=235

R.
--
http://robinbowes.com

Jesse David Hollington
2004-12-04, 05:44
Well, I've got this working fine on my Squeezebox, so it works in
principle. Note that the supplied instructions in the FAQ will only
work for a Squeezebox, however, as the Slimp3 doesn't support PCM
(which is what the default convert.conf code will send out). For a
Slimp3, you will need to transcode the files by piping them through
LAME.

I haven't tested this, but something to the effect of the following should work:

mov wav * *
[faad] -w -f 2 $FILE$ | [lame] -x -m s -r -S -q 5 -s 44.1 - -

This will take the output from faad (which will be a raw PCM stream)
and pipe it through LAME to produce an MP3 stream.

I know you mention that you tried this already, but I'm not sure if
you were using the same options. The "-x" is particularly relevant,
since it forces byte-swapping of the input. Not sure if it's required
by the output from faad, but if you're getting garbled results, that
may be the likely problem.

Once you get it working, you might also want to play with the -q
setting, which controls the quality of the LAME output (0 being the
highest, 9 being the lowest).


On Sat, 04 Dec 2004 01:37:44 -0500, Kevin Murphy <skoro (AT) skoroworld (DOT) com> wrote:
> Robin Bowes wrote:
>
>
> > Kevin Murphy wrote:
> >
> >>
> >> Is what I'm attempting even possible? I assumed it was, but perhaps I
> >> assumed incorrectly. Can anyone provide any pointers or assistance here?
> >
> >
> > Kevin,
> >
> > I don't know about aac files but I had problems playing back m4a files
> > with faad2.
> >
> > Here's how I fixed it: http://robinbowes.com/article.php/2004080319394853
> >
> > Let me know if this helps.
> >
>
> Thanks for the info. I followed the instructions there, and I can't
> seem to get that version to build for me.
>
> Do you have any information on what the supposed bug is? Do we know if
> anyone has mentioned this bug to the faad developers? It seems like a
> path of less resistance than trying to use 9 month old code.
>
> Are there any known alternative ways to get SliMP3 AAC (m4a) playback in
> Linux? This seems like it should be far simpler than it is.
>
> Thanks,
>
> --Kevin
>
>
>

Kevin Murphy
2004-12-04, 11:24
Jesse,

Thanks! I'll play around with this today and see what sort of result I
get. I've pretty much been using this as a proof of concept to convince
myself to buy one of the new blue Squeezeboxes. If I can get this
working on the SliMP3 I know it'll be possible (and easier) to make it
work on the Squeezebox.

--Kevin

Jesse David Hollington wrote:
> Well, I've got this working fine on my Squeezebox, so it works in
> principle. Note that the supplied instructions in the FAQ will only
> work for a Squeezebox, however, as the Slimp3 doesn't support PCM
> (which is what the default convert.conf code will send out). For a
> Slimp3, you will need to transcode the files by piping them through
> LAME.
>
> I haven't tested this, but something to the effect of the following should work:
>
> mov wav * *
> [faad] -w -f 2 $FILE$ | [lame] -x -m s -r -S -q 5 -s 44.1 - -
>
> This will take the output from faad (which will be a raw PCM stream)
> and pipe it through LAME to produce an MP3 stream.
>
> I know you mention that you tried this already, but I'm not sure if
> you were using the same options. The "-x" is particularly relevant,
> since it forces byte-swapping of the input. Not sure if it's required
> by the output from faad, but if you're getting garbled results, that
> may be the likely problem.
>
> Once you get it working, you might also want to play with the -q
> setting, which controls the quality of the LAME output (0 being the
> highest, 9 being the lowest).

Kevin Murphy
2004-12-04, 11:31
Robin,

Interesting. Just read through that thread and it seems to coincide
with my experiences using faad2-2.0-2.20040923.1.fc3.rf on Fedora Core
3. If I output directly to a file, the resulting wav appears to be ok,
but if I stream to stdout and have something else (lame) process it
further, I get garbage.

I tried using your instructions to build the older version of faad, and
just got a bunch of build errors. How familiar are you with the
project, do you think you might be able to give me some assistance? I
hesitate to ask them for support as I'm using such an old version.

Thanks!

--Kevin

> Kevin,
>
> I've raised this as a bug with the livna team:
>
> http://bugzilla.livna.org/show_bug.cgi?id=235
>
> R.

Kevin Murphy
2004-12-04, 17:04
Kevin Murphy wrote:

Holy crap, dude! You solved it!

Using the FC3 supplied builds of both faad2 and lame, this produced
playable output!! As you suggested, I will probably play with the
settings a bit to tweak things, but for now I'm thrilled that this can
be done without having to jump through hoops compiling and building
different versions of things.

Thanks a million!

--Kevin

> Jesse David Hollington wrote:
>
>> Well, I've got this working fine on my Squeezebox, so it works in
>> principle. Note that the supplied instructions in the FAQ will only
>> work for a Squeezebox, however, as the Slimp3 doesn't support PCM
>> (which is what the default convert.conf code will send out). For a
>> Slimp3, you will need to transcode the files by piping them through
>> LAME.
>>
>> I haven't tested this, but something to the effect of the following
>> should work:
>>
>> mov wav * *
>> [faad] -w -f 2 $FILE$ | [lame] -x -m s -r -S -q 5 -s 44.1 - -
>>
>> This will take the output from faad (which will be a raw PCM stream)
>> and pipe it through LAME to produce an MP3 stream.
>>
>> I know you mention that you tried this already, but I'm not sure if
>> you were using the same options. The "-x" is particularly relevant,
>> since it forces byte-swapping of the input. Not sure if it's required
>> by the output from faad, but if you're getting garbled results, that
>> may be the likely problem.
>>
>> Once you get it working, you might also want to play with the -q
>> setting, which controls the quality of the LAME output (0 being the
>> highest, 9 being the lowest).
>
>

Kevin Murphy
2004-12-04, 17:05
Just FYI, check out the response from "Jesse David Hollington" earlier
today, he came up with a solution that works using "stock" versions of
faad and lame!

Thanks!

--Kevin

Kevin Murphy wrote:
> Robin,
>
> Interesting. Just read through that thread and it seems to coincide
> with my experiences using faad2-2.0-2.20040923.1.fc3.rf on Fedora Core
> 3. If I output directly to a file, the resulting wav appears to be ok,
> but if I stream to stdout and have something else (lame) process it
> further, I get garbage.
>
> I tried using your instructions to build the older version of faad, and
> just got a bunch of build errors. How familiar are you with the
> project, do you think you might be able to give me some assistance? I
> hesitate to ask them for support as I'm using such an old version.
>
> Thanks!
>
> --Kevin
>
>> Kevin,
>>
>> I've raised this as a bug with the livna team:
>>
>> http://bugzilla.livna.org/show_bug.cgi?id=235
>>
>> R.
>
>
>

Thomas B. Malsbury
2004-12-06, 12:27
I just wanted to add that I was also able to get this working by using
all the info provided on the list over the past week or so. After many
unsuccessful builds of the old cvs code for faad2 the key was using the
current builds for Fedora Core 3. Here is what ended up working for me:

Installed:

faad2-2.0-2.20040923.1.fc3.rf.i386.rpm
lame-3.96.1-2.1.fc3.rf.i386.rpm

Added the following lines to my convert.conf:

mov mp3 * *
[faad] -w -f 2 $FILE$ | [lame] -x -m s -r -S -q 5 -s 44.1 - -

This is working now on a Fedora Core2 box streaming over ssh to
Softsqueeze. I will test it out when I get home to verify that it works
on my Slimp3s.

Thanks to everyone who contributed to this thread!

Tom Malsbury


Kevin Murphy wrote:

> Just FYI, check out the response from "Jesse David Hollington" earlier
> today, he came up with a solution that works using "stock" versions of
> faad and lame!
>
> Thanks!
>
> --Kevin
>
> Kevin Murphy wrote:
>
>> Robin,
>>
>> Interesting. Just read through that thread and it seems to coincide
>> with my experiences using faad2-2.0-2.20040923.1.fc3.rf on Fedora
>> Core 3. If I output directly to a file, the resulting wav appears to
>> be ok, but if I stream to stdout and have something else (lame)
>> process it further, I get garbage.
>>
>> I tried using your instructions to build the older version of faad,
>> and just got a bunch of build errors. How familiar are you with the
>> project, do you think you might be able to give me some assistance?
>> I hesitate to ask them for support as I'm using such an old version.
>>
>> Thanks!
>>
>> --Kevin
>>

Robin Bowes
2004-12-06, 13:04
Thomas B. Malsbury wrote:
> I just wanted to add that I was also able to get this working by using
> all the info provided on the list over the past week or so. After many
> unsuccessful builds of the old cvs code for faad2 the key was using the
> current builds for Fedora Core 3. Here is what ended up working for me:
>
> Installed:
>
> faad2-2.0-2.20040923.1.fc3.rf.i386.rpm
> lame-3.96.1-2.1.fc3.rf.i386.rpm
>

Where did you get those rpms? What repo?

R.

--
http://robinbowes.com

Robin Bowes
2004-12-06, 14:01
Thomas B. Malsbury wrote:
> I just wanted to add that I was also able to get this working by using
> all the info provided on the list over the past week or so. After many
> unsuccessful builds of the old cvs code for faad2 the key was using the
> current builds for Fedora Core 3. Here is what ended up working for me:
>
> Installed:
>
> faad2-2.0-2.20040923.1.fc3.rf.i386.rpm
> lame-3.96.1-2.1.fc3.rf.i386.rpm

Ignore my last post - these are from freshrpms.net.

I've disabled my fedoras.us & livna archives and am using freshrpms.

I can confirm that the above faad2 package does indeed playback aac
files correctly.

R.
--
http://robinbowes.com

Avi Schwartz
2004-12-06, 19:15
Jesse, thanks a million for the instructions got it working on my Linux
box although I had to remove the -x flag since it caused me to get
static. Also I changed the -q (quality) to 2 since this box is only for
Slim's use so I am not worried about CPU cycles.

Avi

Kevin Murphy wrote:

> Jesse,
>
> Thanks! I'll play around with this today and see what sort of result
> I get. I've pretty much been using this as a proof of concept to
> convince myself to buy one of the new blue Squeezeboxes. If I can get
> this working on the SliMP3 I know it'll be possible (and easier) to
> make it work on the Squeezebox.
>
> --Kevin
>
> Jesse David Hollington wrote:
>
>> Well, I've got this working fine on my Squeezebox, so it works in
>> principle. Note that the supplied instructions in the FAQ will only
>> work for a Squeezebox, however, as the Slimp3 doesn't support PCM
>> (which is what the default convert.conf code will send out). For a
>> Slimp3, you will need to transcode the files by piping them through
>> LAME.
>>
>> I haven't tested this, but something to the effect of the following
>> should work:
>>
>> mov wav * *
>> [faad] -w -f 2 $FILE$ | [lame] -x -m s -r -S -q 5 -s 44.1 - -
>>
>> This will take the output from faad (which will be a raw PCM stream)
>> and pipe it through LAME to produce an MP3 stream.
>>
>> I know you mention that you tried this already, but I'm not sure if
>> you were using the same options. The "-x" is particularly relevant,
>> since it forces byte-swapping of the input. Not sure if it's required
>> by the output from faad, but if you're getting garbled results, that
>> may be the likely problem.
>>
>> Once you get it working, you might also want to play with the -q
>> setting, which controls the quality of the LAME output (0 being the
>> highest, 9 being the lowest).
>
--
Avi Schwartz
http://public.xdi.org/=avi.schwartz

When you have robbed a man of everything, he is no longer in your power. He is free again.

-- Alexander Solzhenitsyn