You are here: Home » Reply » Reply To: Setting up for Real Audio

Reply To: Setting up for Real Audio


OK. I have modified to call mplayer. I was initially stumped by the lack of /dev/fd devices but then found a modified version of mplayer in SSODS which writes to stdout. And …… it doesn’t work. This is the snippet out of my

MP_GENOPT="-really-quiet -vc null -vo null -bandwidth 10000000 -cache 128"
MP_FLTROPT="-af volume=0,resample=44100:0:1,channels=2"
MP_DEVOPT="-ao pcm:waveheader:file=-"

ram_file() {
rtspurl=$($CURL $(cat "$FILE")) 2> /tmp/test1.txt
echo "url=${rtspurl} offset=${2} len=${3}" > /tmp/test.txt
echo "$MPLAYER $MP_GENOPT $MP_FLTROPT $MP_DEVOPT" > /tmp/test3.txt
${MPLAYER} ${MP_GENOPT} ${MP_FLTROPT} ${MP_DEVOPT} "$rtspurl" 2> /tmp/test2.txt | $WAVSTREAMER -o 0 -l 10000

mplayer launches and starts to download the stream but exits quite quickly. I guess the forward pipe must get closed. I’ve tried with and without wavstreamer and with and with wav headers but what is above was what I expected to work.

I’m getting a bad header error from wavstreamer and a hung process.

Any ideas? I think I’m pretty close.

I’m playing on a Roku M1000.