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

Randomy slow download speeds even though my internet speed is 100Mbps #30052

Closed
5 of 6 tasks
Yilmaz4 opened this issue Oct 4, 2021 · 3 comments
Closed
5 of 6 tasks

Randomy slow download speeds even though my internet speed is 100Mbps #30052

Yilmaz4 opened this issue Oct 4, 2021 · 3 comments

Comments

@Yilmaz4
Copy link

Yilmaz4 commented Oct 4, 2021

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2021.06.06
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[youtube] iKCMVRJGx38: Downloading webpage
[download] Destination: Coolio - Gangsta's Paradise [NFS Edit - JustResurrected Remake]-iKCMVRJGx38.m4a
[download]  10.3% of 3.86MiB at 70.67KiB/s ETA 00:50

Description

I'm making a program which downloads audios from specified video's link. I'm using Python and youtube-dl. Sometimes download completes instantly. But sometimes download speed stucks at 50KiB/s or 70KiB/s. My internet speed is 100Mbps so I don't think it's a problem with my internet speed. I also tried running the program on a server but again same result, it sometimes downloads at 50KiB/s but sometimes full speed.

When I'm watching from YouTube itself, I have no problems by the way. I can watch the video at 1080p smoothly. What should I do to prevent random slow download speeds? Any ideas?

I'm running latest version of youtube-dl and latest version of Python. Below code is the code I use to download videos:

import youtube_dl

ydl_opts = {
    'format': 'bestaudio/best',
    'postprocessors': [{
          'key': 'FFmpegExtractAudio',
          'preferredcodec': 'mp3',
          'preferredquality': '192',
    }],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.download(["https://www.youtube.com/watch?v=iKCMVRJGx38"])
    info_dict = ydl.extract_info("https://www.youtube.com/watch?v=iKCMVRJGx38", download=False)
    video_title = info_dict.get('title', None)
@nicolaasjan
Copy link

This is a known issue.
See e.g. #29326

TL;DR;
Use the yt-dlp fork and all should be well again (for now at least).

@Yilmaz4
Copy link
Author

Yilmaz4 commented Oct 5, 2021

This is a known issue. See e.g. #29326

TL;DR; Use the yt-dlp fork and all should be well again (for now at least).

Thank you very much for your reply! I'll try to use. I hope its functions are as same as original youtube-dl.

Edit: I just uninstalled youtube-dl and installed that fork and it now works fine! Thanks again!

@Yilmaz4 Yilmaz4 closed this as completed Oct 5, 2021
@nicolaasjan
Copy link

I hope its functions are as same as original youtube-dl.

Read the Readme. :)

A lot of basic functions are the same, but there are differences as well.

dirkf added a commit that referenced this issue Jan 31, 2022
Fixes #29326, closes #29790, closes #30004, closes #30024, closes #30052,
closes #30088, closes #30097, closes #30102, closes #30109, closes #30119,
closes #30125, closes #30128, closes #30162, closes #30173, closes #30186,
closes #30192, closes #30221, closes #30239, closes #30539, closes #30552.
dirkf added a commit to dirkf/youtube-dl that referenced this issue Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants