Howto rip the audio from a video clip
Recently I came across a video clip that I wanted to rip the audio from. Easy enough (and fast!) using mencoder:
mplayer -novideo -ao pcm:file=output.wav input_file.avi
Then if you want to convert said wave file into an mp3 or ogg file:
lame -b 64 -a output.wav new_output.mp3
oggenc --downmix -b 64 output.wav -o new_output.ogg
Leave A Reply
- 3 Replies
Replies
August 4th 2006 - Swobodin
How about piping?
mkfifo sound
cat sound | oggenc -o soundtrack.ogg - &
mplayer dvd://1 -dvd-device /dev/hdc -vo null -ao pcm:file=sound
http://fedora-tn.org/?q=node/88
August 4th 2006 - Scott Baker
That totally works too. There are several different ways to do it. I think my way above is a little clearer, but they both work. Pipes make more sense if you're going to have LOTS of data that you don't want sitting on your disk you want it processed in a chain.
March 23rd 2007 - vivpet
but how you do it? coul you do it step by step, please