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.

pytube erroneously labels 4320p (8K) streams 2160p (4K)

See original GitHub issue

YouTube seems to support 8K resolution videos (e.g. this one: https://www.youtube.com/watch?v=1La4QzGeaaQ).

Nonetheless, pytube only outputs the following highest resolution streams:

[<Stream: itag="272" mime_type="video/webm" res="2160p" fps="30fps" vcodec="vp9">,
 <Stream: itag="313" mime_type="video/webm" res="2160p" fps="30fps" vcodec="vp9">,
 <Stream: itag="315" mime_type="video/webm" res="2160p" fps="60fps" vcodec="vp9">,
 <Stream: itag="337" mime_type="video/webm" res="2160p" fps="60fps" vcodec="vp9.2">,...

Note how the 2160p30 stream exists twice, though itag 272 is actually an 8K video. The resolution should rather be 4320p in this case.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
RONNCCcommented, Dec 7, 2020
0reactions
Raprodentcommented, Jan 24, 2022

Sure, I’ll try to contribute if I find anything, same goes for you with that 2160p with audio. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

pytube erroneously labels 4320p (8K) streams 2160p (4K) #304
YouTube seems to support 8K resolution videos (e.g. this one: ... pytube erroneously labels 4320p (8K) streams 2160p (4K) #304.
Read more >
pytube — pytube 12.1.2 documentation
pytube is a lightweight, Pythonic, dependency-free, library (and command-line utility) for downloading YouTube Videos. Behold, a perfect balance of simplicity ...
Read more >
YouTube Videos Download Using Python Codes - Medium
YouTube Videos Download Using Python Codes. Use OAuth to access age-restricted videos, and ffmpeg to get high resolution 2160p (4K) videos.
Read more >
pytube HTTP Not found - python - Stack Overflow
Try using this syntax. from pytube import YouTube YouTube('link').streams.first().download() yt = YouTube('link') yt.streams.
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