Created
August 17, 2011 23:38
-
-
Save keiya/1152929 to your computer and use it in GitHub Desktop.
youtube downloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# by Keiya Chinen | |
use strict; | |
use warnings; | |
use WWW::YouTube::Download; | |
my $video_id = shift || die "Usage: $0 [video_id|video_url]"; | |
my $client = WWW::YouTube::Download->new(encode => 'utf8'); | |
$client->download($video_id); | |
# system("ffmpeg -i $video_id.mp4 -ac 2 -ar 44100 $video_id.wav"); # youtube mp4 to wave |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment