ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.54k stars 10.05k forks source link

Help me to use external downloader #10595

Closed jaan143 closed 8 years ago

jaan143 commented 8 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.09.04.1. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v <your command line>
PS C:\Users\vicky\downloads> youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.09.04.1
[debug] Python version 3.4.3 - Windows-8-6.2.9200
[debug] exe versions: none
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
PS C:\Users\vicky\downloads>

Description of your issue, suggested solution and other information

i need help to use external downloader i generate downloading url from video streaming site and its save in link.txt using your command like this youtube-dl --verbose http://app.pluralsight.com/courses/nodejs-security-express-angular-get-started --get-url --username 12345@hotmail.com --password 12345 > links.txt

after that its save links in txt file but now i want to download these videos through external download so can you plz explain me what is exact command to use it and it will read this txt file and download all videos

this txt file saving in this directory C:\Users\vicky\Downloads

thanks

yan12125 commented 8 years ago

Check the manual of your favorite downloader and feed links.txt to it.

jaan143 commented 8 years ago

can you plz recommend other than IDM ? because IDM is not download with original title name

yan12125 commented 8 years ago

If you need to keep titles in filenames, use --external-downloader instead. For example:

youtube-dl --external-downloader <the downloader name> <video URL>

Currently only aria2c,avconv,axel,curl,ffmpeg,httpie and wget are supported. Please follow #9861 if you need IDM.

jaan143 commented 8 years ago

you mean like this ? youtube-dl --verbose --external-downloader idm https://udemy-assets-on-demand2.udemy.com/2016-07-16_21-09-36-bb6f58d7a5e8ad2e11e4cdb1120cb143/WebHD_1080.mp4?nva=20160908173957&token=0ef939fa1f107a684af46

yan12125 commented 8 years ago

Yeah, but idm is not supported yet. You may want to change idm to one of aria2c, avconv, axel, curl, ffmpeg, httpie or wget.

jaan143 commented 8 years ago

but Sir for this way i need to download all videos one by one ? because i generated links in txt file then need put one by one with this command ?

yan12125 commented 8 years ago

It should work for playlists, too. By the way, you may want to try axel or aria2c, both of which use multiple connections for downloading.

jaan143 commented 8 years ago

i figure out its not problem of IDM because when i generate links its not generated with original title name its generated with some numbers and idm download with that numbers filename see here http://vid.pluralsight.com/expiretime=1473338970/af682fd0e7e066508914173cd326e767/clip-videos/matthew-renze/r-mastering-data-visualization-m0/r-mastering-data-visualization-m0-01/1280x720mp4/20160907153219.mp4 http://vid.pluralsight.com/expiretime=1473338976/b86730a2bfd8e0b264c3490d5d9907fd/clip-videos/matthew-renze/r-mastering-data-visualization-m1/r-mastering-data-visualization-m1-01/1280x720mp4/20160907153258.mp4

i generated these with youtube-dl so is it possible to generate with original titles ? or if its generate with my specific numbers for example http://vid.pluralsight.com/expiretime=1473338970/af682fd0e7e066508914173cd326e767/clip-videos/matthew-renze/r-mastering-data-visualization-m0/r-mastering-data-visualization-m0-01/1280x720mp4/1.mp4 http://vid.pluralsight.com/expiretime=1473338976/b86730a2bfd8e0b264c3490d5d9907fd/clip-videos/matthew-renze/r-mastering-data-visualization-m1/r-mastering-data-visualization-m1-01/1280x720mp4/2.mp4 http://vid.pluralsight.com/expiretime=1473338980/04c96f0df403c90c5c70bd7a4047a105/clip-videos/matthew-renze/r-mastering-data-visualization-m1/r-mastering-data-visualization-m1-02/1280x720mp4/3.mp4

see end 1.mp4 2.mp4 3.mp4 but auto its generated with this filename 20160907153258.mp4 20160907153219.mp4

yan12125 commented 8 years ago

Those URLs are fetched from Pluralsight not generated by youtube-dl. If you change it, videos won't be downloaded. If you want IDM to save URLs with a different name, check IDM manuals.

jaan143 commented 8 years ago

i download aria2c and youtube-dl downloading with that but its cant read all url txt file and download all videos automatically ? is it possible or not if yes then plz help me about this command

thanks

yan12125 commented 8 years ago

What's your command and the result?

jaan143 commented 8 years ago

like this youtube-dl --external-downloader aria2c http://vid.pluralsight.com/expiretime=1473347773/f846d9607da92f9f4c88b9817c7ba283/clip-videos/vlad-catrinescu/planning-sharepoint-server-2016-topology-services-m0/planning-sharepoint-server-2016-topology-services-m0-01/1280x720mp4/20160907153653.mp4

yan12125 commented 8 years ago

Well, my previous statements are misleading. Use this instead:

youtube-dl --external-downloader aria2c http://app.pluralsight.com/courses/nodejs-security-express-angular-get-started
jaan143 commented 8 years ago

it will not ask user and password ?

yan12125 commented 8 years ago

If this video requires password, it will. The full command is like:

youtube-dl --verbose --external-downloader aria2c http://app.pluralsight.com/courses/nodejs-security-express-angular-get-started --username 12345@hotmail.com --password 12345
jaan143 commented 8 years ago

actually bro if i use username then pluralsight banned account to download too fast so thats why i am generating links then i change ip and downloading all videos with that links through idm so when i generate links.txt is it possible with this way to read link.txt file and download all videos ? because after generate links we can downnload as anonymous

yan12125 commented 8 years ago

Currently your link.txt contains plain URLs only, so there are no titles in filenames. Check IDM manual if it provides another format that reads in titles and URLs at the same time.

jaan143 commented 8 years ago

ohh ok :(

yan12125 commented 8 years ago

Here are some discussions about how to prevent pulralsight accounts from banning: #6090 #6842. Of course there's no guarantee.

jaan143 commented 8 years ago

bro with area2c can read txt file and download all videos ? no matter with original name or not

yan12125 commented 8 years ago

https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-i

remitamine commented 8 years ago

it's possible with some scripting to do what you want using aria2c(save files with proper name), the links file should be like this:

url1
 out=file1.mp4
url2
 out=file2.mp4
jaan143 commented 8 years ago

yeah links are like this bro http://vid.pluralsight.com/expiretime=1473347773/f846d9607da92f9f4c88b9817c7ba283/clip-videos/vlad-catrinescu/planning-sharepoint-server-2016-topology-services-m0/planning-sharepoint-server-2016-topology-services-m0-01/1280x720mp4/20160907153653.mp4

jaan143 commented 8 years ago

remitamine can you plz explain me little bit ?

remitamine commented 8 years ago

for example you have to change the links file to something like:

http://vid.pluralsight.com/expiretime=1473338970/af682fd0e7e066508914173cd326e767/clip-videos/matthew-renze/r-mastering-data-visualization-m0/r-mastering-data-visualization-m0-01/1280x720mp4/20160907153219.mp4
 out=Course Overview.mp4
http://vid.pluralsight.com/expiretime=1473338976/b86730a2bfd8e0b264c3490d5d9907fd/clip-videos/matthew-renze/r-mastering-data-visualization-m1/r-mastering-data-visualization-m1-01/1280x720mp4/20160907153258.mp4
 out=Course Introduction.mp4
...
jaan143 commented 8 years ago

no its not downloading with that i tried yesterday because with numbers its original url and when we change numbers to title then url going to dead

remitamine commented 8 years ago

i didn't said that you have to change the url, i said:

original_url
 out=filename.mp4

replace original_url with the original url and filename.mp4 with filename related to the url. put it in a file and download it using:aria2c -i links.txt.