Skip to content

Instantly share code, notes, and snippets.

@MartinEesmaa
Forked from AgentOak/youtube_formats.md
Last active March 10, 2025 07:09
Show Gist options
  • Save MartinEesmaa/2f4b261cb90a47e9c41ba115a011a4aa to your computer and use it in GitHub Desktop.
Save MartinEesmaa/2f4b261cb90a47e9c41ba115a011a4aa to your computer and use it in GitHub Desktop.
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: February 2025

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264 VP8
MP4 MP4 MP4 WebM WebM WebM MP4 MP4 WebM
4320p 702 402/571 272 138
2160p 701 401 337 315 (313) (305) (266)
1440p 700 400 336 308 (271) (304) (264)
1080p 699 399 335 303 248/616 299 137/216 170
720p 698 398 334 302/612 247 298 136 169
480p 697 397 333 244 135 168
360p 696 396 332 243 134 167
240p 695 395 331 242 133
144p 694 394 330 278/598 160/597
  • HFR stands for "High Framerate", which means up to 60 FPS, whereas non-HFR is limited to 30 FPS
  • Non-HFR 1080p+ H.264 and VP9 variants are not provided for HFR videos anymore
  • Same IDs are reused for 360° videos
  • 1440p+ H.264 variants are only provided for 360° videos anymore
  • At the moment, AV1 variants are only provided for popular videos
  • All AV1 variants can be HDR (no separate non-HDR AV1 variants are offered)
  • AV1 HFR High: High refers to the bitrate. These variants have ~3-4 times the bitrate of their normal counterparts. Additional side effect is providing AV1 HFR variants for low resolutions (<=480p). These variants are rare even among videos with AV1 variants. Found on this video.
  • AV1 HFR 4320p: Format 571 has roughly 50% higher bitrate than 402. Sometimes only one of them is offered, sometimes both. Can be seen on this video.
  • VP8 can be found this video.
  • At format 616, it is the only YouTube premium video format.

Duplicate video IDs

Those duplicate video IDs of m3u8 as Apple Native HLS are linked to common numbers, not a rare numbers.

270 (m3u8) == 137 (https) are same video quality, but different protocol.

Thanks, dtlnor for explanation of equalation video IDs.

602 mp4   256x144     12    │ ~  9.28MiB    87k m3u8  │ vp09.00.10.08    87k video only
269 mp4   256x144     24    │ ~ 18.55MiB   175k m3u8  │ avc1.4D400C     175k video only
603 mp4   256x144     24    │ ~ 16.62MiB   156k m3u8  │ vp09.00.11.08   156k video only
229 mp4   426x240     24    │ ~ 34.72MiB   327k m3u8  │ avc1.4D4015     327k video only
604 mp4   426x240     24    │ ~ 30.72MiB   289k m3u8  │ vp09.00.20.08   289k video only
230 mp4   640x360     24    │ ~ 86.22MiB   812k m3u8  │ avc1.4D401E     812k video only
605 mp4   640x360     24    │ ~ 60.27MiB   567k m3u8  │ vp09.00.21.08   567k video only
231 mp4   854x480     24    │ ~144.25MiB  1358k m3u8  │ avc1.4D401E    1358k video only
606 mp4   854x480     24    │ ~ 98.31MiB   926k m3u8  │ vp09.00.30.08   926k video only
232 mp4   1280x720    24    │ ~280.39MiB  2640k m3u8  │ avc1.4D401F    2640k video only
609 mp4   1280x720    24    │ ~181.03MiB  1705k m3u8  │ vp09.00.31.08  1705k video only
311 mp4   1280x720    60    │ ~  1.14GiB  4842k m3u8  │ avc1.4D4020    4842k video only
270 mp4   1920x1080   24    │ ~498.55MiB  4694k m3u8  │ avc1.640028    4694k video only
614 mp4   1920x1080   24    │ ~312.21MiB  2940k m3u8  │ vp09.00.40.08  2940k video only
617 mp4   1920x1080   60    │ ~  1.52GiB  6443k m3u8  │ vp09.00.41.08  6443k video only
312 mp4   1920x1080   60    │ ~  1.89GiB  7987k m3u8  │ avc1.64002A    7987k video only
620 mp4   2560x1440   24    │ ~928.71MiB  8745k m3u8  │ vp09.00.50.08  8745k video only
623 mp4   2560x1440   60    │ ~  3.85GiB 16287k m3u8  │ vp09.00.50.08 16287k video only
625 mp4   3840x2160   24    │ ~  1.94GiB 18661k m3u8  │ vp09.00.50.08 18661k video only
628 mp4   3840x2160   60    │ ~  8.27GiB 35007k m3u8  │ vp09.00.51.08 35007k video only

Examples of two videos:

30 fps video

60 fps video

Extra video formats of 608p

Formats of 779, 780 and 788 were rarely encoded to some YouTube videos, the video resolution is 1080x608 and always under 30 FPS:

Code Container Video Codec Explanations
779 WebM VP9 Efficiency possible saving data for mobiles
780 WebM VP9 Best quality possible of VP9 than format 779
788 MP4 AV1 Saves sizes and quality little than VP9, but some videos only

Sample video link here.

Thanks to @GammaBoost for finding three formats!

DASH audio

Code Container Audio Codec Audio Bitrate Channels Still offered?
139 MP4 AAC (HE v1) 48 Kbps Stereo (2) Yes, YT Music, DRC optional
140 MP4 AAC (LC) 128 Kbps Stereo (2) Yes, YT Music, DRC optional
(141) MP4 AAC (LC) 256 Kbps Stereo (2) No, YT Music*
249 WebM Opus (VBR) ~50 Kbps Stereo (2) Yes, DRC optional
250 WebM Opus (VBR) ~70 Kbps Stereo (2) Yes, DRC optional
251 WebM Opus (VBR) <=160 Kbps Stereo (2) Yes, DRC optional
256 MP4 AAC (HE v1) 192 Kbps Surround (5.1) Rarely
258 MP4 AAC (LC) 384 Kbps Surround (5.1) Rarely
325 MP4 DTSE (DTS Express) 384 Kbps Surround (5.1) Rarely*
327 MP4 AAC (LC) 256 Kbps Surround (5.1) ?*
328 MP4 EAC3 384 Kbps Surround (5.1) Rarely
338 WebM Opus (VBR) ~480 Kbps (?) Quadraphonic (4) ?*
380 MP4 AC3 384 Kbps Surround (5.1) Rarely
599 MP4 AAC (HE v1) 30 Kbps Stereo (2) Yes, DRC optional
600 WebM Opus (VBR) ~35 Kbps Stereo (2) Yes, DRC optional
773 MP4 IAMF (Opus) (VBR) ~900 Kbps Binaural (7.1.4) Rarely*
774 WebM Opus (VBR) ~256 Kbps Stereo (2) Some, YT Music*
  • Surround audio can be found on some demo videos
  • YT Music: These formats are offered on Youtube Music. Format 141 is only available to Premium users with High Quality option
  • Format 327, 338: These have been found on this Stereo 3D video
  • Format 325: You can find out one video link here
  • Format 773: IAMF uncompressed audio track is compressed into Opus audio codec and can play with three groups of Stereo, Surround (5.1) and Binaural for up to 18 channels (7.1.4). You can find out video link here
  • Format 774 at YT Music: Some music have available high quality of Opus up to 256 kbps to Premium users, music link here and also bypassing is no longer possible to download for non premium users unless you're subscribed to YouTube Premium and can download format available by extra arguments of cookies from browser or the authentication.
  • DRC Optional: Only formats of 139, 140, 249, 250, 251, 599 and 600 were using DRC normalization sound for some videos.

Legacy (non-DASH)

Code Container Video Codec Video Res. Audio Codec Audio Bitrate Channels Still offered?
5 FLV H.263 (Sorenson Spark) 240p (4:3) MP3 64 Kbps Mono (1) No
6 FLV H.263 (Sorenson Spark) 270p (4:3) MP3 64 Kbps Mono (1) No
13 3GP MPEG-4 (Simple, L0) 144p AAC (LC) Unknown Mono (1) No
17 3GP MPEG-4 (Simple, L0) 144p AAC (LC) 24 Kbps Mono (1) No*, old mobile phones
18 MP4 H.264 (Main, L3.0) 360p AAC (LC) 96 (most) / 128 Kbps (some) Stereo (2) Yes, GDrive
22 MP4 H.264 (High, L3.1) 720p AAC (LC) 128 Kbps Stereo (2) No*, GDrive
34 FLV H.264 (Main, L3.0) 360p AAC 128 Kbps Stereo (2) No
35 FLV H.264 (Main, L3.0) 480p AAC 128 Kbps Stereo (2) No
36 3GP MPEG-4 (Simple, L0) 144p AAC (LC) 24 Kbps Mono (1) Rarely, old mobile phones
(37) MP4 H.264 (High, L4.0) 1080p AAC (LC) 128 Kbps Stereo (2) No, GDrive
38 MP4 H.264 3072p AAC 192 Kbps Stereo (2) No
43 WebM VP8 360p Vorbis 128 Kbps Stereo (2) No
44 WebM VP8 480p Vorbis 128 Kbps Stereo (2) No
45 WebM VP8 720p Vorbis 192 Kbps Stereo (2) No
46 WebM VP8 1080p Vorbis 192 Kbps Stereo (2) No
(59) MP4 H.264 (Main, L3.1) 480p AAC (LC) 128 Kbps Stereo (2) No, GDrive
78 MP4 H.264 480p AAC 128 Kbps Stereo (2) No
  • Format 17: Allows for old mobile phones (eg. cell phones) to watch all videos. The video can have 7.5 & 12 fps only.
  • Format 18: Some videos are encoded with audio bitrate of 128 kbps for shorter lengths, most of them are with 96 kbps if most lengths or less views.
  • Always limited to 30 FPS
  • GDrive: These formats are offered for Google Drive video previews. Note that the video player on GDrive displays incorrect codecs on rightclick -> stats
  • Format 22: Available for most videos, except music and music videos (not limited to official music channels!)
  • Starting since May 2024, the Format 17 and Format 22 is removed for every YouTube videos uploaded.

Livestreams (non-DASH)

Code Container Video Codec Video Res. Audio Codec Audio Bitrate Still offered?
91 MPEG-TS (HLS) H.264 (Baseline, L1.1) 144p AAC (HE v1) 48 Kbps Yes
92 MPEG-TS (HLS) H.264 (Main, L2.1) 240p AAC (HE v1) 48 Kbps Yes
93 MPEG-TS (HLS) H.264 (Main, L3.0) 360p AAC (LC) 128 Kbps Yes
94 MPEG-TS (HLS) H.264 (Main, L3.1) 480p AAC (LC) 128 Kbps Yes
95 MPEG-TS (HLS) H.264 (Main, L3.1) 720p AAC (LC) 128 Kbps Yes
96 MPEG-TS (HLS) H.264 (High, L4.0) 1080p AAC (LC) 128 Kbps Yes
300 MPEG-TS (HLS) H.264 (Main, L3.2) HFR 720p AAC (LC) 128 Kbps Yes
301 MPEG-TS (HLS) H.264 (High, L4.2) HFR 1080p AAC (LC) 128 Kbps Yes
  • Non-HFR variants are limited to 30 FPS, HFR to 60 FPS
  • Non-HFR variants for 720p and 1080p may not be offered if HFR is available
  • Livestreams are also offered through DASH video (H.264, VP9) and DASH audio (AAC) streams
  • Both audio codecs of MPEG-TS are limited sample rate to 44.1 Khz for streaming a live broadcast.

Template youtube-dl formats

For archiving videos: Only choose combinations that fit WebM (VP9+Opus) or MP4 (H.264+AAC)

bestvideo[ext=webm]+251/bestvideo[ext=mp4]+(258/256/140)/bestvideo[ext=webm]+(250/249)/best

For archiving audio: Choose any format that's best

AAC Surround 384 / Opus 160 / AAC 192 / AAC Surround 192 / AAC 128 / Opus 70 / AAC 96 / Opus 50 / AAC 48

258/251/22/256/140/250/18/249/139

For streaming videos: Allow any combination

bestvideo+bestaudio/best

yt-dlp usage example

Archive videos

yt-dlp --download-archive yt-dlp.list --ignore-errors --write-info-json --add-metadata --write-sub --sub-lang en,de,ja --write-thumbnail --embed-subs -f "<format>" "<URL>"

Archive audio

yt-dlp --download-archive yt-dlp.list --ignore-errors --write-info-json --add-metadata --write-sub --sub-lang en,de,ja --write-thumbnail --embed-thumbnail --extract-audio -f "<format>" "<URL>"

Complete archive video with audio, comments, subtitles, thumbnail and everything about YouTube ID:

yt-dlp --write-description --write-comments --write-link --write-auto-subs --embed-subs --embed-thumbnail --embed-chapters --sponsorblock-mark all https://www.youtube.com/watch?v=WhWc3b3KhnY

Credits and special thanks

AgentOak (original owner) made YouTube list formats of video and audio ID especially with tips.

MartinEesmaa (forked owner) updated YouTube list formats for up to date.

Special thanks for finding/fixing by:

qzmtch for finding missing 616 format

dtlnor for little interesting explanation of duplicate formats same

r8420 for finding missing 612 format

Ciancy28 for finding high quality of Opus 256 kbps (format 774) in YT Music

joaquinito2070 for renaming youtube-dl to yt-dlp and fixing incorrect bitrates. Some commits were on it.

@Ciancy28
Copy link

Ciancy28 commented Nov 4, 2024

Format 774 seems to be removed from the example video. Idk if 774 isn't available for any video or if it's something of that specific video.

It's only available for premium users now I think

@MartinEesmaa
Copy link
Author

MartinEesmaa commented Nov 5, 2024

Hi, @aokin1999 and @Ciancy28!

YouTube administrators forbids premium formats for YouTube Music only due bypassing reason and not paying to YouTube Premium of Music. So yt-dlp can't access premium format of music cover art with video covered after YouTube blocked bypassing without Music Premium subscription.

The only way is only can work by passing cookies file from your browser when you subscribed to YouTube Music Premium.

EDIT: I will have to update gist anyway then...

Feel free to reply me back. Thanks! :)

  • Martin Eesmaa

@aokin1999
Copy link

aokin1999 commented Nov 8, 2024

@MartinEesmaa
That doesn't make much sense (in my opinion, at least without more reasons or a technic explanation), since 1080p Premium (VP9 with higher bitrate, ID 616) download through yt-dlp is still allowed.
Don't say that YT Music downloads are more popular than ordinary videos and that's why Premium quality (774, 141) was blocked. Though this still could be a good explanation, IDK. (I would say something about multichannel but I don't have any idea, as I never tried seriously to find videos with that audio formats).
BTW, how is that of passing cookies? ._.

@Adhjie
Copy link

Adhjie commented Nov 9, 2024

Came here from: https://gist.github.com/AgentOak/34d47c65b1d28829bb17c24c04a0096f
Good job, finally a continuation. it's always sad to see abandonware. But IG, that's just how it goes in the docs world.

@Adhjie
Copy link

Adhjie commented Nov 9, 2024

@MartinEesmaa That doesn't make much sense (in my opinion, at least without more reasons or a technic explanation), since 1080p Premium (VP9 with higher bitrate, ID 616) download through yt-dlp is still allowed. Don't say that YT Music downloads are more popular than ordinary videos and that's why Premium quality (774, 141) was blocked. Though this still could be a good explanation, IDK. (I would say something about multichannel but I don't have any idea, as I never tried seriously to find videos with that audio formats). BTW, how is that of passing cookies? ._.

@aokin1999
I want to chime in. So if YT-DLP CLI is a daunting task for you, right now. I suggest looking at any of its GUI forks, e.g., YTDLnis. It supports format ID, downloading/fetching the video or any of its supported websites formats with cookies, though the limitation is only on the video itself right now. e.g., if the video is not HD, the HD option won't appear as an option download as.
Subtitle, etc.

At first, I was searching GUI fork in desktop. IDK why the mobile forks of some categories RN are great (Image Toolbox vs proprietary VideoProc formerly WinX video downloader team) but I'm all for it since I got syncthing to move the files anyway in case of lack of storage.

Oh yeah, paid videos or formats are only accessible with an account with the subscription in question, with cookie given of course when using yt-dlp. cookie here is mainly to download private or unlisted videos that you know the link of, e.g., just to name a few: 2020 anime opening parody (unlisted), bulk download your private or unlisted playlists or other people unlisted playlists with the cookie line in CLI or cookie file if in a fork, e.g., YTDLnis.

I have tried a lot of forks, currently settling on YTDLnis, if you want to check other forks, go ahead and compare them.

edit:
I think the cookie parameter in CLI, also points to cookie file. I haven't check CLI. but YTDLnis also points it to a cookie file.
feel free to elaborate on my explanation, or correct it.

@Adhjie
Copy link

Adhjie commented Nov 9, 2024

Also since I can't find footnotes on 137/216 in 1080p of H.264, what are the differences between the 2 format IDs?

@damp11113
Copy link

I found this video https://www.youtube.com/watch?v=cCEK6XrcUx0 it use opus 338 format.

@MartinEesmaa
Copy link
Author

Hi, @damp11113!

Thanks for the video! It is already recorded list information of format 338 in DASH Audio:

338 WebM Opus (VBR) ~480 Kbps (?) Quadraphonic (4) ?*

I can claim in YouTube Web (tested my desktop browser) uses format 338 when using YouTube stats, but yt-dlp doesn't show format 338 which YouTube disabled it for yt-dlp/youtube-dl.

Feel free to reply or ask question to me. Thanks! :)

  • Martin Eesmaa

@MartinEesmaa
Copy link
Author

Also since I can't find footnotes on 137/216 in 1080p of H.264, what are the differences between the 2 format IDs?

Hey, @Adhjie! Sorry for late response.

I didn't know notice, but I think most videos were encoded of format 137 is common thing, but format 216 sometimes rarely. Thanks for reporting in! :)

  • Martin Eesmaa

@Adhjie
Copy link

Adhjie commented Dec 9, 2024

@MartinEesmaa
IDK, the rule here. Since some GitHub issue section is quite strict with writing messages that alert all the devs that subscribe to this. IDK, the rule in gist is the same or not.
But, to continue. I was asking for clarification. I asked that question after reading the whole IDs tables. Currently I haven't encountered the rare 216.
Thanks for the answer.

Though, if any reader knows 2 or 1 YT videos that have these alternating IDs; feel free to ping/@ me. I wanna know the output in YT-DLP about these 2 IDs.

edit:
elaboration.

2nd edit:
I see, no subscribe button here. I guess gist is not the same as GitHub issue, so no ping to the commenters here?

3rd edit:
I saw the subscribe button. I'll just check this periodically, to declutter my notifs.

@sz3lbi
Copy link

sz3lbi commented Dec 22, 2024

When using YouTube Music Premium, the downloaded audio uses codec 251, which is not listed as being used in YouTube Music.

Based on the discussion, I assume this is the best audio quality YouTube offers, but worse than the best YouTube Music offers.

Video ID / sCPN
wzs0ME6646g / SMAW AYVC RQYV X66M K6DG
Viewport / Frames
0x0*1.25 / -
Current / Optimal Res
0x0
Volume / Normalized
100% / 93% (content loudness 0.7dB)
Codecs
0 / opus (251)
Connection Speed
5385 Kbps
Network Activity
0 KB
Buffer Health
43.75 s
Mystery Text
LIFAE, s:4 t:6.25 b:0.000-50.001 P

I still get codec 141 when streaming. Am I correct in assuming that downloading music results in lower audio quality than streaming?

@Manwithpants812
Copy link

(Thanks for maintaining this.)
It's missing 356 which is the 1080p Premium VP9 30fps id that YouTube on Chrome will give. I don't know if it's a remux of 616 since I can't get yt-dlp to reliably give me 616 and I can't get it to give me 356 at all (even with a Premium account).

@vbooka1
Copy link

vbooka1 commented Dec 30, 2024

A lot of videos are not anymore offered in format 18 (360p + embedded audio), however some are still not deleted yet. Google ran into economic problems and has to clean up servers now?

Some new videos (uploaded 1 hour ago) are presented in format 18, it looks like the format 18 is still supported but Google randomly removes some of the old (uploaded years ago) videos for unknown reasons. Possibly it has something with the view count, I think that less popular videos have higher chance to get most of the formats removed, and more popular videos will be preserved in most formats so more people with different devices will be able to see it.

Also I see that format 139 (audio only, low quality) is almost not existant anymore, as well as format 233, however the latter is still found in some videos.

Formats 140 and 251 (audio only, medium quality) are still available, mostly.

@GammaBoost
Copy link

Has anyone seen a 608p video before? This video, which is now unlisted, shows formats 779, 780 and 788, at 1080x608p.
https://www.youtube.com/watch?v=rafQwY9n_M0

[youtube] Extracting URL: rafQwY9n_M0
[youtube] rafQwY9n_M0: Downloading webpage
[youtube] rafQwY9n_M0: Downloading tv player API JSON
[youtube] rafQwY9n_M0: Downloading ios player API JSON
[youtube] rafQwY9n_M0: Downloading m3u8 information
[info] Available formats for rafQwY9n_M0:
ID      EXT   RESOLUTION FPS CH |   FILESIZE   TBR PROTO | VCODEC          VBR ACODEC      ABR ASR MORE INFO
------------------------------------------------------------------------------------------------------------------------------
sb2     mhtml 48x27        2    |                  mhtml | images                                  storyboard
sb1     mhtml 79x45        1    |                  mhtml | images                                  storyboard
sb0     mhtml 159x90       1    |                  mhtml | images                                  storyboard
233     mp4   audio only        |                  m3u8  | audio only          unknown             [en] Default
234     mp4   audio only        |                  m3u8  | audio only          unknown             [en] Default
249-drc webm  audio only      2 |  278.35KiB   51k https | audio only          opus        51k 48k [en] low, DRC, webm_dash
250-drc webm  audio only      2 |  363.72KiB   67k https | audio only          opus        67k 48k [en] low, DRC, webm_dash
249     webm  audio only      2 |  278.82KiB   51k https | audio only          opus        51k 48k [en] low, webm_dash
250     webm  audio only      2 |  363.91KiB   67k https | audio only          opus        67k 48k [en] low, webm_dash
140-drc m4a   audio only      2 |  708.35KiB  130k https | audio only          mp4a.40.2  130k 44k [en] medium, DRC, m4a_dash
251-drc webm  audio only      2 |  712.63KiB  131k https | audio only          opus       131k 48k [en] medium, DRC, webm_dash
140     m4a   audio only      2 |  708.39KiB  130k https | audio only          mp4a.40.2  130k 44k [en] medium, m4a_dash
251     webm  audio only      2 |  712.61KiB  131k https | audio only          opus       131k 48k [en] medium, webm_dash
602     mp4   256x144     15    | ~462.17KiB   84k m3u8  | vp09.00.10.08   84k video only
269     mp4   256x144     30    | ~928.59KiB  169k m3u8  | avc1.4D400C    169k video only
160     mp4   256x144     30    |  438.38KiB   80k https | avc1.4d400c     80k video only          144p, mp4_dash
603     mp4   256x144     30    | ~790.49KiB  144k m3u8  | vp09.00.11.08  144k video only
278     webm  256x144     30    |  389.60KiB   71k https | vp9             71k video only          144p, webm_dash
394     mp4   256x144     30    |  325.79KiB   60k https | av01.0.00M.08   60k video only          144p, mp4_dash
229     mp4   426x240     30    | ~  1.67MiB  311k m3u8  | avc1.4D4015    311k video only
133     mp4   426x240     30    |  876.06KiB  161k https | avc1.4d4015    161k video only          240p, mp4_dash
604     mp4   426x240     30    | ~878.82KiB  160k m3u8  | vp09.00.20.08  160k video only
242     webm  426x240     30    |  431.47KiB   79k https | vp9             79k video only          240p, webm_dash
395     mp4   426x240     30    |  639.13KiB  117k https | av01.0.00M.08  117k video only          240p, mp4_dash
230     mp4   640x360     30    | ~  3.20MiB  596k m3u8  | avc1.4D401E    596k video only
134     mp4   640x360     30    |    1.60MiB  300k https | avc1.4d401e    300k video only          360p, mp4_dash
18      mp4   640x360     30  2 |    2.82MiB  528k https | avc1.42001E         mp4a.40.2       48k [en] 360p
605     mp4   640x360     30    | ~  1.81MiB  338k m3u8  | vp09.00.21.08  338k video only
243     webm  640x360     30    |  809.13KiB  148k https | vp9            148k video only          360p, webm_dash
396     mp4   640x360     30    |    1.29MiB  241k https | av01.0.01M.08  241k video only          360p, mp4_dash
231     mp4   854x480     30    | ~  4.26MiB  794k m3u8  | avc1.4D401F    794k video only
135     mp4   854x480     30    |    2.36MiB  443k https | avc1.4d401f    443k video only          480p, mp4_dash
606     mp4   854x480     30    | ~  5.64MiB 1050k m3u8  | vp09.00.30.08 1050k video only
244     webm  854x480     30    |    3.50MiB  656k https | vp9            656k video only          480p, webm_dash
397     mp4   854x480     30    |    2.26MiB  424k https | av01.0.04M.08  424k video only          480p, mp4_dash
779     webm  1080x608    30    |    1.90MiB  357k https | vp9            357k video only          480p, webm_dash
780     webm  1080x608    30    |    3.51MiB  659k https | vp9            659k video only          480p, webm_dash
788     mp4   1080x608    30    |    2.31MiB  433k https | av01.0.04M.08  433k video only          480p, mp4_dash
232     mp4   1280x720    30    | ~  6.31MiB 1175k m3u8  | avc1.4D401F   1175k video only
136     mp4   1280x720    30    |    4.07MiB  764k https | avc1.4d401f    764k video only          720p, mp4_dash
609     mp4   1280x720    30    | ~  9.31MiB 1735k m3u8  | vp09.00.31.08 1735k video only
247     webm  1280x720    30    |    5.93MiB 1113k https | vp9           1113k video only          720p, webm_dash
398     mp4   1280x720    30    |    4.12MiB  773k https | av01.0.05M.08  773k video only          720p, mp4_dash
270     mp4   1920x1080   30    | ~ 14.45MiB 2694k m3u8  | avc1.640028   2694k video only
137     mp4   1920x1080   30    |    9.03MiB 1694k https | avc1.640028   1694k video only          1080p, mp4_dash
614     mp4   1920x1080   30    | ~ 12.58MiB 2345k m3u8  | vp09.00.40.08 2345k video only
248     webm  1920x1080   30    |    7.99MiB 1499k https | vp9           1499k video only          1080p, webm_dash
399     mp4   1920x1080   30    |    6.25MiB 1173k https | av01.0.08M.08 1173k video only          1080p, mp4_dash
620     mp4   2560x1440   30    | ~ 35.42MiB 6602k m3u8  | vp09.00.50.08 6602k video only
271     webm  2560x1440   30    |   22.75MiB 4270k https | vp9           4270k video only          1440p, webm_dash
400     mp4   2560x1440   30    |   16.58MiB 3111k https | av01.0.12M.08 3111k video only          1440p, mp4_dash

@MartinEesmaa
Copy link
Author

Hi, @GammaBoost! Thanks for providing sample YouTube link!

I can confirm these three formats were rarely encoded on YouTube:

779     webm  1080x608    30    |    1.90MiB  357k https | vp9            357k video only          480p, webm_dash
780     webm  1080x608    30    |    3.51MiB  659k https | vp9            659k video only          480p, webm_dash
788     mp4   1080x608    30    |    2.31MiB  433k https | av01.0.04M.08  433k video only          480p, mp4_dash

Some videos were rarely encoded with three formats of VP9 (two formats) and sometimes AV1 (one format).
All almost videos may don't have like three formats from sample video link.

I will add table of extra rare formats, but it will not go into DASH video table I'm not kinda sure. Feel free me to edit by replying if you like. :)
Thanks!

Sincerely,
Martin Eesmaa

@damp11113
Copy link

Hi. I Found a new format.
IAMF or Eclipsa Audio (773)
image
but yt-dlp still not support: yt-dlp/yt-dlp#12349
It can't use -F to scan a format. It will show warning. WARNING: Unknown codec iamf.001.001.Opus

> yt-dlp -F https://www.youtube.com/watch?v=ItvQeAkpG-M
[youtube] Extracting URL: https://www.youtube.com/watch?v=ItvQeAkpG-M
[youtube] ItvQeAkpG-M: Downloading webpage
[youtube] ItvQeAkpG-M: Downloading tv player API JSON
[youtube] ItvQeAkpG-M: Downloading ios player API JSON
WARNING: Unknown codec iamf.001.001.Opus
[youtube] ItvQeAkpG-M: Downloading m3u8 information

but you still can download IAMF file directly with:

> yt-dlp -f 773 https://www.youtube.com/watch?v=ItvQeAkpG-M
[youtube] Extracting URL: https://www.youtube.com/watch?v=ItvQeAkpG-M
[youtube] ItvQeAkpG-M: Downloading webpage
[youtube] ItvQeAkpG-M: Downloading tv player API JSON
[youtube] ItvQeAkpG-M: Downloading ios player API JSON
WARNING: Unknown codec iamf.001.001.Opus
[youtube] ItvQeAkpG-M: Downloading m3u8 information
[info] ItvQeAkpG-M: Downloading 1 format(s): 773
[download] Destination: Introduction to Eclipsa Audio (IAMF) [ItvQeAkpG-M].m4a
[download] 100% of   14.39MiB in 00:00:01 at 10.76MiB/s

For play IAMF file. You need ffplay (ffmpeg 2024+)

@MartinEesmaa
Copy link
Author

Hi, @damp11113! Thank you for showing interesting format! :)

This is amazing that you found a new format of IAMF like 3D audio free alternative to Dolby Atmos and DTS:X (both paid).
I will put new format IAMF, but it is like compressed to Opus audio codec for YouTube streaming.

Also I updated latest yt-dlp and making sure ffplay is latest now, we know why yt-dlp not support and luckily we downloaded IAMF format forcing specify number.

Thanks for exploring new video out! :)

  • Martin Eesmaa

@Reddyeen
Copy link

Looks like 8K AV1 enforced codec uploads mostly uses format 571, regardless popularity, this also works with any aspect ratio like 4:3, but since it's actually 5K by 5760x4320

example: https://www.youtube.com/watch?v=wggirxDSXLk

imagen_2025-02-22_212216274

@morisono
Copy link

This is for short video:

ID      EXT   RESOLUTION FPS CH │   FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2     mhtml 25x45        1    │                  mhtml │ images                                  storyboard
sb3     mhtml 48x27        2    │                  mhtml │ images                                  storyboard
sb1     mhtml 50x90        1    │                  mhtml │ images                                  storyboard
sb0     mhtml 101x180      1    │                  mhtml │ images                                  storyboard
233     mp4   audio only        │                  m3u8  │ audio only          unknown             [ja] Default, IOS
234     mp4   audio only        │                  m3u8  │ audio only          unknown             [ja] Default, IOS
249-drc webm  audio only      2 │  281.04KiB   51k https │ audio only          opus        51k 48k [ja] low, DRC, TV, webm_dash
250-drc webm  audio only      2 │  320.22KiB   58k https │ audio only          opus        58k 48k [ja] low, DRC, TV, webm_dash
249     webm  audio only      2 │  273.15KiB   49k https │ audio only          opus        49k 48k [ja] low, TV, webm_dash
250     webm  audio only      2 │  319.36KiB   57k https │ audio only          opus        57k 48k [ja] low, TV, webm_dash
140-drc m4a   audio only      2 │  721.17KiB  130k https │ audio only          mp4a.40.2  130k 44k [ja] medium, DRC, TV, m4a_dash
251-drc webm  audio only      2 │  580.84KiB  104k https │ audio only          opus       104k 48k [ja] medium, DRC, TV, webm_dash
140     m4a   audio only      2 │  721.17KiB  130k https │ audio only          mp4a.40.2  130k 44k [ja] medium, TV, m4a_dash
251     webm  audio only      2 │  580.00KiB  104k https │ audio only          opus       104k 48k [ja] medium, TV, webm_dash
602     mp4   144x256     15    │ ~445.16KiB   79k m3u8  │ vp09.00.10.08   79k video only          IOS
269     mp4   144x256     30    │ ~629.82KiB  112k m3u8  │ avc1.4D400C    112k video only          IOS
160     mp4   144x256     30    │  252.32KiB   45k https │ avc1.4d400c     45k video only          144p, TV, mp4_dash
229     mp4   240x426     30    │ ~959.83KiB  171k m3u8  │ avc1.4D4015    171k video only          IOS
133     mp4   240x426     30    │  497.23KiB   89k https │ avc1.4d4015     89k video only          240p, TV, mp4_dash
604     mp4   240x426     30    │ ~793.62KiB  141k m3u8  │ vp09.00.20.08  141k video only          IOS
242     webm  240x426     30    │  375.20KiB   68k https │ vp9             68k video only          240p, TV, webm_dash
395     mp4   240x426     30    │  330.76KiB   60k https │ av01.0.00M.08   60k video only          240p, TV, mp4_dash
230     mp4   360x640     30    │ ~  2.23MiB  408k m3u8  │ avc1.4D401E    408k video only          IOS
134     mp4   360x640     30    │    1.31MiB  241k https │ avc1.4d401e    241k video only          360p, TV, mp4_dash
18      mp4   360x640     30  2 │    3.23MiB  594k https │ avc1.42001E         mp4a.40.2       48k [ja] 360p, TV
605     mp4   360x640     30    │ ~  1.69MiB  308k m3u8  │ vp09.00.21.08  308k video only          IOS
243     webm  360x640     30    │  770.32KiB  139k https │ vp9            139k video only          360p, TV, webm_dash
396     mp4   360x640     30    │  984.77KiB  177k https │ av01.0.01M.08  177k video only          360p, TV, mp4_dash
231     mp4   480x854     30    │ ~  3.98MiB  726k m3u8  │ avc1.4D401F    726k video only          IOS
135     mp4   480x854     30    │    2.66MiB  491k https │ avc1.4d401f    491k video only          480p, TV, mp4_dash
397     mp4   480x854     30    │    1.55MiB  285k https │ av01.0.04M.08  285k video only          480p, TV, mp4_dash
779     webm  608x1080    30    │    1.64MiB  302k https │ vp9            302k video only          480p, TV, webm_dash
780     webm  608x1080    30    │    2.81MiB  517k https │ vp9            517k video only          480p, TV, webm_dash
788     mp4   608x1080    30    │    1.36MiB  250k https │ av01.0.04M.08  250k video only          480p, TV, mp4_dash
232     mp4   720x1280    30    │ ~  8.16MiB 1488k m3u8  │ avc1.4D401F   1488k video only          IOS
136     mp4   720x1280    30    │    5.91MiB 1089k https │ avc1.4d401f   1089k video only          720p, TV, mp4_dash
609     mp4   720x1280    30    │ ~  8.90MiB 1623k m3u8  │ vp09.00.31.08 1623k video only          IOS
247     webm  720x1280    30    │    5.76MiB 1062k https │ vp9           1062k video only          720p, TV, webm_dash
398     mp4   720x1280    30    │    2.92MiB  538k https │ av01.0.05M.08  538k video only          720p, TV, mp4_dash

@MartinEesmaa
Copy link
Author

MartinEesmaa commented Feb 25, 2025

Hi, @Reddyeen and @morisono! Thanks for giving the info. :)

It is already recorded list of format 571 just to say, but any aspect ratios still works when it's 8K. Remember... the height is 4320p is 8K like resolutions, width is for aspect ratios can be 5K for 5760. Also portrait resolutions too is reversed from landscape.

Questions or feedbacks, let me know. :)

  • Martin Eesmaa

@yiduohao
Copy link

yiduohao commented Mar 4, 2025

Hi, @damp11113!

Thanks for the video! It is already recorded list information of format 338 in DASH Audio:

338 WebM Opus (VBR) ~480 Kbps (?) Quadraphonic (4) ?*
I can claim in YouTube Web (tested my desktop browser) uses format 338 when using YouTube stats, but yt-dlp doesn't show format 338 which YouTube disabled it for yt-dlp/youtube-dl.

Feel free to reply or ask question to me. Thanks! :)

  • Martin Eesmaa

Hi @MartinEesmaa, thank you so much for sharing this information—I really appreciate it! I’m currently doing research that requires access to 338/327 audio formats, but I’ve encountered some difficulties downloading them.

I’ve noticed that neither youtube-dl nor yt-dlp correctly list these formats as available options. Would logging into an account with youtube-dl help resolve this issue, or is there another method you’d recommend for downloading these specific audio formats?

Looking forward to your insights!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment