Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube live playlist request is extremely slow #6125
Comments
|
Post the full output of youtube-dl when run with |
|
@ sergeyM - you responded "There is no such option --max-downloads in youtube-dl." @ dstfw - Yes I am looking for "all metadata for every video in playlist " which I then parse in my Serviio YouTube plugin to select the feed I want to play. Youtube-dl does return all the metadata successfully with the --verbose messages below. The issue is that a "normal" playlist (the second one below with 50 celine songs) returns 1,252KB of metadata in 36 seconds, (less than a second for each video) but the "live" playlist (the first one below of 50 Live animals) returns 993KB of metadata in 400 seconds (10 times as long!). The same problem occurs if I give YouTube-dl a list of the 50 live video-ids rather than the playlist itself, so the problem is in the time youtube-dl is taking (~8 seconds) to extract each live video, where-as with non-live video-ids or using the browser directly, access to this metadata is instantaneous. I would appreciate if you could investigate the reason for the ~8 second delay. Thanks C:\Users\John>"C:\Program Files\Serviio\lib\youtube-dl.exe " --verbose --max-dow C:\Users\John> "C:\Program Files\Serviio\lib\youtube-dl.exe " --verbose --max-do |
|
DASH manifests for lives are rather heavy (1-2 Mb each comparing to 15 Kb for regular videos). You may want to skip downloading DASH manifests with |
|
After f0714c9 it should be even faster. |
|
Thanks. skip-dash reduced time to ~240 seconds. Awaiting update with f0714c9 ! |
|
Final results |
This "Live now-Animals" playlist link obtained from https://www.youtube.com/channel/UC4R8DWoMoI7CAwX8_LjQHig returns 50 youtube live video streams.
"C:\Program Files\Serviio\lib\youtube-dl.exe " --max-downloads 50 -j https://www.youtube.com/playlist?list=PLIFqWCuxNyohg709Oqz-EvNoudyNXhloQ
The problem is it takes 400 seconds!
A direct request to youtube with https://www.youtube.com/playlist?list=PLIFqWCuxNyohg709Oqz-EvNoudyNXhloQ is instananeous and selected videos play immediately.
Why should youtube-dl take any longer