Visit http://www.arrakis.es/~rggi3/youtube-dl/, read a bit (includes instructions for Windows users). Download the python script and also install ffmpeg2theora (See #2 at my Drupal Video Guide).
Then:
- Visit your favorite YouTube video
- Copy the URL to the clipboard
- In command line:
magicfab@suzy:~$ python youtube-dl.py http://www.youtube.com/watch?v=PcuF7S3r6gM Retrieving video webpage... done. Extracting video URL parameters... done. Video data found at http://lax-v11.lax.youtube.com/get_video?video_id=PcuF7S3r6gM Retrieving video data... 1897k of 1897k done. Video data saved to PcuF7S3r6gM.flv magicfab@suzy:~$
- Convert it (careful, those are TWO dashes before the optimize option):
magicfab@suzy:~$ ffmpeg2theora PcuF7S3r6gM.flv ––optimize Input #0, flv, from 'PcuF7S3r6gM.flv': Duration: 00:00:47.3, bitrate: N/A Stream #0.0: Audio: mp3, 22050 Hz, mono Stream #0.1: Video: flv, yuv420p, 320x262, 25.00 fps(r) Resize: 320x262 0:00:47.33 audio: 36kbps video: 305kbps magicfab@suzy:~$
- An .ogg corresponding file will be created in your current directory.
- Profit ?
update: youtube-dl has been packaged since Edgy. Install it using the standard Synaptic package manager or through apt-get in command line, by searching for the youtube-dl package.
usage: youtube-dl [options] video_url
Hum… I usually go to keepvid: http://keepvid.com/ wich gives me the direct link for download.
Then I execute:
ffmpeg -i vid.flv vid.avi
But it’s less free 🙂
You can just install youtube-dl from the archive (since Edgy iirc).
I think it should be like this:
ffmpeg2theora PcuF7S3r6gM.flv -optimize
You missed one dash 😀
Or just use one of the many existing browser extensions, like Ook Video Ook for Firefox, instead of messing around copy-pasting URLs to scripts.
There’s a typo: « ffmpeg2thepora » should be « ffmpeg2theora »
clive is better.
Some blatant advertising:
OggConvert is an easy-to-use GTK alternative to ffmpeg2theora — it uses GStreamer to do its stuff, so can convert pretty much every format that Totem can play.
Get it from http://oggconvert.tristanb.net
7. Respect the license.
(real hard to do on YouTube, where’s the license information?)
For Free content and Free software to flourish, we should really enforce this « respect the license » thing, so more creators will be educated and choose the conditions they decide to share their work under…
@Daniel: updated, thanks! I much prefer standard packages.
@mamatoshi: for some reason WordPress think two dashes are the same than one » m » dash. Still fighting with that, I put a warning. Tx!
@Tristan, keep them coming
@Sylvain: you must be talking about Terms of Use for YouTube, which are a different beast. Unless you feel licencing concerns and rules are different when using free formats.
Nice article :), if done a bash script that does both thinks with a single command, you can find it at http://utils.eurion.net/hosted/youtube. Just call it with the video ID, for example « youtube 8dUm7SkM3a4 ».
— — — —
http://rainct.bloc.cat/post/8808/161856
[…] un script d’en Ricardo Garcia (que he conegut per un post d’en Fabián Rodríguez al planet anglès d’Ubuntu) […]