Getting the sound of a youtube video into a MP3/OGG file
The short version for my english readers:
Software Requirements
You need a linux system with the following software installed:
- mplayer
- wget
- A MP3 or OGG encoder like lame or oggenc
- Firefox
- Firefox Extension livehttpheaders
- (the Firefox Extension flashblock is also helpful)
Procedure
- Start your firefox
- Turn live httpheaders on
- Go to the video page
- (with Flashblock: start the video, you can clear the livehttpheaders output before, which is helpful
- grab URL (have a look at something like Location: http://[...].youtube.com/get_video?[...]
- download FLV (with wget)
- extract the sound as WAV file the following: mplayer -ao pcm:file=sound.wav video.flv
- encode the file (with oggenc: oggenc sound.wav -q 7 -o sound.ogg or with lame: lame --preset hifi sound.wav sound.mp3/
Filed under: Geek stuff
Embassies
-
Es geht noch viel einfacher, da der Audio-Stream in den FLV-Dateien als MP3 gespeichert ist (bei Youtube):
mplayer -dumpaudio -dumpfile video.mp3 video.flv
MfG
slyzer -
Thanks, to the both of you.
I knew mplayer could do it, just not how and been waisting my time with more laborius methods. -
hoi
-
i currently use My YouTube Converter to download and convert YouTube videos to my Zune Player. It works pretty fine on Vista. You can find it on http://www.sharewarecheap.com/My_YouTube_Converter_software_2690.html
-
Warum so umständlich?
Einfach Youtube Link auf der Seite:
http://standard.videohamster.livebuster.com/
eingeben.
Danach als Format mp3 angeben und auf deiner Festplatte speichern. -
Ich hatte das meist mit ffmpeg gemacht, ETWA so:
ffmpeg -i file.flv -acodec mp3lame -ar -br file.mp3
Franzt manchmal aus.
Ich bin mir der Meinung das es auch einen mencoder-Einzeiler gibt. -
Sry. Wusste nicht das > und < geschluckt werden.
Hinter -ar gehoert die AudioRate=AudioFrequency;s.a. 32000
Hinter -ab gehoert die BitRateOfMpegStream;s.a. 64k
Comment entry
Advice:
Commenting isn't available anymore.
Commenting isn't available anymore.
Trackback(s)
What's trackback?
A trackback is a kind of a source link. If i was finding an interesting entry in another blog, that i am commenting in my own blog, i am linking to the original message via the trackback. Has someone commented one of my entries in his/her weblog, you can find this link here under trackbacks, too. More informations about trackback are in the Wikipedia for example.
Trackback URL: /trackback/getting-the-sound-of-a-youtube-video-into-a-mp3ogg-file/
Trackbacks aren't available anymore.