{"action":"opened","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/11451","repository_url":"https://api.github.com/repos/rg3/youtube-dl","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/11451/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/11451/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/11451/events","html_url":"https://github.com/rg3/youtube-dl/issues/11451","id":195949356,"number":11451,"title":"Youtube Video Quality Sorting Incorrect","user":{"login":"zx2c4","id":10643,"avatar_url":"https://avatars.githubusercontent.com/u/10643?v=3","gravatar_id":"","url":"https://api.github.com/users/zx2c4","html_url":"https://github.com/zx2c4","followers_url":"https://api.github.com/users/zx2c4/followers","following_url":"https://api.github.com/users/zx2c4/following{/other_user}","gists_url":"https://api.github.com/users/zx2c4/gists{/gist_id}","starred_url":"https://api.github.com/users/zx2c4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zx2c4/subscriptions","organizations_url":"https://api.github.com/users/zx2c4/orgs","repos_url":"https://api.github.com/users/zx2c4/repos","events_url":"https://api.github.com/users/zx2c4/events{/privacy}","received_events_url":"https://api.github.com/users/zx2c4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T00:04:59Z","updated_at":"2016-12-16T00:04:59Z","closed_at":null,"body":"youtube-dl seems to download the 1280x720 version when a 1920x1080 version is available. What gives?\r\n\r\n```\r\nzx2c4@thinkpad /tmp $ youtube-dl -F https://www.youtube.com/watch?v=eYztYCbV_8U\r\n[youtube] eYztYCbV_8U: Downloading webpage\r\n[youtube] eYztYCbV_8U: Downloading video info webpage\r\n[youtube] eYztYCbV_8U: Extracting video information\r\n[youtube] eYztYCbV_8U: Downloading MPD manifest\r\n[youtube] eYztYCbV_8U: Downloading MPD manifest\r\n[info] Available formats for eYztYCbV_8U:\r\nformat code  extension  resolution note\r\n140          m4a        audio only DASH audio  139k , m4a_dash container, mp4a.40.2@128k (44100Hz)\r\n160          mp4        256x144    DASH video  108k , avc1.4d400b, 30fps, video only\r\n133          mp4        426x240    DASH video  242k , avc1.4d400c, 30fps, video only\r\n134          mp4        640x360    DASH video  304k , avc1.4d401e, 30fps, video only\r\n135          mp4        854x480    DASH video 1155k , avc1.4d4014, 30fps, video only\r\n137          mp4        1920x1080  DASH video 2280k , avc1.640028, 30fps, video only\r\n136          mp4        1280x720   DASH video 2310k , avc1.4d4016, 30fps, video only\r\n17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k\r\n36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2\r\n43           webm       640x360    medium , vp8.0,  vorbis@128k\r\n18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k\r\n22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)\r\n```\r\n\r\nHere's what it chooses by default:\r\n\r\n```\r\nzx2c4@thinkpad /tmp $ youtube-dl --get-format https://www.youtube.com/watch?v=eYztYCbV_8U\r\n136 - 1280x720 (DASH video)+140 - audio only (DASH audio)\r\n```\r\n\r\nIt seems to me that the superior video resolution of 137 combined with the superior audio quality of 22 would be the best.\r\n\r\nWhat's wrong with the auto-selection algorithm?\r\n\r\n\r\n"}}
{"actor":{"display_login":"zx2c4"}}