Thu 10 May 2007
Free those YouTube videos
Posted by Fabián Rodríguez under Advocacy , Audio , Drupal , English , Graphisme , Libre , Linux , Non-Libre , Save The Planet , Society , Tech , Ubuntu , Ubuntu Planet , VideoVisit 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, 320×262, 25.00 fps(r) Resize: 320×262 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
May 10th, 2007 at 7:09
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
May 10th, 2007 at 7:41
You can just install youtube-dl from the archive (since Edgy iirc).
May 10th, 2007 at 7:44
[…] 10, 2007 · Filed under Uncategorized Dari link ini, akhirnya dapet cara laen buat convert flash video (flv) ke format yang lebih […]
May 10th, 2007 at 7:48
I think it should be like this:
ffmpeg2theora PcuF7S3r6gM.flv –-optimize
You missed one dash
May 10th, 2007 at 8:43
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.
May 10th, 2007 at 9:53
There’s a typo: “ffmpeg2thepora” should be “ffmpeg2theora”
May 10th, 2007 at 11:10
[…] RodrÃguez* presenta en su blog una forma fácil y cómoda de hacerlo desde la lÃnea de comandos. Es interesante también porque dedicándole un poco de tiempo se puede hacer un script sencillo […]
May 10th, 2007 at 12:48
clive is better.
May 10th, 2007 at 18:32
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
May 10th, 2007 at 23:30
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…
May 11th, 2007 at 3:48
@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.
May 11th, 2007 at 12:56
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) […]
May 22nd, 2007 at 16:23
[…] vor einer Weile habe ich dazu eine kleine Anleitung bei Fabián RodrÃguez gelesen und nachdem heute eine ähnliche Fragestellung auf UbuntuUsers.de aufkam, verewige ich das […]
June 10th, 2007 at 2:27
[…] Hi all, This one is a real beauty. Please read Fabián Rodríguez » Free those YouTube videos and the corresponding software page youtube-dl: Download videos from YouTube.com . I would be doing […]
June 15th, 2007 at 23:32
[…] l’interview en flash (désolé fab ;)) INN World Report […]
September 1st, 2007 at 9:50
[…] de tot, necessites descarregar un script d’en Ricardo Garcia (que he trobat en un post d’en Fabián RodrÃguez al planet anglès d’Ubuntu). Per a això, introdueix aquestes […]