I finally sorted the problems - however it requires Slimserver 6.3 or
6.5 and the latest mplayer. I'll add these instructions to the Wiki.
The following gives instructions on how to enable playing
Shoutcast/Winamp AACPlus streams within slimserver. It does not handle
the Windows Media Play/AACPlus streams.
Pre-requisites:
(i) Latest build of Mplayer. For Windows users I have a prebuilt
Mplayer which includes an
additional patch not yet accepted into official repository. Linux
users should be able to use latest Mplayer but ideally should upgrade
once patch is accepted.
(ii) Slimserver 6.3 or 6.5 as there is a bug in 6.2.x. Slimserver
6.2.x users on Linux can do the 2 line patch to the slimserver file if
desired without upgrading.
*1. * Install Mplayer or replace your current version of Mplayer by the
latest version of Mplayer (if you are replacing a version of Mplayer -
save the current file in case you need to revert)..
For Linux - a version of Mplayer using latest CVS is needed. Install
location is system dependent.
For windows - Install a new version of Mplayer in the
BIN/MSWin32-x86-multi-thread directory which has .exe files like
socketwrapper.exe. A prebuilt version of mplayer is available here
(download & unzip).
http://homepage.eircom.net/~altondsl/slim/mplayer07June06.zip .
Download and unzip.
*2. * Test Mplayer by running one of the following command for example.
Let it run for a few minutes - if the version of mplayer is not up to
date problems will show.
mplayer -playlist http://www.somafm.com/groovesalad48.pls.
mplayer -playlist http://www.sky.fm/aacplus/classical.pls
*3. * There are additions needed to the types.conf and convert.conf
files.
The changes depend on whether you are running Windows or Linux.
*3a. * For Linux - modify the following files that are in the
slimserver directory
Add the following lines to convert.conf file
Code:
--------------------
aap wav * *
[mplayer] -ac faad -demuxer aac -really-quiet -vc null -vo null -cache
64 -af volume=0,resample=44100:0:1,channels=2 -ao
pcm:nowaveheader:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null
aap mp3 * *
[mplayer] -ac faad -demuxer aac -really-quiet -vc null -vo null -cache
64 -af volume=0,resample=44100:0:1,channels=2 -ao
pcm:nowaveheader:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null | [lame] --silent -r -x
-q $QUALITY$ -b $BITRATE$ - -
aap flc * *
[mplayer] -ac faad -demuxer aac -really-quiet -vc null -vo null -cache
64 -af volume=0,resample=44100:0:1,channels=2 -ao
pcm:nowaveheader:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null | [flac] -cs
--totally-silent --endian=little --channels=2 --sign=signed --bps=16
--sample-rate=44100 --compression-level-0 -
--------------------
Add the following line to the types.conf file
Code:
--------------------
aap - audio/aacp,audio/aac audio
--------------------
*3b. * For Windows - using a suitable editor (e.g Wordpad) modify the
following files that are in the slimserver server directory
Add the following lines to convert.conf file
Code:
--------------------
aap wav * *
[mplayer] -ac faad -demuxer aac -really-quiet -vc null -vo null -cache
64 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=#PIPE#
$FILE$
aap mp3 * *
[mplayer] -ac faad -demuxer aac -really-quiet -vc null -vo null -cache
64 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=#PIPE#
$FILE$ | [lame] --silent -r -x -q $QUALITY$ -b $BITRATE$ - -
aap flc * *
[mplayer] -ac faad -demuxer aac -really-quiet -vc null -vo null -cache
64 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=#PIPE#
$FILE$ | [flac] -cs --totally-silent --endian=little --channels=2 --sign=signed
--bps=16 --sample-rate=44100 --compression-level-0 -
--------------------
Add the following line to the types.conf file
Code:
--------------------
aap - audio/aacp,audio/aac audio
--------------------
*4. * The step is not essential but without you will get an error
message and blank fields in the Server / Filetypes as a new file type
AAP has been added.
Edit the file strings.txt in the slimserver directory (server directory
for Windows) and add the following 2 "AAP" lines to the file probably
somewhere near other extensions such APE - keep the tabs on the "EN"
line. The
Code:
--------------------
AAP
EN AACplus
--------------------
*5. * Stop and restart Slimserver. Look at the server / Filetypes and
check if there are 3 lines of AACPlus entries or 3 lines with blank as
the format if you did not edit strings.txt file.
*6. * Test some AACplus streams using Tune in - such as
Soma Groovesalad http://www.somafm.com/groovesalad48.pls
Sky FM Classical Guitar http://www.sky.fm/aacplus/guitar.pls
Virgin http://aacplus-vr-32.smgradio.com:80
StreamingSoundtracks http://www.streamingsoundtracks.com/aacPlus-hi.pls
--
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=23615
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss