PDA

View Full Version : Playing unprotected .m4a files on Linux



Dave Owen
2005-02-01, 19:41
>I had some success in getting .m4a files to play on Linux, although I
>*think* mine are unprotected (I'm not clear whether you're trying to
>play protected or unprotected files).

>There's a write-up of what I did here [1] but the summary is that some
>versions of faad don't work. I'm currently using faad from the
FreshRPMs
>repository (I run Fedora Core 3) and they playback fine.

>[1] http://robinbowes.com/article.php/2004080319394853

Sigh. I installed the Fedora 3 version from freshrpms.net, and ran into
these problems:

1. Still dumping files to the log like crazy, which I noted someone
seems to have fixed by adding their own -q (quiet) option to the source,
so that's an option...

2. Still insists on decoding the entire file before passing to LAME,
although it doesn't write the file out, so it is dumping to stdout (just
not necessarily properly)...

3. If I pass the m4a file to the playlist, faad starts decoding, but the
file doesn't start playing. If I then hit 'play' on the player, faad
starts a second process to decode the file again. Poot.

So I'll go back to my original plan for the time being. However, this
does give me some motivation to create a version of faad that (a) has a
quiet option and (b) dumps the current encoding and restarts if another
process already exists...

Thanks again anyway, folks. :) There is still nothing quite like an
active mailing list for either solving problems, or identifying how they
might be solved in the future. Quite groovy.

-D

John Hernandez
2005-02-02, 10:12
Dave Owen wrote:
> So I'll go back to my original plan for the time being. However, this
> does give me some motivation to create a version of faad that (a) has a
> quiet option and (b) dumps the current encoding and restarts if another
> process already exists...

One way to accomplish this may be with a simple wrapper-style shell
script which redirects stderr to /dev/null and checks for a running faad
before spawning a new one.

Thomas B. Malsbury
2005-02-02, 13:57
I was able to get .m4a files to play on linux using the following items:

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 - -

I only have SliMP3s in the house and use SoftSqueeze over SSH so I never
created an entry to convert directly to WAV output. This should at least
be enough to get you some playback. I found the rpms at
http://rpm.pbone.net. The direct links are:

http://rpm.pbone.net/index.php3/stat/4/idpl/1539469/com/faad2-2.0-2.20040923.1.fc3.rf.i386.rpm.html

http://rpm.pbone.net/index.php3/stat/4/idpl/1539831/com/lame-3.96.1-2.1.fc3.rf.i386.rpm.html

Hope this info and the knowledge that it can be done with off the net
rpms helps.

Tom Malsbury




John Hernandez wrote:

>
> One way to accomplish this may be with a simple wrapper-style shell
> script which redirects stderr to /dev/null and checks for a running
> faad before spawning a new one.
>
> > Dave Owen wrote:
> >
> > So I'll go back to my original plan for the time being. However, this
> > does give me some motivation to create a version of faad that (a) has a
> > quiet option and (b) dumps the current encoding and restarts if another
> > process already exists...