question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why audio streams is downloading to much slower then video?

See original GitHub issue

python -V -> Python 3.6.3 macos sierra 10.13

How to reproduce: audio.py ->

from pytube import YouTube

yt = YouTube('https://www.youtube.com/watch?v=9bZkp7q19f0')
yt.streams.filter(only_audio=True).first().download()
$ time python audio.py 
#  output after 1 min 05 sec
python audio.py  0.52s user 0.11s system 0% cpu 1:05.82 total

video.py ->

from pytube import YouTube

stream = YouTube('https://www.youtube.com/watch?v=9bZkp7q19f0').streams.first()
assert stream.type == 'video'
stream.download()
$ time python video.py 
#  output after 8.46 sec
python video.py  0.94s user 0.24s system 13% cpu 8.463 total

Maybe you know. Is there are restrictions for audio streams downloading from youtube?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
StephaneDcicommented, Nov 23, 2018

I have the fix ready, but I can’t find time to code it. In case anyone is interested, I can provide sample code.

Hello, Could you please provide details I would be interested on how to fix it . Regards. Stéphane

3reactions
morgan-greywolfcommented, Nov 25, 2018

I have the fix ready, but I can’t find time to code it. In case anyone is interested, I can provide sample code.

Post the sample. I’m pretty sure I can code it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Stop Slow Buffering While Streaming | Quick and Easy!
Buffering isn't always constant as it varies with the internet speed. Buffering will fluctuate when downloading video or audio data but ...
Read more >
Why is it taking so long to download/upload a recording?
With Cable internet the download speed is often much faster than your upload speed. Please check your contract to see the expected download...
Read more >
Fix Audio-Video Sync Problems In Video Files
Audio-Video Sync Issues in Videos – Top Reasons · Video Media Player is outdated or improperly installed · Incorrect settings like large video...
Read more >
Streaming is much slower than Downloading - Super User
The buffer is limited, usually because the buffer is stored in memory. Yes, it can play while downloading, and it does. But with...
Read more >
How To Fix Live Stream Audio Video Sync Issues - YouTube
outofsync #audiovideo #livestreamSubscribe for more! ▻ http://bit.ly/2RkM4TTMedia Ministry Consultation ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found