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-dl delay 7~8 seconds #7897
Comments
|
An option is deploying an API server (https://github.com/jaimeMF/youtube-dl-api-server). This reduces the startup time. Another option is including
WARNING: including this option may cause high-resolution formats (for example 1080p or higher) missing. |
|
Could you run the following command:
And print the time of each line? |
|
Hi this is log youtube-dl -vF --youtube-skip-dash-manifest "https://www.youtube.com/watch?v=k4JGSAmu4lg" cmd [2015-12-18 21:07:27.125] # youtube-dl -vF --youtube-skip-dash-manifest "https://www.youtube.com/watch?v=k4JGSAmu4lg" [2015-12-18 21:07:28.388] SW: sram_core_read(fn=201)=3 [2015-12-18 21:07:33.912] [debug] System config: [] [2015-12-18 21:07:33.913] [debug] User config: [] [2015-12-18 21:07:33.913] [debug] Command-line args: [u'-vF', u'--youtube-skip-dash-manifest', u'https://www.youtube.com/watch?v=k4JGSAmu4lg'] [2015-12-18 21:07:33.917] [debug] Encodings: locale ANSI_X3.4-1968, fs ANSI_X3.4-1968, out ANSI_X3.4-1968, pref ANSI_X3.4-1968 [2015-12-18 21:07:33.917] [debug] youtube-dl version 2015.12.06 [2015-12-18 21:07:33.934] [debug] Python version 2.7.5 - Linux-3.10.33-armv7l-with-glibc2.4 [2015-12-18 21:07:34.014] [debug] exe versions: none [2015-12-18 21:07:34.014] [debug] Proxy map: {} [2015-12-18 21:07:34.492] [youtube] k4JGSAmu4lg: Downloading webpage [2015-12-18 21:07:35.579] [youtube] k4JGSAmu4lg: Extracting video information [2015-12-18 21:07:36.097] [info] Available formats for k4JGSAmu4lg: [2015-12-18 21:07:36.098] format code extension resolution note [2015-12-18 21:07:36.098] 249 webm audio only DASH audio 52k , 1fps, opus @ 50k, 4.03MiB [2015-12-18 21:07:36.098] 250 webm audio only DASH audio 70k , 1fps, opus @ 70k, 5.22MiB [2015-12-18 21:07:36.098] 140 m4a audio only DASH audio 129k , m4a_dash container, aac @128k, 10.39MiB [2015-12-18 21:07:36.098] 171 webm audio only DASH audio 134k , 1fps, vorbis@128k, 9.90MiB [2015-12-18 21:07:36.098] 251 webm audio only DASH audio 169k , 1fps, opus @160k, 12.91MiB [2015-12-18 21:07:36.098] 160 mp4 216x144 DASH video 114k , avc1.4d400c, 15fps, video only, 8.87MiB [2015-12-18 21:07:36.099] 133 mp4 360x240 DASH video 254k , avc1.4d400d, 30fps, video only, 19.81MiB [2015-12-18 21:07:36.099] 134 mp4 540x360 DASH video 360k , avc1.4d401e, 30fps, video only, 19.24MiB [2015-12-18 21:07:36.099] 135 mp4 720x480 DASH video 721k , avc1.4d401e, 30fps, video only, 40.84MiB [2015-12-18 21:07:36.099] 17 3gp 176x144 small , mp4a.40.2, mp4v.20.3 [2015-12-18 21:07:36.099] 36 3gp 320x240 small , mp4a.40.2, mp4v.20.3 [2015-12-18 21:07:36.099] 5 flv 400x240 small [2015-12-18 21:07:36.099] 43 webm 640x360 medium , vorbis, vp8.0 [2015-12-18 21:07:36.104] 18 mp4 640x360 medium , mp4a.40.2, avc1.42001E (best) [2015-12-18 21:07:36.470] # SW: sram_core_read(fn=201)=3 From: Yen Chi Hsuan [mailto:notifications@github.com] Could you run the following command: youtube-dl -vF --youtube-skip-dash-manifest "https://www.youtube.com/watch?v=k4JGSAmu4lg" And print the time of each line? — |
|
Your system about takes 5 seconds to load youtube-dl. Seems it's similar to #3029. Setting up an API server would solve your problem. |
|
Thank you! how did you know that my system takes 5 seconds to load youtube-dl ? From: Yen Chi Hsuan [mailto:notifications@github.com] Your system about takes 5 seconds to load youtube-dl. Seems it's similar to #3029 #3029 . Setting up an API server would solve your problem. — |
|
Why am I CC'd in this email? This is nothing to do with me, please can you remove me from your list. Thanks Sent from my iPhone
|
|
From the first 3 lines:
|
I have a question.
I want to get the URL using youtube-dl, and the "simulate" option -g that does not download the video.
So I gave the following command:
youtube-dl -g https://www.youtube.com/watch?v=k4JGSAmu4lg
It gave the following output after 7 to 8 seconds
https://r20---sn-cvh7zn7d.googlevideo.com/videoplayback?initcwndbps=1113000&mt=1408702970&requiressl=yes&ipbits=0&sver=3&fexp=901454%2C902408%2C919145%2C924626%2C927622%2C927904%2C931330%2C931983%2C934024%2C934030%2C934804%2C945118%2C945308%2C946023%2C951914&ratebypass=yes&signature=38F111D46D72FFC50B47D50B3C9A631099BF5F83.FA134C91F407989B95ACADC1F1F6946B8F18C158&upn=tU0u5t7A2Uw&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mm=31&expire=1408724634&id=o-AJNPuDp9TKMKiwzUwvSk76W7JdA0cx0bRSum9mPJJ7Vo&mv=u&source=youtube&ms=au&key=yt5&ip=115.113.1.50&itag=18
But the problem is it is taking around 7 to 8 seconds for querying the URL.
Is there any way so that it can be faster?
do not work "--youtube-skip-dash-manifest" option