using the text for mplayer.sh in bpa post and launching from command
line using ./slimserver.pl, I got the following results:
wma track with no spaces in name - worked
wma track with spaces failed and stepped through to next track.
Command line outputs are:
First Track - output
[EMAIL PROTECTED] slimserver]# ./slimserver.pl
Streaming: Launching /usr/local/bin/mplayer -really-quiet -vc null -vo
null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao
pcm:nowaveheader:file=/dev/fd/3 /mnt/usb/Music/g4/Creep.wma
MPlayer dev-SVN-r18895-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium II Klamath/Pentium II OverDrive (Family: 6, Model:
3, Stepping: 4)
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX
Track 2&3 - no output
Streaming: Launching /usr/local/bin/mplayer -really-quiet -vc null -vo
null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao
pcm:nowaveheader:file=/dev/fd/3 /mnt/usb/Music/g4/Circle Of Life.wma
MPlayer dev-SVN-r18895-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium II Klamath/Pentium II OverDrive (Family: 6, Model:
3, Stepping: 4)
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX
Streaming: Launching /usr/local/bin/mplayer -really-quiet -vc null -vo
null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao
pcm:nowaveheader:file=/dev/fd/3 /mnt/usb/Music/g4/To Where You Are.wma
MPlayer dev-SVN-r18895-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium II Klamath/Pentium II OverDrive (Family: 6, Model:
3, Stepping: 4)
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX
Using normal start of slimserver from /etc/init.d/slimserver, and none
of the wma tracks will play?? But that may be another problem. The
spaces in the title seem to be the culprits.
mplayer.sh
#!/bin/sh
scriptpid=$$
apppid=/tmp/.alienbbc-app.$$.pid
app=mplayer
if [ -x /usr/local/bin/$app ] ; then
app=/usr/local/bin/$app
fi
# For mplayer pre6 comment out following line and uncomment line after
#if [ -e "${10}" ] ; then
#if [ -e "${12}" ] || [ -e "${13}" ] ; 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
if [ -e "${11}" ] ; then
#if [ -e "${12}" ] || [ -e "${13}" ] ; then
echo Local File: Launching $app 1=$1 2=$2 3=$3 4=$4 5=$5 6=$6 7=$7
8=$8 9=$9 10="${10}" 11=${11} 12="${12}" 13="${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/null &
cat > /dev/null
if [ -s $apppid ] ; then
kill `cat $apppid` 2> /dev/null
fi
--
Ramage
------------------------------------------------------------------------
Ramage's Profile: http://forums.slimdevices.com/member.php?userid=5343
View this thread: http://forums.slimdevices.com/showthread.php?t=25117
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix