Good news & Bad news
Good news: The following are some setting for an AlienBBC installation
which will play AACplus streams (e.g.
http://www.somafm.com/groovesalad48.pls,
http://www.sky.fm/aacplus/smoothjazz.pls) and you get the song titles
on screen.
Bad news: It is not reliable and doesn't start up all the time
especially after changing statin - I think it is a problem with Mplayer
losing sync.
Any ideas on what could be the problem ?
1. As before add the "audio/aacp" with type "aap" to custom-types.conf
2. The mplayer line in the custom-convert.conf file for aap is as
follows - key additions are the "-ac faad -demuxer aac", "-bandwidth"
can be dropped.
mplayer -ac faad -demuxer aac -really-quiet -vc null -vo null -cache
128 -ao pcm:nowaveheader:file=/dev/fd/3
For link I created a separate shell filed call aacplay.sh (mplayer.sh
edited) and it is as follows for SuSe 9.3. The odd thing about this
file is the line ") &" which was initially a typo but I find that
playback is more reliable when it is in place. Again any ideas ?
Mplayer needs input from stdin otherwise it will close and seek omn the
input and exit. So defining input to be /dev/fd/6 just doesn't work.
Code:
--------------------
#!/bin/sh
scriptpid=$$
apppid=/tmp/.alienbbc-app.$$.pid
app=mplayer
if [ -x /usr/local/bin/$app ] ; then
app=/usr/local/bin/$app
fi
exec 6<&0
if [ -e "${10}" ] ; then
echo Local File: Launching $app $1 $2 $3 $4 $5 $6 $7 $8 $9 "${10}" ${11}
"${12}" "${13}" >&2
$app $1 $2 $3 $4 $5 $6 $7 $8 $9 "${10}" ${11} "${12}" "${13}" 3>&1 1>&2
exit
fi
echo Streaming: Launching $app $* >&2
(
$app $* 3>&1 1>&2 &
echo $! > $apppid
wait
rm -f $apppid
kill $scriptpid 2> /dev/null
) < /dev/fd/6 &
) &
cat > /dev/null
if [ -s $apppid ] ; then
kill `cat $apppid` 2> /dev/null
fi
--------------------
--
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