I started watching Cory Doctorow's talk at Google on YouTube tonight. I quickly realized that I'd rather listen to this on my MP3 player, since the video isn't very interesting. Here's how I extracted just the audio from the YouTube video.
- Download the Flash video using something like the Firefox plugin UnPlug.
- Use ffmpeg to extract the audio:
ffmpeg -i get_video.flv -vn -acodec copy just_the_audio.mp3
The audio in this Flash video happened to be in MP3 format (I'm guessing most are), which meant that I didn't have to re-encode it to use on my MP3 player. If re-encoding is necessary, I can specify -acodec mp3
or -acodec vorbis
, for example.