September 07, 2006

Saving the audio out of a video stream

Mplayer So, you really want to get the audio from that video stream you see in that website, but you don't know how? I know that it can be useful, when, for instance, the stream is from an interview and you can't hear well what they're saying even your your volume maxed up. So, the easy way to do that is just:
  • Grab the url of the stream (http:// or mms:// or anything - it doesn't really matter);
  • mplayer mms://blabla.com/whatever.wmv -ao pcm:file=output.wav
  • Now you have output.wav, just process it to fill your needs!
You should look up to -vc dummy -vo null if you don't want to see the video as the audio is being recorded. It will also go faster. Take into consideration that mplayer runs in lots of Operating Systems: it's not a "Linux thing" only... You can run in on your favourite BSD flavor, Mac OS, Windows or even in your XBox. So don't be shy and give it a try. This post was kindly brought up to you by the "RTFM before begging me to tell you how to do" team.

1 comment: