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

Youtube Video Quality Sorting Incorrect #11451

Closed
zx2c4 opened this issue Dec 16, 2016 · 6 comments
Closed

Youtube Video Quality Sorting Incorrect #11451

zx2c4 opened this issue Dec 16, 2016 · 6 comments

Comments

@zx2c4
Copy link

@zx2c4 zx2c4 commented Dec 16, 2016

youtube-dl seems to download the 1280x720 version when a 1920x1080 version is available. What gives?

zx2c4@thinkpad /tmp $ youtube-dl -F https://www.youtube.com/watch?v=eYztYCbV_8U
[youtube] eYztYCbV_8U: Downloading webpage
[youtube] eYztYCbV_8U: Downloading video info webpage
[youtube] eYztYCbV_8U: Extracting video information
[youtube] eYztYCbV_8U: Downloading MPD manifest
[youtube] eYztYCbV_8U: Downloading MPD manifest
[info] Available formats for eYztYCbV_8U:
format code  extension  resolution note
140          m4a        audio only DASH audio  139k , m4a_dash container, mp4a.40.2@128k (44100Hz)
160          mp4        256x144    DASH video  108k , avc1.4d400b, 30fps, video only
133          mp4        426x240    DASH video  242k , avc1.4d400c, 30fps, video only
134          mp4        640x360    DASH video  304k , avc1.4d401e, 30fps, video only
135          mp4        854x480    DASH video 1155k , avc1.4d4014, 30fps, video only
137          mp4        1920x1080  DASH video 2280k , avc1.640028, 30fps, video only
136          mp4        1280x720   DASH video 2310k , avc1.4d4016, 30fps, video only
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)

Here's what it chooses by default:

zx2c4@thinkpad /tmp $ youtube-dl --get-format https://www.youtube.com/watch?v=eYztYCbV_8U
136 - 1280x720 (DASH video)+140 - audio only (DASH audio)

It seems to me that the superior video resolution of 137 combined with the superior audio quality of 22 would be the best.

What's wrong with the auto-selection algorithm?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 16, 2016

Bitrate takes precedence over width and height.

@dstftw dstftw closed this Dec 16, 2016
@zx2c4
Copy link
Author

@zx2c4 zx2c4 commented Dec 16, 2016

@dstftw Strangely I don't think that bitrate is even correct. The resultant file for the 1080p version is in fact larger.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 16, 2016

I don't think that bitrate is even correct

FYI: There was a long debate without a conclusion at #6018

@zx2c4
Copy link
Author

@zx2c4 zx2c4 commented Dec 16, 2016

No what I mean is that the displayed bitrate just isn't correct. I don't think it's a matter of differing codecs or something.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 16, 2016

Well, the bitrate value is provided by YouTube.

@Hrxn
Copy link

@Hrxn Hrxn commented Dec 16, 2016

This video is unlisted, maybe that's why it's treated differently by YouTube internally.

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