PDA

View Full Version : Playing unprotected .m4a files on Linux ADDENDUM



Dave Owen
2005-02-01, 15:05
Added new paragraph below.

1. Set up Linux server for streaming AAC files:

- Installed nightly build of 5.4.1 from last night.
- Used VLC to obtain iTunes key from my wife's Windows box, installed on
Linux box.
- Used instructions at
http://wiki.slimdevices.com/tiki-view_faq.php?faqId=5#q44 to install
faad and change convert.conf.

2. Converted a test .m4p from my wife's Windows box to .m4a using latest
version of Hymn for RedHat.

3. Converted resulting .m4a file to .wav using faad at the command line,
to verify that it works. It does.

4. Rescanned my music library.

5. Attempted to listen to .m4a file.

Sadly, after a few seconds of attempting to play the file, SlimServer
returned 'PROBLEM: CAN'T OPEN FILE FOR [TITLE]'. There is no error in my
server log.

Advice appreciated, except for "you shouldn't use music from iTunes" --
this I know, and now that my wife has seen what I'm going through to get
this working for her, she knows too. ;) Hate to lose the albums she's
already purchased, though.

Note that I'm trying to test this off-site, so the bandwidth is limited;
if the problem is that faad is kicking out an uncompressed .wav file,
I'd love any assistance with generating an .mp3 on the fly with LAME
instead. There's an entry that refers to this in the FAQ, but the link
doesn't go anywhere.

kdf
2005-02-01, 15:17
Quoting Dave Owen <dowen (AT) sapient (DOT) com>:

> Added new paragraph below.
>

>
> Sadly, after a few seconds of attempting to play the file, SlimServer
> returned 'PROBLEM: CAN'T OPEN FILE FOR [TITLE]'. There is no error in my
> server log.

server settings->debugging->d_source

no debugging switches means you only get external module warning/errors, perl
warning/errors or server crashes.

> Advice appreciated, except for "you shouldn't use music from iTunes" --
> this I know, and now that my wife has seen what I'm going through to get
> this working for her, she knows too. ;) Hate to lose the albums she's
> already purchased, though.
>
> Note that I'm trying to test this off-site, so the bandwidth is limited;
> if the problem is that faad is kicking out an uncompressed .wav file,
> I'd love any assistance with generating an .mp3 on the fly with LAME
> instead. There's an entry that refers to this in the FAQ, but the link
> doesn't go anywhere.

Use these lines in your convert.conf or slimserver-convert.con:

mov mp3 * *
[faad] -w -f 1 $FILE$ | [lame] --resample 44100 -x --silent -q 9 -b $BITRATE$
- -

[faad] -w -f 2 $FILE$

if you have LAME installed properly, then you will see both mov-mp3, and mov-wav
conversions enabled in server settings->file types

you also need a fairly recent copy of faad to make this work, but I'll have to
leave the details for someone else to fill in. It is also a good idea to run
the server directly from a command line so that you can see all the output,
including that from the faad process.

-kdf