Repository: yt-dlp
Issue: Please add support for new video codec vvc or h266
Labels: 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 feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [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 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)

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

Have a great week everyone.

It is with great pleasure that I declare in advance that I would like the great and dear developers of yt-dlp to add support for downloading videos from YouTube and YouTube Music in the output or input quality for the new codec that is officially available in FFmpeg 7.1 from BtbN or gyan.dev

The new versions and compilations for VVC and H.266 are already ready on the current github and can already be used for playback and conversion through the most current FFmpeg 7.1.

The VVC and H.266 video qualities can include access to HDR, with the opus or m4a audio format, for MP4 or MKV files.

Also remembering that I would like the video quality for VVC or H.266 that can be added to yt-dlp through the latest versions 7.1 or higher of FFmpeg to contain the qualities of 144p to 8k, with 24, 30 or even 60 fps with or without HDR (as long as it is HDR10 or possibly the simplest or higher HDR).

Unfortunately, it will not be possible to make the versosity tool for "yt-dlp -S vcodec:vvc,res,acodec:m4a" or even "yt-dlp -S vcodec:h266,res,acodec:m4a".

Because when I activate this detail when downloading a video on YouTube or YouTube Music, it simply downloads the video in MP4 H.264 AVC, thus making it impossible to download the codec in the "VVC" or "H.266" preference.

Please note that detailed information about "yt-dlp -S vcodec:vvc,res,acodec:opus" and "yt-dlp -S vcodec:vvc,res,acodec:m4a" may be included.

I would like you to be able to decide which of these two codec formats can be added to yt-dlp for video input or output download, VVC or H.266, and which one consumes less performance to convert or download.

Any opinion from developer friends to the team would be very welcome.

I believe there is a gross difference between VVC or H.266 video quality, I would like one of these two to be added and without a doubt the video codec "yt-dlp -S vcodec:av1,res,acodec:m4a", I believe it could be maintained for some time, thus ending the av1 video codec in yt-dlp to stream videos, or keeping av1, vvc and h.266

A big thank you and it will be wonderful to watch videos in VVC or H.266 quality downloaded with the latest yt-dlp and FFmpeg.

A big hug and until the next doubts, questions, or answers.

I'm loving yt-dlp.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] 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 -S vcodec:vvc,res,acodec:m4a -vU https://music.youtube.com/watch?v=RcP-lkf6-z0
[debug] Command-line config: ['-S', 'vcodec:vvc,res,acodec:m4a', '-vU', 'https://music.youtube.com/watch?v=RcP-lkf6-z0']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version master@2024.10.01.001408 from yt-dlp/yt-dlp-master-builds [e59c82a74] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.26100-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-117286-g262e6f8430-20241001 (setts), ffprobe N-117286-g262e6f8430-20241001
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.3, websockets-13.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1838 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-master-builds/releases/latest
Latest version: master@2024.10.01.001408 from yt-dlp/yt-dlp-master-builds
yt-dlp is up to date (master@2024.10.01.001408 from yt-dlp/yt-dlp-master-builds)
[youtube] Extracting URL: https://music.youtube.com/watch?v=RcP-lkf6-z0
[youtube] RcP-lkf6-z0: Downloading webpage
[youtube] RcP-lkf6-z0: Downloading ios player API JSON
[youtube] RcP-lkf6-z0: Downloading web creator player API JSON
[youtube] RcP-lkf6-z0: Downloading ios music player API JSON
[youtube] RcP-lkf6-z0: Downloading web music client config
[youtube] RcP-lkf6-z0: Downloading player d9418494
[youtube] RcP-lkf6-z0: Downloading web music player API JSON
[debug] [youtube] Extracting signature function js_d9418494_107
[debug] Loading youtube-sigfuncs.js_d9418494_107 from cache
[debug] Loading youtube-nsig.d9418494 from cache
[debug] [youtube] Decrypted nsig LfLzA5Q82HSTkJRH => wv-ilfZlmBxrlw
[debug] Loading youtube-nsig.d9418494 from cache
[debug] [youtube] Decrypted nsig 6Cw_sKGA7GTBVmFG => CU2EVZCg9eGQkg
[debug] [youtube] Extracting signature function js_d9418494_103
[debug] Loading youtube-sigfuncs.js_d9418494_103 from cache
[youtube] RcP-lkf6-z0: Downloading m3u8 information
[youtube] RcP-lkf6-z0: Downloading m3u8 information
[debug] Sort order given by user: vcodec:vvc, res, acodec:m4a
[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, vcodec:vvc(3), res, acodec:m4a(9), quality, fps, hdr:12(7), source, channels, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] RcP-lkf6-z0: Downloading 1 format(s): 137+140
[debug] Invoking http downloader on "https://rr2---sn-ovguiuxaxcg-jo4l.googlevideo.com/videoplayback?expire=1727867005&ei=HdT8Zrz-MeSPobIPhsHoMA&ip=45.5.253.168&id=o-AF52Ih4_xoE7ddYXvIGh-MZuWiwaH0-BDc0xgPCnWpix&itag=137&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Xl&mm=31%2C29&mn=sn-ovguiuxaxcg-jo4l%2Csn-bg0eznsk&ms=au%2Crdu&mv=m&mvi=2&pl=24&initcwndbps=1277500&vprv=1&svpuc=1&mime=video%2Fmp4&rqh=1&gir=yes&clen=53998113&dur=186.019&lmt=1706315327002170&mt=1727845012&fvip=3&keepalive=yes&fexp=51300760&c=IOS&txp=4432434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgZcJDASd040U0UFpmtgW644W2TpwpD-7icsLx6gdciDUCIH3Iteu2uCYoLUzHSJPKsl37Kmx8_eFgHu1mJd3QEdCn&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ACJ0pHgwRQIhANNrbr3Rs1TMjgbE0plBUNy3oS_LGbuDMudq8tUXWP7wAiBV_8clH-GdcygFjwPHUKVusADjsvinzF2tGGL2wO51Jg%3D%3D"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: 3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].f137.mp4
[download] 100% of   51.50MiB in 00:00:04 at 10.46MiB/s
[debug] Invoking http downloader on "https://rr2---sn-ovguiuxaxcg-jo4l.googlevideo.com/videoplayback?expire=1727867005&ei=HdT8Zrz-MeSPobIPhsHoMA&ip=45.5.253.168&id=o-AF52Ih4_xoE7ddYXvIGh-MZuWiwaH0-BDc0xgPCnWpix&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Xl&mm=31%2C29&mn=sn-ovguiuxaxcg-jo4l%2Csn-bg0eznsk&ms=au%2Crdu&mv=m&mvi=2&pl=24&initcwndbps=1277500&vprv=1&svpuc=1&mime=audio%2Fmp4&rqh=1&gir=yes&clen=3012279&dur=186.084&lmt=1706314928873204&mt=1727845012&fvip=3&keepalive=yes&fexp=51300760&c=IOS&txp=4432434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIgMWfPYRZGUcamCtki1vNyqifXmVTO_BNqDYf38SFo-soCIQD2T8JFFOfaMAGAo9_RD8zy7ndV8OfQdmSIbJYDAcoP6w%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ACJ0pHgwRQIhANNrbr3Rs1TMjgbE0plBUNy3oS_LGbuDMudq8tUXWP7wAiBV_8clH-GdcygFjwPHUKVusADjsvinzF2tGGL2wO51Jg%3D%3D"
[download] Destination: 3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].f140.m4a
[download] 100% of    2.87MiB in 00:00:00 at 6.42MiB/s
[Merger] Merging formats into "3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i "file:3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].f137.mp4" -i "file:3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].f140.m4a" -c copy -map 0:v:0 -map 1:a:0 -movflags +faststart "file:3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].temp.mp4"
Deleting original file 3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].f140.m4a (pass -k to keep)
Deleting original file 3030 & Cacife Clandestino - Isso Que É Som de Rap (Prod. REEO MIX) (Clipe Oficial) [RcP-lkf6-z0].f137.mp4 (pass -k to keep)
```