Rip audio files from Flash videos (youtube etc.)


This describes how you can rip the audio from FLV video files as found on youtube&Co and save them as ogg or mp3.
You need:

  • youtube-dl Python script for fetching the FLV-file from youtube. (optionally if you have the flv file already)
  • mplayer for extracting the audio data from the video
  • oggenc for encoding the raw audio to a ogg audio file or
  • lame for encoding the raw audio to a mp3 audio file

The commands:

python youtube-dl.py -t 'http://www.youtube.com/watch?v=<videohash>'
mplayer -ao pcm -vo null '<yourvideo>.flv'
oggenc audiodump.wav -o '<yourtargetoggfile>.ogg'
lame audiodump.wav -o '<yourtargetmp3file>.mp3'
rm audiodump.wav

  1. No comments yet.
(will not be published)

  1. No trackbacks yet.