Repository: yt-dlp
Issue: TikTok: download_addr always reports video codec as h264
Labels: site-bug

### 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'm running yt-dlp version **2023.07.06** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [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)
- [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

_No response_

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

When listing formats on this TikTok video (https://vt.tiktok.com/ZSLP7GCYQ/), download_addr reports that its video codec is h264 when it is actually h265:

```
$ ./yt_dlp https://vt.tiktok.com/ZSLP7GCYQ/ --list-formats
[vm.tiktok] Extracting URL: https://vt.tiktok.com/ZSLP7GCYQ/
[vm.tiktok] ZSLP7GCYQ: Downloading webpage
[TikTok] Extracting URL: https://www.tiktok.com/@lenorewtf/video/7252940177100868865?_t=8e11Qw3KoOg&_r=1
[TikTok] 7252940177100868865: Downloading video feed
[info] Available formats for 7252940177100868865:
ID                     EXT RESOLUTION │   FILESIZE  TBR PROTO │ VCODEC ACODEC MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────
download_addr          mp4 576x1024   │  241.66KiB      https │ h264   aac    Download video (API)
h264_540p_185289-0     mp4 576x1024   │  339.28KiB 185k https │ h264   aac    Direct video (API)
h264_540p_185289-1     mp4 576x1024   │  339.28KiB 185k https │ h264   aac    Direct video
h264_540p_185289-2     mp4 576x1024   │  339.28KiB 185k https │ h264   aac    Direct video
bytevc1_540p_93117-0   mp4 576x1024   │  170.50KiB  93k https │ h265   aac    Playback video (API)
bytevc1_540p_93117-1   mp4 576x1024   │  170.50KiB  93k https │ h265   aac    Playback video
bytevc1_540p_93117-2   mp4 576x1024   │  170.50KiB  93k https │ h265   aac    Playback video
bytevc1_540p_106773-0  mp4 576x1024   │  195.51KiB 106k https │ h265   aac    Playback video (API)
bytevc1_540p_106773-1  mp4 576x1024   │  195.51KiB 106k https │ h265   aac    Playback video
bytevc1_540p_106773-2  mp4 576x1024   │  195.51KiB 106k https │ h265   aac    Playback video
bytevc1_540p_131976-0  mp4 576x1024   │  241.66KiB 131k https │ h265   aac    Direct video (API)
bytevc1_540p_131976-1  mp4 576x1024   │  241.66KiB 131k https │ h265   aac    Direct video
bytevc1_540p_131976-2  mp4 576x1024   │  241.66KiB 131k https │ h265   aac    Direct video
bytevc1_720p_193350-0  mp4 720x1280   │  354.04KiB 193k https │ h265   aac    Playback video (API)
bytevc1_720p_193350-1  mp4 720x1280   │  354.04KiB 193k https │ h265   aac    Playback video
bytevc1_720p_193350-2  mp4 720x1280   │  354.04KiB 193k https │ h265   aac    Playback video
bytevc1_1080p_274579-0 mp4 1080x1920  │  502.77KiB 274k https │ h265   aac    Playback video (API)
bytevc1_1080p_274579-1 mp4 1080x1920  │  502.77KiB 274k https │ h265   aac    Playback video
bytevc1_1080p_274579-2 mp4 1080x1920  │  502.77KiB 274k https │ h265   aac    Playback video
```
Downloading download_addr and running ffprobe over it shows this:
```
$ ./yt_dlp https://vt.tiktok.com/ZSLP7GCYQ/ -f download_addr --output test.mp4
[vm.tiktok] Extracting URL: https://vt.tiktok.com/ZSLP7GCYQ/
[vm.tiktok] ZSLP7GCYQ: Downloading webpage
[TikTok] Extracting URL: https://www.tiktok.com/@lenorewtf/video/7252940177100868865?_t=8e11Qw3KoOg&_r=1
[TikTok] 7252940177100868865: Downloading video feed
[info] 7252940177100868865: Downloading 1 format(s): download_addr
[download] Destination: test.mp4
[download] 100% of  241.66KiB in 00:00:00 at 588.13KiB/s

$ ffprobe test.mp4
ffprobe version 5.1.2-full_build-www.gyan.dev Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    comment         : vid:v10044g50000cijpo6bc77uc15bi0ce0
    encoder         : Lavf58.76.100
  Duration: 00:00:15.00, start: 0.000000, bitrate: 131 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709, progressive), 576x1024, 91 kb/s, SAR 1:1 DAR 9:16, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 32 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
```

### 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
[debug] Command-line config: ['-vU', 'https://vt.tiktok.com/ZSLP7GCYQ/', '--list-formats']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (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 5.1.2-full_build-www.gyan.dev (setts), ffprobe 5.1.2-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
Current Build Hash: 5ff3e702171a50175c34397494e2d18ce35d771c2110b1e59bd173ec2fb352aa
yt-dlp is up to date (stable@2023.07.06)
[vm.tiktok] Extracting URL: https://vt.tiktok.com/ZSLP7GCYQ/
[vm.tiktok] ZSLP7GCYQ: Downloading webpage
[TikTok] Extracting URL: https://www.tiktok.com/@lenorewtf/video/7252940177100868865?_t=8e11Qw3KoOg&_r=1
[TikTok] 7252940177100868865: Downloading video feed
[debug] Sort order given by extractor: quality, codec, size, br
[debug] Formats sorted by: hasvid, ie_pref, quality, vcodec, acodec, size, br, lang, res, fps, hdr:12(7), channels, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for 7252940177100868865:
ID                     EXT RESOLUTION │   FILESIZE  TBR PROTO │ VCODEC ACODEC MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────
download_addr          mp4 576x1024   │  241.66KiB      https │ h264   aac    Download video (API)
h264_540p_185289-0     mp4 576x1024   │  339.28KiB 185k https │ h264   aac    Direct video (API)
h264_540p_185289-1     mp4 576x1024   │  339.28KiB 185k https │ h264   aac    Direct video
h264_540p_185289-2     mp4 576x1024   │  339.28KiB 185k https │ h264   aac    Direct video
bytevc1_540p_93117-0   mp4 576x1024   │  170.50KiB  93k https │ h265   aac    Playback video (API)
bytevc1_540p_93117-1   mp4 576x1024   │  170.50KiB  93k https │ h265   aac    Playback video
bytevc1_540p_93117-2   mp4 576x1024   │  170.50KiB  93k https │ h265   aac    Playback video
bytevc1_540p_106773-0  mp4 576x1024   │  195.51KiB 106k https │ h265   aac    Playback video (API)
bytevc1_540p_106773-1  mp4 576x1024   │  195.51KiB 106k https │ h265   aac    Playback video
bytevc1_540p_106773-2  mp4 576x1024   │  195.51KiB 106k https │ h265   aac    Playback video
bytevc1_540p_131976-0  mp4 576x1024   │  241.66KiB 131k https │ h265   aac    Direct video (API)
bytevc1_540p_131976-1  mp4 576x1024   │  241.66KiB 131k https │ h265   aac    Direct video
bytevc1_540p_131976-2  mp4 576x1024   │  241.66KiB 131k https │ h265   aac    Direct video
bytevc1_720p_193350-0  mp4 720x1280   │  354.04KiB 193k https │ h265   aac    Playback video (API)
bytevc1_720p_193350-1  mp4 720x1280   │  354.04KiB 193k https │ h265   aac    Playback video
bytevc1_720p_193350-2  mp4 720x1280   │  354.04KiB 193k https │ h265   aac    Playback video
bytevc1_1080p_274579-0 mp4 1080x1920  │  502.77KiB 274k https │ h265   aac    Playback video (API)
bytevc1_1080p_274579-1 mp4 1080x1920  │  502.77KiB 274k https │ h265   aac    Playback video
bytevc1_1080p_274579-2 mp4 1080x1920  │  502.77KiB 274k https │ h265   aac    Playback video
```