aTommyC wrote:/usr/bin/wma2wav:
#!/bin/bash
song=$1
ffmpeg -i "$song" -f wav - 2>/dev/null
And within Transcoding setup:
wma > mp3 | wma | mp3 | wma2wav %s | lame -b %b - -
Did the trick for me.
Edit: I also renamed the wma2mp3 script to wma2wav, giving it a bit more intuitive and descriptive name. After all, that's what it really does. :)
@aTommyC
Thank you, this worked for me on my CentOS 5.4 x86_64.
Notes and tips to future comers on this thread who may need help implementing this. These instructions provided here will apply to anyone using Fedora, RHEL/CentOS, or such-based distros.
- [have already, or now] install ffmpeg and libavcodec
- place the suggested script into the file at /var/subsonic/transcode/wma2wav
- chmod 0755 /var/subsonic/transcode/wma2wav
Alternately, you can place the wma2wav script in your /usr/local/bin/ or your /usr/bin/ directory. If doing so, just adjust the chmod command above to target the location you have placed the file in. As I wanted to keep my subsonic tweaks together as much as possible, so that I can easily clone my installation, I chose to put them in the /var/subsonic/transcode/ directory.