PDA

View Full Version : AAC playback



rtitmuss
2005-03-17, 15:01
Can someone help me get aac playback working with slimserver 6.0 on
Linux. I am trying to look at a Softsqueeze bug where aac files just
play back as white noise. But at the moment I find all aac files
playback as white noise on both SB1 and softsqueeze.

Thanks,
Richard

Triode
2005-03-17, 15:07
Richard,

You need a recent cvs version of faad and the appropriate convert command. [I think compling from source at audiocoding.com]

However if you are getting white noise, a quick change is to change the covert command to be the opposite endian
ie. mov wav * * becomes mov aif ** or visa versa...

I think I posted my old onc on the forums, but it was something like (this will only work with a compile of the sept 04 or latest
cvs - see audiocoding as they changed the default pcm streaming code)

# new for aac support
mov wav * *
[faad] -w -s 44100 $FILE$
mov mp3 * *
[faad] -w -s 44100 $FILE$ | [lame] -r -x -q $QUALITY$ -b $BITRATE$ - -

Adrian
----- Original Message -----
From: "Richard Titmuss" <richard.titmuss (AT) gmail (DOT) com>
To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
Sent: Thursday, March 17, 2005 10:01 PM
Subject: [slim] AAC playback


> Can someone help me get aac playback working with slimserver 6.0 on Linux. I am trying to look at a Softsqueeze bug where aac
> files just play back as white noise. But at the moment I find all aac files playback as white noise on both SB1 and softsqueeze.
>
> Thanks,
> Richard
>
>

2005-03-17, 15:51
> Can someone help me get aac playback working with slimserver 6.0 on
> Linux. I am trying to look at a Softsqueeze bug where aac files just
> play back as white noise. But at the moment I find all aac files
> playback as white noise on both SB1 and softsqueeze.
>
> Thanks,
> Richard
>

Richard,

I might actually be able to help you after all you patience with me and
SoftSqueeze. I have AAC playback working on Fedora Core 3 (and previously
Core2) with the following setup.

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 Core3 box streaming over ssh to
Softsqueeze (2.0a14) and at home directly to my Slimp3s.

I was actually going to play around with getting faad to flac working to
avoid the extra lossey conversion when using SoftSqueeze on systems on my
home network and only do the mp3 convertions for traffic over SSH or my
Slimp3s. If this is something you get working before I do, let me know
how you get on.

Tom Malsbury

kdf
2005-03-17, 16:18
Quoting slim (AT) malsbury (DOT) net:

> > Can someone help me get aac playback working with slimserver 6.0 on
> > Linux. I am trying to look at a Softsqueeze bug where aac files just
> > play back as white noise. But at the moment I find all aac files
> > playback as white noise on both SB1 and softsqueeze.
> >
> > Thanks,
> > Richard
> >
>
> Richard,
>
> I might actually be able to help you after all you patience with me and
> SoftSqueeze. I have AAC playback working on Fedora Core 3 (and previously
> Core2) with the following setup.
>
> 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 Core3 box streaming over ssh to
> Softsqueeze (2.0a14) and at home directly to my Slimp3s.
>
> I was actually going to play around with getting faad to flac working to
> avoid the extra lossey conversion when using SoftSqueeze on systems on my
> home network and only do the mp3 convertions for traffic over SSH or my
> Slimp3s. If this is something you get working before I do, let me know
> how you get on.
>
This should work. I added flc stuff to convert.conf and tested this one out
with my slimserver-convert.conf.

mov flc * *
[faad] -w -f 2 $FILE$ | [flac] -cs --compression-level-0 -

however, I didn't try this with softsqueeze. I'm not sure flac is supported o
that just yet.

-kdf

rtitmuss
2005-03-17, 16:34
kdf wrote:

>however, I didn't try this with softsqueeze. I'm not sure flac is supported o
>that just yet.
>
>
Well I am not sure about 'supported'. I enabled native flac playback in
a nightly a couple of days ago, and am just hoping it works ;).

Richard

kdf
2005-03-17, 16:45
Quoting Richard Titmuss <richard.titmuss (AT) gmail (DOT) com>:

> kdf wrote:
>
> >however, I didn't try this with softsqueeze. I'm not sure flac is supported
> o
> >that just yet.
> >
> >
> Well I am not sure about 'supported'. I enabled native flac playback in
> a nightly a couple of days ago, and am just hoping it works ;).
>
well, how about that! I'm hearing music in all its flaccy goodness :)
I can't believe I missed the notes on that one.
-kdf

2005-03-17, 21:52
> Quoting slim (AT) malsbury (DOT) net:
>

>> I was actually going to play around with getting faad to flac working
>> to avoid the extra lossey conversion when using SoftSqueeze on systems
>> on my home network and only do the mp3 convertions for traffic over
>> SSH or my Slimp3s. If this is something you get working before I do,
>> let me know how you get on.
>>
> This should work. I added flc stuff to convert.conf and tested this one
> out with my slimserver-convert.conf.
>
> mov flc * *
> [faad] -w -f 2 $FILE$ | [flac] -cs --compression-level-0 -
>
> however, I didn't try this with softsqueeze. I'm not sure flac is
> supported o that just yet.
>
> -kdf

Thank you for the suggestion, but that didn't actually work for me. For
some reason I got multiple copies of faad running with that and
SlimServer's cpu jumped to 90+%. In the end after a litlle searching
through the new convert.conf for ideas I came up this setup that is
working for me.

mov flc * *
[faad] -w -f 2 $FILE$ | [flac] -cs --compression-level-0 --endian
little --sign signed --channels 2 --bps 16 --sample-rate 44100 -

Now when streaming aac files to SoftSqueeze direclty as flac I see about
11% CPU (6% slimserver, 3% faad & 2% flac). That's down about 20% from
what used to go towards reencoding with lame.

Thanks again...

Tom Malsbury