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

Take long time #5755

Closed
falimero opened this issue May 19, 2015 · 13 comments
Closed

Take long time #5755

falimero opened this issue May 19, 2015 · 13 comments

Comments

@falimero
Copy link

@falimero falimero commented May 19, 2015

Hello all,

I have a problem whith youtube-dl.
for example youtube-dl -F https://www.youtube.com/watch?v=_VgjyM2NmhI
take over 8 secondes too execute. is it normal ?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 20, 2015

Post the output with the --verbose option. It's also slow when using --youtube-skip-dash-manifest?

@falimero
Copy link
Author

@falimero falimero commented May 20, 2015

there is time of execution :
standar :

    real    0m8.434s
    user    0m0.240s
    sys     0m0.076s

with --youtube-skip-dash-manifest

    real    0m3.587s
    user    0m0.232s
    sys     0m0.072s

And the verbose one

time youtube-dl -F https://www.youtube.com/watch?v=_VgjyM2NmhI --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-F', u'https://www.youtube.com/watch?v=_VgjyM2NmhI', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.05.15
[debug] Python version 2.7.9 - Linux-3.2.0-4-amd64-x86_64-with-Debian-7
[debug] exe versions: avconv 2.6.2, avprobe 2.6.2, ffmpeg 2.6.2, ffprobe 2.6.2
[debug] Proxy map: {}
[youtube] _VgjyM2NmhI: Downloading webpage
[youtube] _VgjyM2NmhI: Extracting video information
[youtube] _VgjyM2NmhI: Downloading DASH manifest
[info] Available formats for _VgjyM2NmhI:
format code  extension  resolution note
140          m4a        audio only DASH audio  133k , m4a_dash container, aac  @128k (44100Hz), 91.49MiB
141          m4a        audio only DASH audio  261k , m4a_dash container, aac  @256k (44100Hz), 183.65MiB
160          mp4        256x144    DASH video  133k , 15fps, video only, 78.45MiB
133          mp4        426x240    DASH video  272k , 30fps, video only, 176.55MiB
134          mp4        640x360    DASH video  639k , 30fps, video only, 336.05MiB
135          mp4        854x480    DASH video 1169k , 30fps, video only, 649.66MiB
298          mp4        1280x720   DASH video 3346k , h264, 60fps, video only, 2.05GiB
17           3gp        176x144
36           3gp        320x240
18           mp4        640x360
22           mp4        1280x720   (best)

real    0m8.434s
user    0m0.240s
sys     0m0.076s

What is the difference with --youtube-skip-dash-manifest ?

Your api web site is so much faster .... (http://jaimemf.github.io/youtube-dl-web/)

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 20, 2015

What is the difference with --youtube-skip-dash-manifest ?

By default youtube-dl fetchs an additional wepbage which contains more info about the formats (and in some cases, additional formats). But it think it's smaller that the video webpage, so it seems strange to take so much time (in my case it always take less that 1.5s). Does it happens with other videos?

@falimero
Copy link
Author

@falimero falimero commented May 20, 2015

Yes for all videos ... this one is just a test one

@falimero
Copy link
Author

@falimero falimero commented May 20, 2015

ok ok, my bad ...

$time wget https://www.youtube.com/watch?v=_VgjyM2NmhI
--2015-05-20 18:59:51--  https://www.youtube.com/watch?v=_VgjyM2NmhI
Résolution de www.youtube.com (www.youtube.com)… 2a00:1450:4007:80e::200e, 216.58.208.238
Connexion à www.youtube.com (www.youtube.com)|2a00:1450:4007:80e::200e|:443… échec : Aucun chemin d'accès pour atteindre l'hôte cible.
Connexion à www.youtube.com (www.youtube.com)|216.58.208.238|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « watch?v=_VgjyM2NmhI »

watch?v=_VgjyM2NmhI                                    [ <=>                                                                                                               ] 166,70K  --.-KB/s   ds 0,02s

2015-05-20 18:59:54 (8,54 MB/s) - « watch?v=_VgjyM2NmhI » sauvegardé [170698]


real    0m3.753s
user    0m0.016s
sys     0m0.016s

I see a dns probleme in ipv6. I change my DNS from OVH to Google and disable ipv6 support on my computer.

And now youtube-dl :

$time youtube-dl -F https://www.youtube.com/watch?v=_VgjyM2NmhI
[youtube] _VgjyM2NmhI: Downloading webpage
[youtube] _VgjyM2NmhI: Extracting video information
[youtube] _VgjyM2NmhI: Downloading DASH manifest
[info] Available formats for _VgjyM2NmhI:
format code  extension  resolution note
140          m4a        audio only DASH audio  133k , m4a_dash container, aac  @128k (44100Hz), 91.49MiB
141          m4a        audio only DASH audio  261k , m4a_dash container, aac  @256k (44100Hz), 183.65MiB
160          mp4        256x144    DASH video  133k , 15fps, video only, 78.45MiB
133          mp4        426x240    DASH video  272k , 30fps, video only, 176.55MiB
134          mp4        640x360    DASH video  639k , 30fps, video only, 336.05MiB
135          mp4        854x480    DASH video 1169k , 30fps, video only, 649.66MiB
298          mp4        1280x720   DASH video 3346k , h264, 60fps, video only, 2.05GiB
17           3gp        176x144
36           3gp        320x240
5            flv        400x240
18           mp4        640x360
22           mp4        1280x720   (best)

real    0m1.653s
user    0m0.432s
sys     0m0.036s
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 20, 2015

I'm closing the issue the.

@jaimeMF jaimeMF closed this May 20, 2015
@falimero
Copy link
Author

@falimero falimero commented May 22, 2015

an idea: add an option to download in ipv4 ?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 22, 2015

    -4, --force-ipv4                 Make all connections via IPv4
                                     (experimental)
    -6, --force-ipv6                 Make all connections via IPv6
                                     (experimental)
@falimero
Copy link
Author

@falimero falimero commented May 22, 2015

... sorry for not taking a look before

you are wonderfull

@bradly
Copy link

@bradly bradly commented Oct 14, 2015

fwiw This starting affecting me after upgrading to OS X El Capitan and might be pretty widespread. My downloads were taking extremely long, even just to download the webpage. Adding the -4 flagged fixed things right up, but it may make sense to make this the default in OS X? Not sure.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 14, 2015

Whether IPv6 affects downloading or not depends on OS, network environment, and maybe more. I don't think it's a good idea to use -4 as a default. Using an configuration file is a better choice.

@bradly
Copy link

@bradly bradly commented Oct 14, 2015

@yan12125 That makes sense. I didn't know about the config file–thanks for that, it is useful for this. My only thought was that if it it is affecting all Mac OS X users going forward then it might be worth looking in to.

@Tatsh
Copy link
Contributor

@Tatsh Tatsh commented Jan 31, 2017

Over Comcast hit this issue, or it could be my router's IPv6 configuration. --force-ipv4

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
6 participants
You can’t perform that action at this time.