Home » Questions » Computers [ Ask a new question ]

How can I extract audio from a YouTube video?

How can I extract audio from a YouTube video?

I would like to hear Linus' talk about Git from youtube on my way to work, which means I'm looking for an elegant way to extract .wav or .mp3 from a YouTube video.

Asked by: Guest | Views: 158
Total answers/comments: 5
Guest [Entry]

"install Youtube-dl and FFmpeg
then use the following commandline

Download the video

youtube-dl --extract-audio --audio-format mp3 http://www.youtube.com/watch?v=YOURVIDEO

optionally use the -k flag to keep the video by default it deletes the video"
Guest [Entry]

Add the YouTube to MP3 firefox add-on.
Guest [Entry]

"Youtube Downloader

It includes a video>audio converter."
Guest [Entry]

"In Safari 6 for OS X you can open the video from the web inspector and download it by pressing ⌥↩ on the location bar.

Enable the develop menu from the advanced preferences
Press ⌥⌘I and open or reload the page for the video
Double-click the videoplayback resource under the other folder
Focus the location bar and press ⌥↩ (option-return)

You can extract the audio without re-encoding with ffmpeg. It can be installed with Homebrew.

ffmpeg -i video.mp4 -acodec copy sound.aac"
Guest [Entry]

video2mp3 comes in first, closely followed by abcyoutube. Both cache popular videos, so there's 0 conversion time.