Repository: yt-dlp
Issue: [SVTplay] "channels" format info not supported -> 2 channel audio is prioritized over 6 channel audio, workaround is problematic
Labels: site-enhancement

### 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 requesting a site-specific feature
- [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 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)
- [X] 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

global

### Example URLs

https://www.svtplay.se/video/j3pWBz5/kungen (streamable globally until Feb 7 2024, more URLs can be provided if that runs out)

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

1. In the -F format listing for SVTplay there is no "CH" column like there is for e.g. YouTube.
2. I presume this means that the extractor (sic?) can not tell the number of audio channels currently.
3. This leads to an issue with items which have both 2 channel audio (provided in AAC format "mp4a.40.2") and 6 channel audio (provided in AC3 format "ac-3") available.
4. So, while the default format sorting order is `"hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id"` (NB: "channels" over "acodec"), which would indicate that the 6ch audio would be preferred, in fact the 2ch audio is downloaded. Presumably because the extractor(?) can't tell the number of channels for the formats, and falls back to "acodec" selection which prioritizes AAC over AC3 by default (`"flac/alac > wav/aiff > opus > vorbis > aac > mp4a > mp3 > ac4 > eac3 > ac3 > dts > other"`).

It would be optimal if yt-dlp could tell the number of channels on the SVTplay site, so default format selection order would work as expected/intended.
_If this is not possible, it would be good if there was possible to set up the configuration to prioritize AC3 over AAC for the SVTplay site. I know it is possible to manually specify any stream/format I want, but it would be much preferable if this could be setup to work "automatically" for SVTplay items which have 6ch audio available as well as those which do not, while not messing up the format selection for other sites (i.e. not just prioritizing AC3 over AAC everywhere). But I guess this is asking for making it possible/easier to configure format selection settings per-site in general, and that should be a feature request of its own._

**NB: Naively adding --format-sort acodec:ac3 does not work as a simple workaround, since it (while getting 6ch audio) by default seems to select the dreaded "sv-x-tal" audio stream (containing read-aloud subtitles rather than the main audio). See https://github.com/yt-dlp/yt-dlp/issues/5164 for further information about this. To provide a full workaround further format selection has to be specified to select the "sv" audio rather than "sv-x-tal", "sv-x-tydligaretal" or any other "language" (the SVTplay extractor lists SVT's choices of standard audio, easier-to-hear-speech audio, spoken subtitles and audio description in "more info" and they can be discriminated  between using the "language" filter in format selection.**

### 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 -vU --ignore-config -F --skip-download https://www.svtplay.se/video/j3pWBz5/kungen
[debug] Command-line config: ['-vU', '--ignore-config', '-F', '--skip-download', 'https://www.svtplay.se/video/j3pWBz5/kungen']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.17763-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2023-11-28-git-47e214245b-full_build-www.gyan.dev (setts), ffprobe 2023-11-28-git-47e214245b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[debug] Using fake IP 78.72.112.216 (SE) as X-Forwarded-For
[SVTPlay] Extracting URL: https://www.svtplay.se/video/j3pWBz5/kungen
[SVTPlay] j3pWBz5: Downloading webpage
[SVTPlay] j3pWBz5: Downloading JSON metadata
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for j3pWBz5:
ID                                            EXT RESOLUTION FPS │   FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
hls-AAC-190-2ch-Svenska                       mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-cmaf-full-AAC-190-2ch-Svenska             mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-cmaf-full-AAC-190-2ch-Tydligare_tal       mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tydligaretal] Tydligare tal
hls-cmaf-full-AAC-190-2ch-Uppläst_undertext   mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-cmaf-full-AC-3-450-6ch-Svenska            mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-cmaf-full-AC-3-450-6ch-Tydligare_tal      mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tydligaretal] Tydligare tal
hls-cmaf-full-AC-3-450-6ch-Uppläst_undertext  mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-cmaf-lb-full-AAC-60-2ch-Svenska           mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-cmaf-lb-full-AAC-60-2ch-Tydligare_tal     mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tydligaretal] Tydligare tal
hls-cmaf-lb-full-AAC-60-2ch-Uppläst_undertext mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-ts-avc-AAC-190-2ch-Svenska                mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-ts-full-AAC-190-2ch-Svenska               mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-ts-full-AAC-190-2ch-Tydligare_tal         mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tydligaretal] Tydligare tal
hls-ts-full-AAC-190-2ch-Uppläst_undertext     mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-ts-full-AC-3-450-6ch-Svenska              mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-ts-full-AC-3-450-6ch-Tydligare_tal        mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tydligaretal] Tydligare tal
hls-ts-full-AC-3-450-6ch-Uppläst_undertext    mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-ts-lb-full-AAC-60-2ch-Svenska             mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-ts-lb-full-AAC-60-2ch-Tydligare_tal       mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tydligaretal] Tydligare tal
hls-ts-lb-full-AAC-60-2ch-Uppläst_undertext   mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
dash-full-10                                  m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv] DASH audio, m4a_dash
dash-full-12                                  m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv-x-tydligaretal] DASH audio, m4a_dash
dash-full-14                                  m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv-x-tal] DASH audio, m4a_dash
dash-hbbtv-avc-2                              m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv] DASH audio, m4a_dash
dash-hbbtv-avc-3                              m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv-x-tydligaretal] DASH audio, m4a_dash
dash-hbbtv-avc-4                              m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv-x-tal] DASH audio, m4a_dash
dash-hbbtv-hevc-2                             m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv] DASH audio, m4a_dash
dash-hbbtv-hevc-3                             m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv-x-tydligaretal] DASH audio, m4a_dash
dash-hbbtv-hevc-4                             m4a audio only     │ ~321.62MiB  449k dash  │ audio only          ac-3       449k 48k [sv-x-tal] DASH audio, m4a_dash
dash-lb-full-5                                m4a audio only     │ ~ 48.96MiB   68k dash  │ audio only          mp4a.40.2   68k 48k [sv-x-tydligaretal] DASH audio, m4a_dash
dash-lb-full-6                                m4a audio only     │ ~ 49.03MiB   68k dash  │ audio only          mp4a.40.2   68k 48k [sv-x-tal] DASH audio, m4a_dash
dash-lb-full-4                                m4a audio only     │ ~ 49.07MiB   68k dash  │ audio only          mp4a.40.2   68k 48k [sv] DASH audio, m4a_dash
dash-full-13                                  m4a audio only     │ ~140.53MiB  196k dash  │ audio only          mp4a.40.2  196k 48k [sv-x-tydligaretal] DASH audio, m4a_dash
dash-full-15                                  m4a audio only     │ ~140.73MiB  196k dash  │ audio only          mp4a.40.2  196k 48k [sv-x-tal] DASH audio, m4a_dash
dash-5                                        m4a audio only     │ ~140.76MiB  196k dash  │ audio only          mp4a.40.2  196k 48k [sv] DASH audio, m4a_dash
dash-avc-5                                    m4a audio only     │ ~140.76MiB  196k dash  │ audio only          mp4a.40.2  196k 48k [sv] DASH audio, m4a_dash
dash-full-11                                  m4a audio only     │ ~140.76MiB  196k dash  │ audio only          mp4a.40.2  196k 48k [sv] DASH audio, m4a_dash
hls-cmaf-lb-full-390                          mp4 416x234     25 │ ~279.79MiB  391k m3u8  │ avc1.42c01f    391k video only
hls-ts-lb-full-422                            mp4 416x234     25 │ ~303.00MiB  423k m3u8  │ avc1.42c01f    423k video only
hls-cmaf-full-518                             mp4 416x234     25 │ ~371.49MiB  519k m3u8  │ avc1.42c01f    519k video only
hls-550                                       mp4 416x234     25 │ ~394.70MiB  551k m3u8  │ avc1.42c01f    551k video only
hls-ts-avc-550                                mp4 416x234     25 │ ~394.70MiB  551k m3u8  │ avc1.42c01f    551k video only
hls-ts-full-550                               mp4 416x234     25 │ ~394.70MiB  551k m3u8  │ avc1.42c01f    551k video only
dash-4                                        mp4 416x234     25 │ ~429.40MiB  599k dash  │ avc1.42c01f    599k video only          DASH video, mp4_dash
dash-avc-4                                    mp4 416x234     25 │ ~429.40MiB  599k dash  │ avc1.42c01f    599k video only          DASH video, mp4_dash
dash-full-9                                   mp4 416x234     25 │ ~429.40MiB  599k dash  │ avc1.42c01f    599k video only          DASH video, mp4_dash
dash-lb-full-3                                mp4 416x234     25 │ ~429.40MiB  599k dash  │ avc1.42c01f    599k video only          DASH video, mp4_dash
hls-cmaf-full-772                             mp4 416x234     25 │ ~553.79MiB  773k m3u8  │ avc1.42c01f    773k video only
hls-ts-full-804                               mp4 416x234     25 │ ~576.23MiB  804k m3u8  │ avc1.42c01f    804k video only
hls-cmaf-lb-full-380                          mp4 416x234     25 │ ~272.46MiB  380k m3u8  │ hvc1.2.4.L123  380k video only
hls-cmaf-full-508                             mp4 416x234     25 │ ~364.16MiB  508k m3u8  │ hvc1.2.4.L123  508k video only
dash-full-4                                   mp4 416x234     25 │ ~418.68MiB  584k dash  │ hvc1.2.4.L123  584k video only          DASH video, mp4_dash
dash-lb-full-1                                mp4 416x234     25 │ ~418.68MiB  584k dash  │ hvc1.2.4.L123  584k video only          DASH video, mp4_dash
hls-cmaf-full-762                             mp4 416x234     25 │ ~546.46MiB  763k m3u8  │ hvc1.2.4.L123  763k video only
hls-cmaf-lb-full-872                          mp4 640x360     25 │ ~624.99MiB  872k m3u8  │ avc1.4d401f    872k video only
hls-ts-lb-full-914                            mp4 640x360     25 │ ~655.29MiB  915k m3u8  │ avc1.4d401f    915k video only
hls-cmaf-full-1000                            mp4 640x360     25 │ ~716.69MiB 1000k m3u8  │ avc1.4d401f   1000k video only
hls-1042                                      mp4 640x360     25 │ ~746.99MiB 1043k m3u8  │ avc1.4d401f   1043k video only
hls-ts-avc-1042                               mp4 640x360     25 │ ~746.99MiB 1043k m3u8  │ avc1.4d401f   1043k video only
hls-ts-full-1042                              mp4 640x360     25 │ ~746.99MiB 1043k m3u8  │ avc1.4d401f   1043k video only
hls-cmaf-full-1254                            mp4 640x360     25 │ ~898.99MiB 1255k m3u8  │ avc1.4d401f   1255k video only
hls-ts-full-1296                              mp4 640x360     25 │ ~928.51MiB 1296k m3u8  │ avc1.4d401f   1296k video only
dash-3                                        mp4 640x360     25 │ ~  1.07GiB 1530k dash  │ avc1.4d401f   1530k video only          DASH video, mp4_dash
dash-avc-3                                    mp4 640x360     25 │ ~  1.07GiB 1530k dash  │ avc1.4d401f   1530k video only          DASH video, mp4_dash
dash-full-8                                   mp4 640x360     25 │ ~  1.07GiB 1530k dash  │ avc1.4d401f   1530k video only          DASH video, mp4_dash
dash-lb-full-2                                mp4 640x360     25 │ ~  1.07GiB 1530k dash  │ avc1.4d401f   1530k video only          DASH video, mp4_dash
hls-cmaf-lb-full-662                          mp4 640x360     25 │ ~474.73MiB  663k m3u8  │ hvc1.2.4.L123  663k video only
hls-cmaf-full-790                             mp4 640x360     25 │ ~566.44MiB  791k m3u8  │ hvc1.2.4.L123  791k video only
hls-cmaf-full-1045                            mp4 640x360     25 │ ~748.73MiB 1045k m3u8  │ hvc1.2.4.L123 1045k video only
dash-full-3                                   mp4 640x360     25 │ ~802.32MiB 1120k dash  │ hvc1.2.4.L123 1120k video only          DASH video, mp4_dash
dash-lb-full-0                                mp4 640x360     25 │ ~802.32MiB 1120k dash  │ hvc1.2.4.L123 1120k video only          DASH video, mp4_dash
hls-cmaf-full-1504                            mp4 960x540     25 │ ~  1.05GiB 1504k m3u8  │ avc1.4d401f   1504k video only
hls-1557                                      mp4 960x540     25 │ ~  1.09GiB 1557k m3u8  │ avc1.4d401f   1557k video only
hls-ts-avc-1557                               mp4 960x540     25 │ ~  1.09GiB 1557k m3u8  │ avc1.4d401f   1557k video only
hls-ts-full-1557                              mp4 960x540     25 │ ~  1.09GiB 1557k m3u8  │ avc1.4d401f   1557k video only
hls-cmaf-full-1758                            mp4 960x540     25 │ ~  1.23GiB 1759k m3u8  │ avc1.4d401f   1759k video only
hls-ts-full-1810                              mp4 960x540     25 │ ~  1.27GiB 1811k m3u8  │ avc1.4d401f   1811k video only
dash-2                                        mp4 960x540     25 │ ~  1.65GiB 2355k dash  │ avc1.4d401f   2355k video only          DASH video, mp4_dash
dash-avc-2                                    mp4 960x540     25 │ ~  1.65GiB 2355k dash  │ avc1.4d401f   2355k video only          DASH video, mp4_dash
dash-full-7                                   mp4 960x540     25 │ ~  1.65GiB 2355k dash  │ avc1.4d401f   2355k video only          DASH video, mp4_dash
hls-cmaf-full-1288                            mp4 960x540     25 │ ~922.79MiB 1288k m3u8  │ hvc1.2.4.L123 1288k video only
hls-cmaf-full-1542                            mp4 960x540     25 │ ~  1.08GiB 1542k m3u8  │ hvc1.2.4.L123 1542k video only
dash-full-2                                   mp4 960x540     25 │ ~  1.47GiB 2102k dash  │ hvc1.2.4.L123 2102k video only          DASH video, mp4_dash
hls-cmaf-full-2258                            mp4 1280x720    25 │ ~  1.58GiB 2258k m3u8  │ avc1.4d401f   2258k video only
hls-2327                                      mp4 1280x720    25 │ ~  1.63GiB 2328k m3u8  │ avc1.4d401f   2328k video only
hls-ts-avc-2327                               mp4 1280x720    25 │ ~  1.63GiB 2328k m3u8  │ avc1.4d401f   2328k video only
hls-ts-full-2327                              mp4 1280x720    25 │ ~  1.63GiB 2328k m3u8  │ avc1.4d401f   2328k video only
hls-cmaf-full-2512                            mp4 1280x720    25 │ ~  1.76GiB 2513k m3u8  │ avc1.4d401f   2513k video only
hls-ts-full-2580                              mp4 1280x720    25 │ ~  1.81GiB 2581k m3u8  │ avc1.4d401f   2581k video only
dash-1                                        mp4 1280x720    25 │ ~  2.62GiB 3751k dash  │ avc1.4d401f   3751k video only          DASH video, mp4_dash
dash-avc-1                                    mp4 1280x720    25 │ ~  2.62GiB 3751k dash  │ avc1.4d401f   3751k video only          DASH video, mp4_dash
dash-full-6                                   mp4 1280x720    25 │ ~  2.62GiB 3751k dash  │ avc1.4d401f   3751k video only          DASH video, mp4_dash
dash-hbbtv-avc-1                              mp4 1280x720    25 │ ~  2.62GiB 3751k dash  │ avc1.4d401f   3751k video only          DASH video, mp4_dash
hls-cmaf-full-1876                            mp4 1280x720    25 │ ~  1.31GiB 1877k m3u8  │ hvc1.2.4.L123 1877k video only
hls-cmaf-full-2131                            mp4 1280x720    25 │ ~  1.49GiB 2131k m3u8  │ hvc1.2.4.L123 2131k video only
dash-full-1                                   mp4 1280x720    25 │ ~  2.20GiB 3151k dash  │ hvc1.2.4.L123 3151k video only          DASH video, mp4_dash
dash-hbbtv-hevc-1                             mp4 1280x720    25 │ ~  2.20GiB 3151k dash  │ hvc1.2.4.L123 3151k video only          DASH video, mp4_dash
hls-cmaf-full-3287                            mp4 1920x1080   25 │ ~  2.30GiB 3288k m3u8  │ avc1.640029   3288k video only
hls-3379                                      mp4 1920x1080   25 │ ~  2.36GiB 3379k m3u8  │ avc1.640029   3379k video only
hls-ts-avc-3379                               mp4 1920x1080   25 │ ~  2.36GiB 3379k m3u8  │ avc1.640029   3379k video only
hls-ts-full-3379                              mp4 1920x1080   25 │ ~  2.36GiB 3379k m3u8  │ avc1.640029   3379k video only
hls-cmaf-full-3542-0                          mp4 1920x1080   25 │ ~  2.48GiB 3542k m3u8  │ avc1.640029   3542k video only
hls-ts-full-3632                              mp4 1920x1080   25 │ ~  2.54GiB 3633k m3u8  │ avc1.640029   3633k video only
dash-0                                        mp4 1920x1080   25 │ ~  4.09GiB 5848k dash  │ avc1.640029   5848k video only          DASH video, mp4_dash
dash-avc-0                                    mp4 1920x1080   25 │ ~  4.09GiB 5848k dash  │ avc1.640029   5848k video only          DASH video, mp4_dash
dash-full-5                                   mp4 1920x1080   25 │ ~  4.09GiB 5848k dash  │ avc1.640029   5848k video only          DASH video, mp4_dash
dash-hbbtv-avc-0                              mp4 1920x1080   25 │ ~  4.09GiB 5848k dash  │ avc1.640029   5848k video only          DASH video, mp4_dash
hls-cmaf-full-3288                            mp4 1920x1080   25 │ ~  2.30GiB 3288k m3u8  │ hvc1.2.4.L123 3288k video only
hls-cmaf-full-3542-1                          mp4 1920x1080   25 │ ~  2.48GiB 3543k m3u8  │ hvc1.2.4.L123 3543k video only
dash-full-0                                   mp4 1920x1080   25 │ ~  4.09GiB 5850k dash  │ hvc1.2.4.L123 5850k video only          DASH video, mp4_dash
dash-hbbtv-hevc-0                             mp4 1920x1080   25 │ ~  4.09GiB 5850k dash  │ hvc1.2.4.L123 5850k video only          DASH video, mp4_dash



yt-dlp -vU --ignore-config --skip-download https://www.svtplay.se/video/j3pWBz5/kungen
[debug] Command-line config: ['-vU', '--ignore-config', '--skip-download', 'https://www.svtplay.se/video/j3pWBz5/kungen']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.17763-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2023-11-28-git-47e214245b-full_build-www.gyan.dev (setts), ffprobe 2023-11-28-git-47e214245b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[debug] Using fake IP 78.65.97.73 (SE) as X-Forwarded-For
[SVTPlay] Extracting URL: https://www.svtplay.se/video/j3pWBz5/kungen
[SVTPlay] j3pWBz5: Downloading webpage
[SVTPlay] j3pWBz5: Downloading JSON metadata
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] j3pWBz5: Downloading 1 format(s): dash-hbbtv-hevc-0+dash-full-11



yt-dlp -vU --ignore-config --skip-download --format-sort acodec:ac3 -f bestvideo*+bestaudio[language=sv] https://www.svtplay.se/video/j3pWBz5/kungen
[debug] Command-line config: ['-vU', '--ignore-config', '--skip-download', '--format-sort', 'acodec:ac3', '-f', 'bestvideo*+bestaudio[language=sv]', 'https://www.svtplay.se/video/j3pWBz5/kungen']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.17763-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2023-11-28-git-47e214245b-full_build-www.gyan.dev (setts), ffprobe 2023-11-28-git-47e214245b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[debug] Using fake IP 78.69.184.165 (SE) as X-Forwarded-For
[SVTPlay] Extracting URL: https://www.svtplay.se/video/j3pWBz5/kungen
[SVTPlay] j3pWBz5: Downloading webpage
[SVTPlay] j3pWBz5: Downloading JSON metadata
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading m3u8 information
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading MPD manifest
[SVTPlay] j3pWBz5: Downloading m3u8 information
[debug] Sort order given by user: acodec:ac3
[debug] Formats sorted by: hasvid, ie_pref, acodec:ac3(5), lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, size, br, asr, proto, vext, aext, hasaud, source, id
[info] j3pWBz5: Downloading 1 format(s): dash-hbbtv-hevc-0+dash-hbbtv-hevc-2


Here is an example output of an item with only 2ch audio available:
yt-dlp -vU --ignore-config --skip-download -F https://www.svtplay.se/video/8Ewgraz/skottlands-vilda-arstider/vintern-kommer
[debug] Command-line config: ['-vU', '--ignore-config', '--skip-download', '-F', 'https://www.svtplay.se/video/8Ewgraz/skottlands-vilda-arstider/vintern-kommer']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.17763-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2023-11-28-git-47e214245b-full_build-www.gyan.dev (setts), ffprobe 2023-11-28-git-47e214245b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[debug] Using fake IP 78.71.4.253 (SE) as X-Forwarded-For
[SVTPlay] Extracting URL: https://www.svtplay.se/video/8Ewgraz/skottlands-vilda-arstider/vintern-kommer
[SVTPlay] 8Ewgraz: Downloading webpage
[SVTPlay] jXkqXW7: Downloading JSON metadata
[SVTPlay] jXkqXW7: Downloading MPD manifest
[SVTPlay] jXkqXW7: Downloading m3u8 information
[SVTPlay] jXkqXW7: Downloading MPD manifest
[SVTPlay] jXkqXW7: Downloading m3u8 information
[SVTPlay] jXkqXW7: Downloading MPD manifest
[SVTPlay] jXkqXW7: Downloading m3u8 information
[SVTPlay] jXkqXW7: Downloading MPD manifest
[SVTPlay] jXkqXW7: Downloading m3u8 information
[SVTPlay] jXkqXW7: Downloading MPD manifest
[SVTPlay] jXkqXW7: Downloading MPD manifest
[SVTPlay] jXkqXW7: Downloading m3u8 information
[SVTPlay] jXkqXW7: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for jXkqXW7:
ID                                            EXT RESOLUTION FPS │   FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
hls-AAC-190-2ch-Svenska                       mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-cmaf-full-AAC-190-2ch-Svenska             mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-cmaf-full-AAC-190-2ch-Uppläst_undertext   mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-cmaf-lb-full-AAC-60-2ch-Svenska           mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-cmaf-lb-full-AAC-60-2ch-Uppläst_undertext mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-ts-avc-AAC-190-2ch-Svenska                mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-ts-full-AAC-190-2ch-Svenska               mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-ts-full-AAC-190-2ch-Uppläst_undertext     mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
hls-ts-lb-full-AAC-60-2ch-Svenska             mp4 audio only     │                  m3u8  │ audio only          unknown             [sv] Svenska
hls-ts-lb-full-AAC-60-2ch-Uppläst_undertext   mp4 audio only     │                  m3u8  │ audio only          unknown             [sv-x-tal] Uppläst undertext
dash-lb-full-4                                m4a audio only     │ ~ 22.22MiB   68k dash  │ audio only          mp4a.40.2   68k 48k [sv] DASH audio, m4a_dash
dash-lb-full-5                                m4a audio only     │ ~ 22.22MiB   68k dash  │ audio only          mp4a.40.2   68k 48k [sv-x-tal] DASH audio, m4a_dash
dash-5                                        m4a audio only     │ ~ 63.81MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv] DASH audio, m4a_dash
dash-avc-5                                    m4a audio only     │ ~ 63.81MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv] DASH audio, m4a_dash
dash-full-10                                  m4a audio only     │ ~ 63.81MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv] DASH audio, m4a_dash
dash-hbbtv-avc-2                              m4a audio only     │ ~ 63.81MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv] DASH audio, m4a_dash
dash-hbbtv-hevc-2                             m4a audio only     │ ~ 63.81MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv] DASH audio, m4a_dash
dash-full-11                                  m4a audio only     │ ~ 63.85MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv-x-tal] DASH audio, m4a_dash
dash-hbbtv-avc-3                              m4a audio only     │ ~ 63.85MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv-x-tal] DASH audio, m4a_dash
dash-hbbtv-hevc-3                             m4a audio only     │ ~ 63.85MiB  197k dash  │ audio only          mp4a.40.2  197k 48k [sv-x-tal] DASH audio, m4a_dash
hls-cmaf-lb-full-390                          mp4 416x234     25 │ ~126.79MiB  391k m3u8  │ avc1.42c01f    391k video only
hls-ts-lb-full-423                            mp4 416x234     25 │ ~137.26MiB  423k m3u8  │ avc1.42c01f    423k video only
hls-cmaf-full-518                             mp4 416x234     25 │ ~168.33MiB  519k m3u8  │ avc1.42c01f    519k video only
hls-551                                       mp4 416x234     25 │ ~178.79MiB  551k m3u8  │ avc1.42c01f    551k video only
hls-ts-avc-551                                mp4 416x234     25 │ ~178.79MiB  551k m3u8  │ avc1.42c01f    551k video only
hls-ts-full-551                               mp4 416x234     25 │ ~178.79MiB  551k m3u8  │ avc1.42c01f    551k video only
dash-4                                        mp4 416x234     25 │ ~197.40MiB  608k dash  │ avc1.42c01f    608k video only          DASH video, mp4_dash
dash-avc-4                                    mp4 416x234     25 │ ~197.40MiB  608k dash  │ avc1.42c01f    608k video only          DASH video, mp4_dash
dash-full-9                                   mp4 416x234     25 │ ~197.40MiB  608k dash  │ avc1.42c01f    608k video only          DASH video, mp4_dash
dash-lb-full-3                                mp4 416x234     25 │ ~197.40MiB  608k dash  │ avc1.42c01f    608k video only          DASH video, mp4_dash
hls-cmaf-lb-full-379                          mp4 416x234     25 │ ~123.24MiB  380k m3u8  │ hvc1.2.4.L123  380k video only
hls-cmaf-full-507                             mp4 416x234     25 │ ~164.77MiB  508k m3u8  │ hvc1.2.4.L123  508k video only
dash-full-4                                   mp4 416x234     25 │ ~189.24MiB  583k dash  │ hvc1.2.4.L123  583k video only          DASH video, mp4_dash
dash-lb-full-1                                mp4 416x234     25 │ ~189.24MiB  583k dash  │ hvc1.2.4.L123  583k video only          DASH video, mp4_dash
hls-cmaf-lb-full-872                          mp4 640x360     25 │ ~282.94MiB  872k m3u8  │ avc1.4d401f    872k video only
hls-ts-lb-full-913                            mp4 640x360     25 │ ~296.56MiB  914k m3u8  │ avc1.4d401f    914k video only
hls-cmaf-full-1000                            mp4 640x360     25 │ ~324.47MiB 1000k m3u8  │ avc1.4d401f   1000k video only
hls-1041                                      mp4 640x360     25 │ ~338.09MiB 1042k m3u8  │ avc1.4d401f   1042k video only
hls-ts-avc-1041                               mp4 640x360     25 │ ~338.09MiB 1042k m3u8  │ avc1.4d401f   1042k video only
hls-ts-full-1041                              mp4 640x360     25 │ ~338.09MiB 1042k m3u8  │ avc1.4d401f   1042k video only
dash-3                                        mp4 640x360     25 │ ~472.91MiB 1458k dash  │ avc1.4d401f   1458k video only          DASH video, mp4_dash
dash-avc-3                                    mp4 640x360     25 │ ~472.91MiB 1458k dash  │ avc1.4d401f   1458k video only          DASH video, mp4_dash
dash-full-8                                   mp4 640x360     25 │ ~472.91MiB 1458k dash  │ avc1.4d401f   1458k video only          DASH video, mp4_dash
dash-lb-full-2                                mp4 640x360     25 │ ~472.91MiB 1458k dash  │ avc1.4d401f   1458k video only          DASH video, mp4_dash
hls-cmaf-lb-full-662                          mp4 640x360     25 │ ~214.87MiB  662k m3u8  │ hvc1.2.4.L123  662k video only
hls-cmaf-full-790                             mp4 640x360     25 │ ~256.40MiB  790k m3u8  │ hvc1.2.4.L123  790k video only
dash-full-3                                   mp4 640x360     25 │ ~368.91MiB 1137k dash  │ hvc1.2.4.L123 1137k video only          DASH video, mp4_dash
dash-lb-full-0                                mp4 640x360     25 │ ~368.91MiB 1137k dash  │ hvc1.2.4.L123 1137k video only          DASH video, mp4_dash
hls-cmaf-full-1503                            mp4 960x540     25 │ ~487.96MiB 1504k m3u8  │ avc1.4d401f   1504k video only
hls-1556                                      mp4 960x540     25 │ ~505.14MiB 1557k m3u8  │ avc1.4d401f   1557k video only
hls-ts-avc-1556                               mp4 960x540     25 │ ~505.14MiB 1557k m3u8  │ avc1.4d401f   1557k video only
hls-ts-full-1556                              mp4 960x540     25 │ ~505.14MiB 1557k m3u8  │ avc1.4d401f   1557k video only
dash-2                                        mp4 960x540     25 │ ~800.88MiB 2468k dash  │ avc1.4d401f   2468k video only          DASH video, mp4_dash
dash-avc-2                                    mp4 960x540     25 │ ~800.88MiB 2468k dash  │ avc1.4d401f   2468k video only          DASH video, mp4_dash
dash-full-7                                   mp4 960x540     25 │ ~800.88MiB 2468k dash  │ avc1.4d401f   2468k video only          DASH video, mp4_dash
hls-cmaf-full-1289                            mp4 960x540     25 │ ~418.48MiB 1290k m3u8  │ hvc1.2.4.L123 1290k video only
dash-full-2                                   mp4 960x540     25 │ ~680.56MiB 2097k dash  │ hvc1.2.4.L123 2097k video only          DASH video, mp4_dash
hls-cmaf-full-2253                            mp4 1280x720    25 │ ~731.32MiB 2254k m3u8  │ avc1.4d401f   2254k video only
hls-2323                                      mp4 1280x720    25 │ ~753.84MiB 2323k m3u8  │ avc1.4d401f   2323k video only
hls-ts-avc-2323                               mp4 1280x720    25 │ ~753.84MiB 2323k m3u8  │ avc1.4d401f   2323k video only
hls-ts-full-2323                              mp4 1280x720    25 │ ~753.84MiB 2323k m3u8  │ avc1.4d401f   2323k video only
dash-1                                        mp4 1280x720    25 │ ~  1.21GiB 3808k dash  │ avc1.4d401f   3808k video only          DASH video, mp4_dash
dash-avc-1                                    mp4 1280x720    25 │ ~  1.21GiB 3808k dash  │ avc1.4d401f   3808k video only          DASH video, mp4_dash
dash-full-6                                   mp4 1280x720    25 │ ~  1.21GiB 3808k dash  │ avc1.4d401f   3808k video only          DASH video, mp4_dash
dash-hbbtv-avc-1                              mp4 1280x720    25 │ ~  1.21GiB 3808k dash  │ avc1.4d401f   3808k video only          DASH video, mp4_dash
hls-cmaf-full-1875                            mp4 1280x720    25 │ ~608.50MiB 1875k m3u8  │ hvc1.2.4.L123 1875k video only
dash-full-1                                   mp4 1280x720    25 │ ~  1.02GiB 3204k dash  │ hvc1.2.4.L123 3204k video only          DASH video, mp4_dash
dash-hbbtv-hevc-1                             mp4 1280x720    25 │ ~  1.02GiB 3204k dash  │ hvc1.2.4.L123 3204k video only          DASH video, mp4_dash
hls-cmaf-full-3283                            mp4 1920x1080   25 │ ~  1.04GiB 3284k m3u8  │ avc1.640029   3284k video only
hls-3375                                      mp4 1920x1080   25 │ ~  1.07GiB 3376k m3u8  │ avc1.640029   3376k video only
hls-ts-avc-3375                               mp4 1920x1080   25 │ ~  1.07GiB 3376k m3u8  │ avc1.640029   3376k video only
hls-ts-full-3375                              mp4 1920x1080   25 │ ~  1.07GiB 3376k m3u8  │ avc1.640029   3376k video only
dash-0                                        mp4 1920x1080   25 │ ~  1.82GiB 5733k dash  │ avc1.640029   5733k video only          DASH video, mp4_dash
dash-avc-0                                    mp4 1920x1080   25 │ ~  1.82GiB 5733k dash  │ avc1.640029   5733k video only          DASH video, mp4_dash
dash-full-5                                   mp4 1920x1080   25 │ ~  1.82GiB 5733k dash  │ avc1.640029   5733k video only          DASH video, mp4_dash
dash-hbbtv-avc-0                              mp4 1920x1080   25 │ ~  1.82GiB 5733k dash  │ avc1.640029   5733k video only          DASH video, mp4_dash
hls-cmaf-full-3291                            mp4 1920x1080   25 │ ~  1.04GiB 3291k m3u8  │ hvc1.2.4.L123 3291k video only
dash-full-0                                   mp4 1920x1080   25 │ ~  1.81GiB 5719k dash  │ hvc1.2.4.L123 5719k video only          DASH video, mp4_dash
dash-hbbtv-hevc-0                             mp4 1920x1080   25 │ ~  1.81GiB 5719k dash  │ hvc1.2.4.L123 5719k video only          DASH video, mp4_dash
```