{"action":"closed","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/5508","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5508/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5508/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5508/events","html_url":"https://github.com/rg3/youtube-dl/issues/5508","id":70406838,"number":5508,"title":"--max-quality ignored when used without -f","user":{"login":"Tailszefox","id":890677,"avatar_url":"https://avatars.githubusercontent.com/u/890677?v=3","gravatar_id":"","url":"https://api.github.com/users/Tailszefox","html_url":"https://github.com/Tailszefox","followers_url":"https://api.github.com/users/Tailszefox/followers","following_url":"https://api.github.com/users/Tailszefox/following{/other_user}","gists_url":"https://api.github.com/users/Tailszefox/gists{/gist_id}","starred_url":"https://api.github.com/users/Tailszefox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tailszefox/subscriptions","organizations_url":"https://api.github.com/users/Tailszefox/orgs","repos_url":"https://api.github.com/users/Tailszefox/repos","events_url":"https://api.github.com/users/Tailszefox/events{/privacy}","received_events_url":"https://api.github.com/users/Tailszefox/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T13:07:40Z","updated_at":"2015-04-27T13:23:19Z","closed_at":"2015-04-27T13:23:19Z","body":"Example:\r\n\r\n```\r\n$ youtube-dl -F https://www.youtube.com/watch\\?v\\=lYePxF7CJ6I                                                                                                                                                                           \r\n[youtube] lYePxF7CJ6I: Downloading webpage\r\n[youtube] lYePxF7CJ6I: Extracting video information\r\n[youtube] lYePxF7CJ6I: Downloading DASH manifest\r\n[info] Available formats for lYePxF7CJ6I:\r\nformat code  extension  resolution note\r\n171          webm       audio only DASH audio  126k , audio@128k (44100Hz), 5.42MiB\r\n140          m4a        audio only DASH audio  129k , m4a_dash container, aac  @128k (44100Hz), 6.14MiB\r\n141          m4a        audio only DASH audio  255k , m4a_dash container, aac  @256k (44100Hz), 12.19MiB\r\n160          mp4        256x144    DASH video  120k , 15fps, video only, 4.61MiB\r\n278          webm       256x144    DASH video  134k , webm container, VP9, 15fps, video only, 3.03MiB\r\n133          mp4        426x240    DASH video  274k , 30fps, video only, 9.92MiB\r\n242          webm       426x240    DASH video  289k , 30fps, video only, 5.67MiB\r\n243          webm       640x360    DASH video  485k , 30fps, video only, 10.02MiB\r\n134          mp4        640x360    DASH video  603k , 30fps, video only, 11.21MiB\r\n244          webm       854x480    DASH video  851k , 30fps, video only, 16.15MiB\r\n135          mp4        854x480    DASH video 1109k , 30fps, video only, 20.30MiB\r\n302          webm       1280x720   DASH video 2678k , VP9, 60fps, video only, 41.82MiB\r\n298          mp4        1280x720   DASH video 3310k , h264, 60fps, video only, 61.45MiB\r\n303          webm       1920x1080  DASH video 4966k , VP9, 60fps, video only, 79.56MiB\r\n299          mp4        1920x1080  DASH video 5523k , h264, 60fps, video only, 107.74MiB\r\n17           3gp        176x144    \r\n36           3gp        320x240    \r\n5            flv        400x240    \r\n43           webm       640x360    \r\n18           mp4        640x360    \r\n22           mp4        1280x720   (best)\r\n```\r\n\r\n```\r\n$ youtube-dl --max-quality 99 https://www.youtube.com/watch\\?v\\=lYePxF7CJ6I                                                                                                                                                             \r\n[youtube] lYePxF7CJ6I: Downloading webpage\r\n[youtube] lYePxF7CJ6I: Extracting video information\r\n[youtube] lYePxF7CJ6I: Downloading DASH manifest\r\n[download] Destination: LGR - Operation Frog - C64 Game Review-lYePxF7CJ6I.f299.mp4\r\n[download] 100% of 107.74MiB in 01:15\r\n[download] Destination: LGR - Operation Frog - C64 Game Review-lYePxF7CJ6I.f141.m4a\r\n[download] 100% of 12.19MiB in 00:11\r\n[ffmpeg] Merging formats into \"LGR - Operation Frog - C64 Game Review-lYePxF7CJ6I.mp4\"\r\n```\r\n\r\nDespite asking for a max-quality of 99 (ie everything that isn't DASH), I still get the 299 and 141 qualities.\r\n\r\nThis is regardless of the video or the argument passed to `--max-quality`:\r\n```\r\n$ youtube-dl --max-quality 199 https://www.youtube.com/watch\\?v\\=g1zerc7crGM                                                                                                                                                            \r\n[youtube] g1zerc7crGM: Downloading webpage\r\n[youtube] g1zerc7crGM: Extracting video information\r\n[youtube] g1zerc7crGM: Downloading DASH manifest\r\n[download] Destination: LGR - SimCity BuildIt Review-g1zerc7crGM.f299.mp4\r\n[download] 100% of 155.75MiB in 01:51\r\n[download] Destination: LGR - SimCity BuildIt Review-g1zerc7crGM.f141.m4a\r\n[download] 100% of 11.06MiB in 00:15\r\n[ffmpeg] Merging formats into \"LGR - SimCity BuildIt Review-g1zerc7crGM.mp4\"\r\nDeleting original file LGR - SimCity BuildIt Review-g1zerc7crGM.f299.mp4 (pass -k to keep)\r\nDeleting original file LGR - SimCity BuildIt Review-g1zerc7crGM.f141.m4a (pass -k to keep)\r\n```\r\n\r\nUsing `-f best` seems to make `--max-quality` actually be taken into account:\r\n```\r\n$ youtube-dl --max-quality 43 -f best https://www.youtube.com/watch\\?v\\=lYePxF7CJ6I                                                                                                                                                     \r\n[youtube] lYePxF7CJ6I: Downloading webpage\r\n[youtube] lYePxF7CJ6I: Extracting video information\r\n[youtube] lYePxF7CJ6I: Downloading DASH manifest\r\n[download] Destination: LGR - Operation Frog - C64 Game Review-lYePxF7CJ6I.webm\r\n```\r\n\r\nAll that being said, I realize that `--max-quality` is pretty much made obsolete by the new capabilities of `-f`. However, the option is still mentioned in the docs and help text, and simply gets ignored when used on its own, which is confusing.\r\n\r\nThe most simple way to solve this, I think, would be to simply remove the option, or mark it as deprecated. Maybe emit a warning or error when it's used, and ask the user to use `-f` instead."}}