Using:`ffmpeg -i $_[1] -ab 128 -ar 44100 -b 500 -s 320x240 $_[1].mpg`;
perl youtube-downloader http://www.youtube.com/watch?v=dXmKDkAAamc
use strict;use LWP::Simple;@_ = get ($ARGV[0]) =~ /var swfArgs = {hl:' +en',(video_id):'([\w_-]{11,11})',(l):'([\d]+)',(t):'([\w_-]+)',(sk):' +([\w_-]+)'};/;my $url = "http://www.youtube.com/get_video.php?";for ( +my $i = 0; $i < @_; $i = $i + 2){$url .= "&" . $_[$i] . "=" . $_[$i+1 +];}`wget -O $_[1].flv "$url"`;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: One-liner Youtube Downloader
by tomfahle (Priest) on Dec 24, 2007 at 07:00 UTC | |
by jdporter (Paladin) on Dec 24, 2007 at 15:45 UTC | |
by Gavin (Archbishop) on Dec 24, 2007 at 17:17 UTC | |
by Anonymous Monk on Dec 20, 2008 at 20:20 UTC | |
by ccn (Vicar) on Dec 21, 2008 at 12:58 UTC | |
by Anonymous Monk on Dec 21, 2008 at 05:54 UTC | |
Re: One-liner Youtube Downloader
by Anonymous Monk on May 06, 2010 at 05:39 UTC |