Repository: yt-dlp
Issue: Current version will not detect YouTube premium format 356 with default player clients
Labels: site-bug,triage,site:youtube

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Australia

### Provide a description that is worded well enough to be understood

Recent versions of yt-dlp that default to ios and web_creator player clients for YouTube will not detect 1080p premium format (itag 356) if it exists.

Using either the web or tv player client instead will detect itag 356 if available. I've pasted the output of two commands below, the first using the default player clients and the second using the tv player client.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
yt-dlp.exe -v -F https://www.youtube.com/watch?v=nXuq8BN4a6A
[debug] Command-line config: ['-v', '-F', 'https://www.youtube.com/watch?v=nXuq8BN4a6A']
[debug] User config "C:\Users\uvbun\AppData\Roaming\yt-dlp\config.txt": ['-o', 'ID.[%(id)s].av.%(height)sp.[%(format_id)s].%(ext)s', '-o', 'infojson:ID.[%(id)s].%(ext)s', '--concurrent-fragments', '4', '--retries', '8', '--fragment-retries', '8', '--abort-on-unavailable-fragment', '--no-overwrites', '--no-continue', '--keep-video', '--fixup', 'never', '--no-check-formats', '--downloader', 'aria2c', '--cookies-from-browser', 'firefox:General-002::none', '--sleep-requests', '1', '--sleep-subtitles', '4', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3687.0 Safari/537.36', '-S', 'hasvid,+hasaud,+proto,hdr,vcodec,height,fps,lang,quality', '--alias', 'tt', '-o tt.[%(id)s].av.%(height)sp.[%(format_id)s].%(ext)s', '--alias', 'all-clients', '--extractor-args youtube:player_client=all', '--alias', 'yt-subs', '--config-locations C:\\\\Tools\\\\Configs\\\\yt-dlp\\\\yt-subs.cfg', '--alias', 'subs', '-o yt.[%(id)s].tt.sub.%(ext)s --skip-download --write-subs', '--alias', 'autocaps', '-o yt.[%(id)s].tt.auto.%(ext)s --skip-download --write-auto-subs', '--alias', 'autocaps-n', '--downloader native -o yt.[%(id)s].tt.auto.%(ext)s --skip-download --write-auto-subs', '--alias', 'read-cookies', '--no-cookies-from-browser --cookies "C:\\Tools\\Data\\Cookies\\yt-dlp-browser-cookies.txt"', '--alias', 'write-cookies', '--cookies "C:\\Tools\\Data\\Cookies\\yt-dlp-browser-cookies.txt"', '--alias', 'skip-cookies', '--no-cookies-from-browser']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version master@2024.08.06.025025 from yt-dlp/yt-dlp-master-builds [4d9231208] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-116527-g9a2171318d-20240804 (setts), ffprobe N-116527-g9a2171318d-20240804, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {}
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\uvbun\AppData\Roaming\Mozilla\Firefox\Profiles\General-002\cookies.sqlite"
[debug] Only loading cookies not belonging to any container
Extracted 1355 cookies from firefox
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1830 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=nXuq8BN4a6A
[youtube] nXuq8BN4a6A: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[youtube] Sleeping 1.0 seconds ...
[youtube] nXuq8BN4a6A: Downloading ios player API JSON
[youtube] Sleeping 1.0 seconds ...
[youtube] nXuq8BN4a6A: Downloading web creator player API JSON
[debug] Loading youtube-nsig.f8071a08 from cache
[debug] [youtube] Decrypted nsig AKOZR6JbIulrL0eq7cz2 => yq46-KtaLYvZpg
[debug] Loading youtube-nsig.f8071a08 from cache
[debug] [youtube] Decrypted nsig gBxhekjAMaew9B4jjKeL => k2nUTDfnQdr3cg
[youtube] Sleeping 1.0 seconds ...
[youtube] nXuq8BN4a6A: Downloading m3u8 information
[debug] Sort order given by user: hasvid, +hasaud, +proto, hdr, vcodec, height, fps, lang, quality
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, +hasaud, +proto, hdr, vcodec, height, fps, lang, quality, res, source, channels, acodec, size, br, asr, vext, aext, id
[info] Available formats for nXuq8BN4a6A:
ID      EXT   RESOLUTION FPS CH │   FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb3     mhtml 48x27        0    │                  mhtml │ images                                  storyboard
sb2     mhtml 80x45        1    │                  mhtml │ images                                  storyboard
sb1     mhtml 160x90       1    │                  mhtml │ images                                  storyboard
sb0     mhtml 320x180      1    │                  mhtml │ images                                  storyboard
139-drc m4a   audio only      2 │    1.52MiB   49k https │ audio only          mp4a.40.5   49k 22k [en] low, DRC, IOS, m4a_dash
139     m4a   audio only      2 │    1.52MiB   49k https │ audio only          mp4a.40.5   49k 22k [en] low, IOS, m4a_dash
249     webm  audio only      2 │    1.54MiB   49k https │ audio only          opus        49k 48k [en] low, WEB-C, webm_dash
250     webm  audio only      2 │    1.80MiB   58k https │ audio only          opus        58k 48k [en] low, WEB-C, webm_dash
140-drc m4a   audio only      2 │    4.02MiB  129k https │ audio only          mp4a.40.2  129k 44k [en] medium, DRC, IOS, m4a_dash
140     m4a   audio only      2 │    4.02MiB  129k https │ audio only          mp4a.40.2  129k 44k [en] medium, IOS, m4a_dash
251     webm  audio only      2 │    3.24MiB  104k https │ audio only          opus       104k 48k [en] medium, WEB-C, webm_dash
233     mp4   audio only        │                  m3u8  │ audio only          unknown             [en] Default, IOS
234     mp4   audio only        │                  m3u8  │ audio only          unknown             [en] Default, IOS
18      mp4   640x360     30  2 │   15.32MiB  493k https │ avc1.42001E         mp4a.40.2       44k [en] 360p, WEB-C
160     mp4   256x144     30    │    1.66MiB   53k https │ avc1.4D400C     53k video only          144p, IOS, mp4_dash
133     mp4   426x240     30    │    2.57MiB   83k https │ avc1.4D4015     83k video only          240p, IOS, mp4_dash
134     mp4   640x360     30    │    4.69MiB  151k https │ avc1.4D401E    151k video only          360p, IOS, mp4_dash
135     mp4   854x480     30    │    6.87MiB  221k https │ avc1.4D401F    221k video only          480p, IOS, mp4_dash
136     mp4   1280x720    30    │   12.58MiB  405k https │ avc1.4D401F    405k video only          720p, IOS, mp4_dash
137     mp4   1920x1080   30    │   50.19MiB 1616k https │ avc1.640028   1616k video only          1080p, IOS, mp4_dash
278     webm  256x144     30    │    2.91MiB   94k https │ vp09.00.11.08   94k video only          144p, IOS, webm_dash
242     webm  426x240     30    │    3.71MiB  120k https │ vp09.00.20.08  120k video only          240p, IOS, webm_dash
243     webm  640x360     30    │    6.28MiB  202k https │ vp09.00.21.08  202k video only          360p, IOS, webm_dash
244     webm  854x480     30    │    8.89MiB  286k https │ vp09.00.30.08  286k video only          480p, IOS, webm_dash
247     webm  1280x720    30    │   14.14MiB  455k https │ vp09.00.31.08  455k video only          720p, IOS, webm_dash
248     webm  1920x1080   30    │   28.67MiB  923k https │ vp09.00.40.08  923k video only          1080p, IOS, webm_dash
394     mp4   256x144     30    │    1.89MiB   61k https │ av01.0.00M.08   61k video only          144p, IOS, mp4_dash
395     mp4   426x240     30    │    2.82MiB   91k https │ av01.0.00M.08   91k video only          240p, IOS, mp4_dash
396     mp4   640x360     30    │    5.20MiB  167k https │ av01.0.01M.08  167k video only          360p, IOS, mp4_dash
397     mp4   854x480     30    │    8.48MiB  273k https │ av01.0.04M.08  273k video only          480p, IOS, mp4_dash
398     mp4   1280x720    30    │   14.73MiB  474k https │ av01.0.05M.08  474k video only          720p, IOS, mp4_dash
399     mp4   1920x1080   30    │   25.76MiB  830k https │ av01.0.08M.08  830k video only          1080p, IOS, mp4_dash
269     mp4   256x144     30    │ ~  5.12MiB  165k m3u8  │ avc1.4D400C    165k video only          IOS
229     mp4   426x240     30    │ ~  7.61MiB  244k m3u8  │ avc1.4D4015    244k video only          IOS
230     mp4   640x360     30    │ ~ 15.08MiB  485k m3u8  │ avc1.4D401E    485k video only          IOS
231     mp4   854x480     30    │ ~ 20.52MiB  660k m3u8  │ avc1.4D401F    660k video only          IOS
232     mp4   1280x720    30    │ ~ 32.95MiB 1059k m3u8  │ avc1.4D401F   1059k video only          IOS
270     mp4   1920x1080   30    │ ~114.58MiB 3683k m3u8  │ avc1.640028   3683k video only          IOS
602     mp4   256x144     15    │ ~  2.66MiB   86k m3u8  │ vp09.00.10.08   86k video only          IOS
603     mp4   256x144     30    │ ~  4.80MiB  154k m3u8  │ vp09.00.11.08  154k video only          IOS
604     mp4   426x240     30    │ ~  8.88MiB  286k m3u8  │ vp09.00.20.08  286k video only          IOS
605     mp4   640x360     30    │ ~ 17.40MiB  559k m3u8  │ vp09.00.21.08  559k video only          IOS
606     mp4   854x480     30    │ ~ 26.97MiB  867k m3u8  │ vp09.00.30.08  867k video only          IOS
609     mp4   1280x720    30    │ ~ 40.24MiB 1293k m3u8  │ vp09.00.31.08 1293k video only          IOS
614     mp4   1920x1080   30    │ ~ 82.62MiB 2656k m3u8  │ vp09.00.40.08 2656k video only          IOS
616     mp4   1920x1080   30    │ ~165.84MiB 5330k m3u8  │ vp09.00.40.08 5330k video only          Premium, IOS


yt-dlp.exe -v -F --extractor-args "youtube:player_client=tv" https://www.youtube.com/watch?v=nXuq8BN4a6A
[debug] Command-line config: ['-v', '-F', '--extractor-args', 'youtube:player_client=tv', 'https://www.youtube.com/watch?v=nXuq8BN4a6A']
[debug] User config "C:\Users\uvbun\AppData\Roaming\yt-dlp\config.txt": ['-o', 'ID.[%(id)s].av.%(height)sp.[%(format_id)s].%(ext)s', '-o', 'infojson:ID.[%(id)s].%(ext)s', '--concurrent-fragments', '4', '--retries', '8', '--fragment-retries', '8', '--abort-on-unavailable-fragment', '--no-overwrites', '--no-continue', '--keep-video', '--fixup', 'never', '--no-check-formats', '--downloader', 'aria2c', '--cookies-from-browser', 'firefox:General-002::none', '--sleep-requests', '1', '--sleep-subtitles', '4', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3687.0 Safari/537.36', '-S', 'hasvid,+hasaud,+proto,hdr,vcodec,height,fps,lang,quality', '--alias', 'tt', '-o tt.[%(id)s].av.%(height)sp.[%(format_id)s].%(ext)s', '--alias', 'all-clients', '--extractor-args youtube:player_client=all', '--alias', 'yt-subs', '--config-locations C:\\\\Tools\\\\Configs\\\\yt-dlp\\\\yt-subs.cfg', '--alias', 'subs', '-o yt.[%(id)s].tt.sub.%(ext)s --skip-download --write-subs', '--alias', 'autocaps', '-o yt.[%(id)s].tt.auto.%(ext)s --skip-download --write-auto-subs', '--alias', 'autocaps-n', '--downloader native -o yt.[%(id)s].tt.auto.%(ext)s --skip-download --write-auto-subs', '--alias', 'read-cookies', '--no-cookies-from-browser --cookies "C:\\Tools\\Data\\Cookies\\yt-dlp-browser-cookies.txt"', '--alias', 'write-cookies', '--cookies "C:\\Tools\\Data\\Cookies\\yt-dlp-browser-cookies.txt"', '--alias', 'skip-cookies', '--no-cookies-from-browser']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version master@2024.08.06.025025 from yt-dlp/yt-dlp-master-builds [4d9231208] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-116527-g9a2171318d-20240804 (setts), ffprobe N-116527-g9a2171318d-20240804, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {}
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\uvbun\AppData\Roaming\Mozilla\Firefox\Profiles\General-002\cookies.sqlite"
[debug] Only loading cookies not belonging to any container
Extracted 1354 cookies from firefox
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1830 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=nXuq8BN4a6A
[youtube] nXuq8BN4a6A: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[youtube] Sleeping 1.0 seconds ...
[youtube] nXuq8BN4a6A: Downloading tv player API JSON
[debug] Loading youtube-nsig.f8071a08 from cache
[debug] [youtube] Decrypted nsig XJBx4C4t6qDdNrj49ZNv => iH8_rovRNnq8LQ
[debug] Loading youtube-nsig.f8071a08 from cache
[debug] [youtube] Decrypted nsig vNL_4TlbCgmuki6LVHhs => Y-fW3LGIu1BZDA
[debug] Sort order given by user: hasvid, +hasaud, +proto, hdr, vcodec, height, fps, lang, quality
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, +hasaud, +proto, hdr, vcodec, height, fps, lang, quality, res, source, channels, acodec, size, br, asr, vext, aext, id
[info] Available formats for nXuq8BN4a6A:
ID      EXT   RESOLUTION FPS CH │  FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb3     mhtml 48x27        0    │                 mhtml │ images                                  storyboard
sb2     mhtml 80x45        1    │                 mhtml │ images                                  storyboard
sb1     mhtml 160x90       1    │                 mhtml │ images                                  storyboard
sb0     mhtml 320x180      1    │                 mhtml │ images                                  storyboard
249-drc webm  audio only      2 │   1.55MiB   50k https │ audio only          opus        50k 48k [en] low, DRC, TV, webm_dash
250-drc webm  audio only      2 │   1.80MiB   58k https │ audio only          opus        58k 48k [en] low, DRC, TV, webm_dash
249     webm  audio only      2 │   1.54MiB   49k https │ audio only          opus        49k 48k [en] low, TV, webm_dash
250     webm  audio only      2 │   1.80MiB   58k https │ audio only          opus        58k 48k [en] low, TV, webm_dash
140-drc m4a   audio only      2 │   4.02MiB  129k https │ audio only          mp4a.40.2  129k 44k [en] medium, DRC, TV, m4a_dash
251-drc webm  audio only      2 │   3.25MiB  105k https │ audio only          opus       105k 48k [en] medium, DRC, TV, webm_dash
140     m4a   audio only      2 │   4.02MiB  129k https │ audio only          mp4a.40.2  129k 44k [en] medium, TV, m4a_dash
251     webm  audio only      2 │   3.24MiB  104k https │ audio only          opus       104k 48k [en] medium, TV, webm_dash
18      mp4   640x360     30  2 │  15.32MiB  493k https │ avc1.42001E         mp4a.40.2       44k [en] 360p, TV
160     mp4   256x144     30    │   1.66MiB   53k https │ avc1.4d400c     53k video only          144p, TV, mp4_dash
133     mp4   426x240     30    │   2.57MiB   83k https │ avc1.4d4015     83k video only          240p, TV, mp4_dash
134     mp4   640x360     30    │   4.69MiB  151k https │ avc1.4d401e    151k video only          360p, TV, mp4_dash
135     mp4   854x480     30    │   6.87MiB  221k https │ avc1.4d401f    221k video only          480p, TV, mp4_dash
136     mp4   1280x720    30    │  12.58MiB  405k https │ avc1.4d401f    405k video only          720p, TV, mp4_dash
137     mp4   1920x1080   30    │  50.19MiB 1616k https │ avc1.640028   1616k video only          1080p, TV, mp4_dash
278     webm  256x144     30    │   2.91MiB   94k https │ vp9             94k video only          144p, TV, webm_dash
242     webm  426x240     30    │   3.71MiB  120k https │ vp9            120k video only          240p, TV, webm_dash
243     webm  640x360     30    │   6.28MiB  202k https │ vp9            202k video only          360p, TV, webm_dash
244     webm  854x480     30    │   8.89MiB  286k https │ vp9            286k video only          480p, TV, webm_dash
247     webm  1280x720    30    │  14.14MiB  455k https │ vp9            455k video only          720p, TV, webm_dash
248     webm  1920x1080   30    │  28.67MiB  923k https │ vp9            923k video only          1080p, TV, webm_dash
356     webm  1920x1080   30    │  75.59MiB 2434k https │ vp9           2434k video only          1080p Premium, TV, webm_dash
394     mp4   256x144     30    │   1.89MiB   61k https │ av01.0.00M.08   61k video only          144p, TV, mp4_dash
395     mp4   426x240     30    │   2.82MiB   91k https │ av01.0.00M.08   91k video only          240p, TV, mp4_dash
396     mp4   640x360     30    │   5.20MiB  167k https │ av01.0.01M.08  167k video only          360p, TV, mp4_dash
397     mp4   854x480     30    │   8.48MiB  273k https │ av01.0.04M.08  273k video only          480p, TV, mp4_dash
398     mp4   1280x720    30    │  14.73MiB  474k https │ av01.0.05M.08  474k video only          720p, TV, mp4_dash
399     mp4   1920x1080   30    │  25.76MiB  830k https │ av01.0.08M.08  830k video only          1080p, TV, mp4_dash
```