Why audio streams is downloading to much slower then video?
See original GitHub issuepython -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:
- Created 5 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, Could you please provide details I would be interested on how to fix it . Regards. Stéphane
Post the sample. I’m pretty sure I can code it.