An introduction

This is a semi-public place to dump text too flimsy to even become a blog post. I wouldn't recommend reading it unless you have a lot of time to waste. You'd be better off at my livejournal. I also have another blog, and write most of the French journal summaries at the Eurozine Review.

Why do I clutter up the internet with this stuff at all? Mainly because I'm trying to get into the habit of displaying as much as possible of what I'm doing in public. Also, Blogger is a decent interface for a notebook

Monday, January 25, 2010

Converting realaudio streams to mp3

To pull a realaudio stream and convert it to mp3:

mplayer -noframedrop -dumpfile out.rm -dumpstream rtsp://
ffmpeg -i out.rm out.mp3

[this uses mplayer to pull the stream, and ffmpeg to convert it to mp3.

Or, here's how to do it in one command-line:

mplayer -noframedrop -dumpfile /dev/fd/3 -dumpstream rtsp:// 3>&1 1>&2 | ffmpeg -i - /tmp/output.mp3

Why do this? Mainly because I can then use vlc to play the audio speeded up, which is great for slow-moving radio shows.

No comments:

Post a Comment