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 -F` often hangs for a long time on vimeo videos #8808

Open
heartbeep opened this issue Mar 9, 2016 · 7 comments
Open

`youtube-dl -F` often hangs for a long time on vimeo videos #8808

heartbeep opened this issue Mar 9, 2016 · 7 comments

Comments

@heartbeep
Copy link

@heartbeep heartbeep commented Mar 9, 2016

Usually it's pretty quick (1-2 seconds), but often it can take 1-2 minutes just to get the formats on a vimeo video. It seems to be the step downloading webpage or JSON. Any idea what might be causing the delay, and the inconsistency?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 20, 2016

Please give an example URL as well as the verbose output with -v.

@heartbeep
Copy link
Author

@heartbeep heartbeep commented Mar 21, 2016

time ./youtube-dl -v -F https://vimeo.com/157743578
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-F', u'https://vimeo.com/157743578']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.03.18
[debug] Python version 2.7.8 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2
[debug] Proxy map: {}
[vimeo] 157743578: Downloading webpage
[vimeo] 157743578: Extracting information
[vimeo] 157743578: Downloading webpage
[vimeo] 157743578: Downloading JSON metadata
[vimeo] 157743578: Downloading m3u8 information
[info] Available formats for 157743578:
format code extension resolution note
hls-meta mp4 multiple Quality selection URL
hls-689 mp4 640x360 689k , avc1.4D4016, mp4a.40.2
http-360p mp4 640x360 24fps
hls-1936 mp4 960x540 1936k , avc1.64001F, mp4a.40.2
http-540p mp4 960x540 24fps
hls-3252 mp4 1280x720 3252k , avc1.64001F, mp4a.40.2
http-720p mp4 1280x720 24fps
hls-5530 mp4 1920x1080 5530k , avc1.640028, mp4a.40.2
http-1080p mp4 1920x1080 24fps (best)

real 0m1.526s
user 0m0.674s
sys 0m0.078s

~/Development/WeMesh/github/android/libraries/youtube-dl-> time ./youtube-dl -v -F https://vimeo.com/157743578
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-F', u'https://vimeo.com/157743578']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.03.18
[debug] Python version 2.7.8 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2
[debug] Proxy map: {}
[vimeo] 157743578: Downloading webpage
[vimeo] 157743578: Extracting information
[vimeo] 157743578: Downloading webpage
[vimeo] 157743578: Downloading JSON metadata
[vimeo] 157743578: Downloading m3u8 information
[info] Available formats for 157743578:
format code extension resolution note
hls-meta mp4 multiple Quality selection URL
hls-689 mp4 640x360 689k , avc1.4D4016, mp4a.40.2
http-360p mp4 640x360 24fps
hls-1936 mp4 960x540 1936k , avc1.64001F, mp4a.40.2
http-540p mp4 960x540 24fps
hls-3252 mp4 1280x720 3252k , avc1.64001F, mp4a.40.2
http-720p mp4 1280x720 24fps
hls-5530 mp4 1920x1080 5530k , avc1.640028, mp4a.40.2
http-1080p mp4 1920x1080 24fps (best)

real 1m18.399s
user 0m0.644s
sys 0m0.077s

@heartbeep
Copy link
Author

@heartbeep heartbeep commented Mar 21, 2016

@yan12125 as you can see above, the first time (and most of the time, today at least) it only took 1 or 2 seconds, but another time it took over a minute.

@mikaiyl
Copy link

@mikaiyl mikaiyl commented Mar 24, 2016

Given that the first time it worked fast and without problems, I would chalk this up to a network connectivity issue. The only thing that could be changed in the script is the timeout, which would just exit with an error instead of downloading.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 24, 2016

@0xABC In the following command:

youtube-dl -v -F https://vimeo.com/157743578

Which line of the output takes the longest time?

@heartbeep
Copy link
Author

@heartbeep heartbeep commented May 13, 2016

@yan12125 This line took the longest:

[vimeo] 157743578: Downloading webpage

I just tried it 5 times in a row (youtube-dl 2016.05.10), and it was fast except for the last time when it took over an entire minute. Might have something to do with vimeo's servers. But it's very reproducible if you try several times.

@Hrxn
Copy link

@Hrxn Hrxn commented May 13, 2016

If you visit/use Vimeo in your browser, does it sometimes takes a while to load, or is it slow in any other way?

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
5 participants
@yan12125 @mikaiyl @heartbeep @Hrxn and others
You can’t perform that action at this time.