Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl delay 7~8 seconds #7897

Closed
sbPark82 opened this issue Dec 18, 2015 · 8 comments
Closed

youtube-dl delay 7~8 seconds #7897

sbPark82 opened this issue Dec 18, 2015 · 8 comments

Comments

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 18, 2015

An option is deploying an API server (https://github.com/jaimeMF/youtube-dl-api-server). This reduces the startup time.

Another option is including --youtube-skip-dash-manifest. For example:

youtube-dl -g --youtube-skip-dash-manifest "https://www.youtube.com/watch?v=k4JGSAmu4lg

WARNING: including this option may cause high-resolution formats (for example 1080p or higher) missing.

@yan12125 yan12125 closed this Dec 18, 2015
@sbPark82
Copy link
Author

@sbPark82 sbPark82 commented Dec 18, 2015

I am sorry.

"--youtube-skip-dash-manifest" option do not work.

same delay. Please help me.

[2015-12-18 20:07:17.943] # youtube-dl -g https://www.youtube.com/watch?v=k4JGSAmu4lg
[2015-12-18 20:07:18.438] SW: sram_core_read(fn=201)=3
[2015-12-18 20:07:25.659] SW: sram_core_read(fn=201)=3
[2015-12-18 20:07:26.011] SW: sram_core_read(fn=201)=3
[2015-12-18 20:07:32.817] https://r4---sn-ab02a0nfpgxapox-bh2s.googlevideo.com/videoplayback?initcwndbps=3593750&ratebypass=yes&signature=DB15F1C7C848B92F3CC19248D58194B64E869315.B08DDFDABC1B527A134E2BC7CD999203C33B4AF7&requiressl=yes&sver=3&pl=19&ip=115.93.47.62&key=yt6&ipbits=0&id=o-APYb6Cx_7OXj-lsKTmhsuHK3mUUq_3BRYuLis51aWTw9&upn=a1Pt2rxtjH8&mm=31&mn=sn-ab02a0nfpgxapox-bh2s&dur=678.394&lmt=1408760613498801&mt=1450436676&mv=m&ms=au&source=youtube&pcm2cms=yes&mime=video%2Fmp4&itag=18&expire=1450458447&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&fexp=9408508%2C9416126%2C9418200%2C9418902%2C9419444%2C9419458%2C9420452%2C9420708%2C9422596%2C9422841%2C9423662%2C9423665%2C9424445%2C9424696%2C9425228%2C9425349%2C9426472

[2015-12-18 20:08:17.643] # youtube-dl -g --youtube-skip-dash-manifest https://www.youtube.com/watch?v=k4J
[2015-12-18 20:08:18.314] GSAmu4lg
[2015-12-18 20:08:18.792] SW: sram_core_read(fn=201)=3
[2015-12-18 20:08:26.216] https://r4---sn-ab02a0nfpgxapox-bh2s.googlevideo.com/videoplayback?requiressl=yes&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&fexp=9406821%2C9407116%2C9408500%2C9415867%2C9416126%2C9418204%2C9420452%2C9422596%2C9423662%2C9424545%2C9424815%2C9425057%2C9425381&source=youtube&dur=678.394&lmt=1408760613498801&sver=3&ratebypass=yes&itag=18&signature=B67763A37F2DA19F9E62D46C2D323953F0BE3315.A8D5F469516748F15A384D32BAEE1E04FD1ACA5E&pcm2cms=yes&initcwndbps=4093750&mime=video%2Fmp4&key=yt6&upn=tS1H3w4_LrU&expire=1450458507&id=o-ADIUlbstRNKMAiyFBarYontPYpNiUI2ZS9C7oqresCKJ&pl=19&ms=au&mt=1450436828&mv=m&ip=115.93.47.62&mm=31&mn=sn-ab02a0nfpgxapox-bh2s&ipbits=0
[2015-12-18 20:08:26.686] # SW: sram_core_read(fn=201)=3

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 18, 2015

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?

@sbPark82
Copy link
Author

@sbPark82 sbPark82 commented Dec 18, 2015

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]
Sent: Friday, December 18, 2015 8:55 PM
To: rg3/youtube-dl
Cc: sbPark82
Subject: Re: [youtube-dl] youtube-dl delay 7~8 seconds (#7897)

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?


Reply to this email directly or view #7897 (comment) it on GitHub.보낸 사람이 제거한 이미지입니다.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 18, 2015

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.

@sbPark82
Copy link
Author

@sbPark82 sbPark82 commented Dec 18, 2015

Thank you!

how did you know that my system takes 5 seconds to load youtube-dl ?

From: Yen Chi Hsuan [mailto:notifications@github.com]
Sent: Friday, December 18, 2015 9:13 PM
To: rg3/youtube-dl
Cc: sbPark82
Subject: Re: [youtube-dl] youtube-dl delay 7~8 seconds (#7897)

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.


Reply to this email directly or view #7897 (comment) it on GitHub.보낸 사람이 제거한 이미지입니다.

@128k
Copy link

@128k 128k commented Dec 18, 2015

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

On 18 Dec 2015, at 12:41, sbPark82 notifications@github.com wrote:

Thank you!

how did you know that my system takes 5 seconds to load youtube-dl ?

From: Yen Chi Hsuan [mailto:notifications@github.com]
Sent: Friday, December 18, 2015 9:13 PM
To: rg3/youtube-dl
Cc: sbPark82
Subject: Re: [youtube-dl] youtube-dl delay 7~8 seconds (#7897)

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.


Reply to this email directly or view #7897 (comment) it on GitHub.보낸 사람이 제거한 이미지입니다.


Reply to this email directly or view it on GitHub.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 18, 2015

From the first 3 lines:

[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: []

[debug] System config occurs at the very early stage (a few lines after main()), so I guess the loading time is 5 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.