Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Batch-download YouTube videos to MP3s with ID3 Tags

Batch-download YouTube videos to MP3s with ID3 Tags

Ratings: (0)|Views: 22|Likes:
Published by Dhruv Jain
Uploaded by Hack Archives - http://undergroundlegacy.co.cc -
Uploaded by Hack Archives - http://undergroundlegacy.co.cc -

More info:

Published by: Dhruv Jain on Mar 19, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/12/2014

pdf

text

original

 
Batch-download YouTube videos to MP3s with ID3 Tags - I am a univers...ut together a script to take care of this task for me automatically!
22153 total geeks with 3252solutionsRecent challengers:
 
rnikkila2level 8 - 08:22AM
 
Brenn0level 1 - 03:47AM
 
digitalfatelevel 3 - 01:38AM
Welcome, you are an anonymous user! [register][login]Get a yourname@osix.net email address 
Articles
 
C 
 
 
 
 
 
 
 
GEEK
 
 
 
 
 
 
 
 
 
 
Article viewer
 
Batch-download YouTubevideos to MP3s with ID3 Tags
 
Writtenby:ateam
Publishedby:SAJChurcheyPublishedon:2009-10-2616:50:33Topic: PerlSearch OSIaboutPerl.More articlesbyateam.viewed1115times send this article printer friendly Digg this! Rate this article :I am a university student double-majoring in Italian andCompSci. I am very involved with helping the Italiandepartment get up to speed with the 21st century in termsof digital media.One recent project involved getting 120 YouTube videosinto MP3 format for the students and the professor of anItalian Music class. A little research brought me to"youtube-dl." From this and two other tools, I put togethera script to take care of this task for me automatically! 
http://osix.net/modules/article/?id=945 (1 of 8) [2/21/2010 8:33:28 AM]
-
 
Batch-download YouTube videos to MP3s with ID3 Tags - I am a univers...ut together a script to take care of this task for me automatically!
User's box
Username:Password:Forgot password? New account 
Shoutbox
 CA was dying, Ina way, having thesite go down mayturn out to be agood thing,rebuilding thesite may help getmembers etc...
 heh that CA thingis an end of anera for sure.Wonder if CA-v2will live up to itspredecessor.
 NS is back now,any words on theCA site situation?
 Unfortunatel yIve got to be onhiatus for a fewdays, see youguys friday!This script parses a textfile containg YouTube video IDnumbers. Itdownloads the FLV file (the YouTube video) for each ID inthe list.
Usage:
 youtube-grabber.pl
<textfile>
 Finding a YouTube video's ID is simple. Let's take thefollowing YouTubeURL as an example:
http://www.youtube.com/watch?v=OCjs3Se0XTc
 
http://www.youtube.com/watch?v=[ OCjs3Se0XTc ]
 The string of numbers and letters that follows "?v=" is thisvideo's ID.So, this video's ID is "OCjs3Se0XTc."It's important to note that, often, a YouTube URL willcontain extraparameters after the ID. For example:
http://www.youtube.com/watch?v=BrEYMP2rb3c&feature=featured&fmt=18
 
http://www.youtube.com/watch?v=[ BrEYMP2rb3c ] &feature=featured&fmt=18
 The is always the string following "?v=". In this and allother multi-parameter YouTube URLs, the ID ends before the firstampersand (&). So,this video's ID is "BrEYMP2rb3c."Once you have a video's ID, you're ready to create yourtextfile. Eachline of the file will contain a video ID, artist name and songtitle.Below is an example textfile:
W-V2Cm8CLJ4|Tony D'Aloia|Napoli tfsisahydZw|Antonella|Arrivera' L'Estate Am-HUOiRWXo|Antonella|La Mia Poesia
 The video ID, artist name and song title are separated bythe pipecharacter (|), which can be entered using the "Shift" + "\"keycombination.
http://osix.net/modules/article/?id=945 (2 of 8) [2/21/2010 8:33:28 AM]
LoginSecurely
 
Batch-download YouTube videos to MP3s with ID3 Tags - I am a univers...ut together a script to take care of this task for me automatically!
 Not sure why CA.net is down.Someone saidthat someoneelse was workingon something toget it back up.
Donate
Donate and help usfund new challenges
Due Date:
Feb 28
FebruaryGoal:
 $30.00
Gross:
$0.00
Net Balance:
$0.00
Left to go:
 
$30.00
Contributors 
News Feeds
The Register
 The next step is taken care of by the script! Each FLV file isconvertedto an MP3 and tagged using the artist name and song titlefrom yourtextfile.
Requirements:
 
youtube-dl
apt-get install youtube-dl
 
flv2mp3
id3tool
apt-get install id3tool
TODO:
 -Support conversion to higher bitrate MP3 (requiresretrieving HD FLV file).-Support downloading entire YouTube "Playlists."
# Use strict!use strict;# Textfile parameter.my $textfile = @ARGV[0];# The "vids" array stores each line of the textfile.my @vids;# The "track" array that each line of the textfile issplit into.my @track;# The variables used for storing information on eachYouTube video.my $id, my $artist, my $title, my $url, my $file, my$i;# Find paths to required binaries.
http://osix.net/modules/article/?id=945 (3 of 8) [2/21/2010 8:33:28 AM]

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->