I have CentOS 5.3 server with additional repositories, see extended entry for versions of ffmpeg and mplayer. I have written two scripts for playbacks. First one is:
#!/bin/bash
song=$1
bitrate=$2
#echo $song >> /tmp/songs.txt
/usr//bin/ffmpeg -i "$song" -f mp3 -ab $bitrate - 2>/dev/null
which I call swiss.sh. This is from Activeobjects-forum.
And the second one called wma.ssh is:
#!/bin/bash
song=$1
mplayer -vo null -msglevel all=-1 -quiet -srate 44100 -channels 2 -vc dummy -ao pcm:nowaveheader:fast:file=/dev/stdout "$song" 2>/dev/null
Sorry, I've lost the original source. First one is used with just one step: "swiss.sh %s %b" and the second one requires two steps. First step: "wma.sh %s" and second "lame -r -b %b - -", the "-r" is essential!
Jatka "Subsonic wma flac ogg playback":n lukemista