-
22
Mar
MP3 players are great, but they don’t play .ram or .ra files and it can be tricky to convert them to MP3 format. Here’s a simple and crude script to do so using linux:
1) Put the following in a file named ‘ram2mp3.sh’
2) From the command line, make the file executable
chmod +x ram2mp3.sh
3) Run the file as follows:
./ram2mp3.sh http://example.com/thesource.ram newfile.mp3
4) The file will download itself, convert itself to .wav, encode the .wav as an MP3, and then write it to your current directory as ‘newfile.mp3′.
Requires:
mplayer, ffmpeg, lame, libwww-perl
file=`GET $1 | sed 's/\r//'`
date=`date +%s`
feed=`wget $file --output-document=/tmp/cnv_$date`
`mplayer /tmp/cnv_$date -ao pcm:file=/tmp/cnv_$date.wav`
`ffmpeg -i /tmp/cnv_$date.wav ./$2`
`rm /tmp/cnv_$date* -f`
- Published by vincevincevince in: General
- If you like this blog please take a second from your precious time and subscribe to my rss feed!
2 Responses to “Downloading .ram for your MP3 player (linux)”
One thing I would like to say is that car insurance cancellation is a feared experience so if you’re doing the appropriate things being a driver you may not get one. Many people do receive the notice that they’ve been officially dumped by their particular insurance company they have to scramble to get more insurance after a cancellation. Low cost auto insurance rates tend to be hard to get after a cancellation. Knowing the main reasons for auto insurance termination can help motorists prevent getting rid of in one of the most crucial privileges offered. Thanks for the concepts shared by your blog.
These topics are so confusing but this hepled me get the job done.
Leave a Reply