|
|
A script to download and convert multiple YouTube videos
Some comments :
seq isn't installed with OS X, but bash offers a built-in syntax for sequences (in recents versions), or you can here directly use the for C-syntax (see man bash ;-)
Based on your script, you can have a try on this one :
BUT :D I don't know why, the URL file seems to be closed after the first encoding with ffmpeg (nothing else to read) ; you can still use MEncoder if no solution/correction :-)
A script to download and convert multiple YouTube videos
Yes, in order to get my script to work you need to have wget and ffmpeg installed, but that's easy with Fink or MacPorts. To get better quality of the output avi file, I'd suggest using
ffmpeg -i "${MOVNAME}"'.flv' -ar 48000 -b 500k -vcodec libxvid -acodec libmp3lame "${MOVNAME}"'.avi'
line.
A script to download and convert multiple YouTube videos
wget, ffmpeg … and seq too : therefor I suggested you alternatives built-in solutions (apart ffmpeg ofc)
and the problem is not to install them: I can't make wget to download the flv (and so your script, to only talk about the download part, doesn't work for me), nor curl without the -L option
A script to download and convert multiple YouTube videos
There is also the problem of a redirect to the "real" file if the HTTP request returns a 302. Does curl follow the redirect? If not, you have to look for the HTTP return header "Location: " to get the real destination.
A script to download and convert multiple YouTube videos
thus the -L option, no?
And I correct what I said earlier, I can download the flv with wget without option BUT need too both the "video_id" and "t" URL's attributes. The original script still doesn't work for me as no flv is downloaded (Am I the only one here?) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|