I have been using the mplayer.sh that is included with AlienBBC to
stream RealAudio and Windows Media streams without problem. I was also
glad to see that it would work to transcode local Windows Media files (I
had been using ffmpeg previously).
It was brought to my attention in another thread that mplayer now can
also handle Apple AAC (Lossy) and ALAC (Lossless) files. I have been
using FAAD2 to transcode AAC files.
I have a set of files that I use for testing new formats (song.mp3,
song.wma, song.m4a, lossless_song.m4a, etc)
I added that following line to the slimserver-convert.conf file and as
simple as that, it worked! Slimserver could play both AAC and ALAC
files from the test folder.
Code:
--------------------
mov mp3 * *
[mplayer.sh] -really-quiet -vc dummy -vo null -cache 128 -af
volume=8,resample=44100:0:1,channels=2 -ao pcm:waveheader:file=/dev/fd/3 $FILE$
| [lame] --silent -q 1 -b $BITRATE$ - -
--------------------
I thought, that it was too easy, and it turned out that it is. When I
tried to play a song from my library, it wouldn't play. After much
head scratching, I realized the only difference was the file name
structure. The AAC and ALAC files in my library have spaces in the
title. I renamed the test file that had played as a single name with
spaces and it will no longer play.
I checked with the WMA files that I have, which I have been using
mplayer.sh to play. They are all single spaced names with no space.
If I add a space, they no longer play.
In short:
'song.wma' and 'song.m4a' play with mplayer.sh
'name of song.wma' and 'name of song.m4a' do not play through
mplayer.sh
FAAD2 and ffmpeg had no problem with slimserver passing $FILE$ that had
spaces in the title. And mplayer can play both 'name of song.wma' and
'name of song.m4a' from the command line if I "\" the spaces.
I wonder if anyone has an idea why mplayer.sh would fail if $FILE$
contained spaces? I know there has been an interest in playing ALAC
files on Linux, and this seemed like a simple solution that does work,
with one glaring problem.
--Tom Malsbury
--
malsbury
------------------------------------------------------------------------
malsbury's Profile: http://forums.slimdevices.com/member.php?userid=57
View this thread: http://forums.slimdevices.com/showthread.php?t=18852
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins