YouTube 格式 ID
YouTube Format IDs

原始链接: https://gist.github.com/MartinEesmaa/2f4b261cb90a47e9c41ba115a011a4aa

本文档是一个关于 YouTube 格式代码(“itags”)的技术仓库,记录了该平台所使用的各种视频和音频容器、编解码器以及分辨率。本指南最初由 AgentOak 创建,目前由 Martin Eesmaa 维护,旨在为 `yt-dlp` 等工具提供参考。 **核心亮点:** * **格式代码:** 列出了从 144p 到 8K (4320p) 分辨率的特定 ID,包含 AV1、VP9 和 H.264 等编解码器,并区分了标准帧率与高帧率 (HFR) 流。 * **技术细节:** 涵盖了 YouTube Premium 专属流、超级分辨率 (-sr) AI 增强视频以及 M3U8/HLS 替代方案等专业格式。 * **音频流:** 详细介绍了各种音频编解码器(Opus、AAC、DTS、IAMF),说明了高质量音频或环绕声的特定要求,并指出部分格式现已限制为 Premium 用户或特定客户端专享。 * **使用指南:** 提供了 `yt-dlp` 命令的实用模板,重点介绍了在考虑到平台近期变动及已弃用格式的情况下,归档高质量视频和音频的最佳实践。 本指南会定期更新,以反映 YouTube 不断演进的基础设施,包括编解码器可用性和流媒体协议的最新变化。

关于高帧率(HFR/60fps)视频的 Hacker News 讨论显示,用户偏好存在严重分歧。 支持者认为,对于体育和游戏等高动态内容,60fps 至关重要,它能提供更流畅、更真实的观看体验。他们认为对 24fps“电影感”的偏好往往是一种后天形成的偏见,并指出现代显示设备和视频内容(如 YouTube)都能从这种高流畅度中获益良多。许多人主张,无论观众是否会产生“肥皂剧效应”,60fps 都应成为行业最低标准。 反之,批评者认为 HFR 是对带宽、电池续航和流量的过度消耗。一些用户觉得 60fps 会令人分心或产生“恐怖谷”效应,因此更青睐 24fps 电影传统的风格化美感。他们认为,对于演示文稿或“访谈类”视频等静态内容,高帧率毫无意义,而这些内容往往需要电影感的视觉效果。 虽然这场技术辩论涉及压缩效率问题——有人指出 HFR 并不总是使所需带宽翻倍——但归根结底,这场讨论反映了两种理念的碰撞:一方追求“真实感”和动态清晰度,另一方则重视传统的电影美学。
相关文章

原文

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.

Before this gist has been forked, AgentOak made original gist on November 13 2019 and it was last updated on May 5 2021.

From now on, this forked gist is maintained by Martin Eesmaa since 17 September 2022. I joined to yt-dlp Discord server on 3rd April 2026 with my Discord username: martineesmaa.

Last updated: 20 August 2026

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22) used to be on website address bar after YouTube Video ID, (deprecated?). Depending on the age and/or popularity of the video, not all formats will be available.

Resolution AV1 HDR (HFR) 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/721 335 303 248/356 299 137 170
720p 698 398 334 302/612 247 298 136/214 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 356 & 712, it is the only YouTube premium video format and requires your YouTube account subscribed with Premium subscription to pass cookies file. Format 356 is connected to format 616 (available on yt-dlp, not 356) of M3U8.
  • At format 214, some rare videos were encoded and it is linked from format 379 (available on yt-dlp, not 214) of M3U8 can be found this video
  • For some marked parenthesis format like (271) means that it may be claimed by someone without video link, was old superseeded format from YouTube or something else. I honestly don't know yet...
  • Please take note that YouTube started to use AI for use super resolution (announced it in late 2025, Q4) from low quality videos (e.g. old nostalgia videos) into high quality videos for some resolutions selected. For example source video resolution is 240p and it has extended resolutions up to 720p and after format adds suffix -sr. Most videos are not super resolution formats available, some videos may have. Example video

Some rarely videos may get AV1 video codec for low views or/and upload date less than 24 hours for average 10 minutes duration video.

It could be luck or/and conveniency for YouTube's quiet decision.

Here is sample videos:

https://www.youtube.com/watch?v=BizgNeskJ6o (20 hours ago and at least 50 views, reported on 26.06.2025, later it was deleted it)

https://www.youtube.com/watch?v=r-X4DJxT6gY (4 years ago and unlisted video, got couple months to get AV1)

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.

Also even special thanks, gamer191 to report linked M3U8 codes to common codes.

Graphic table about linked M3U8 codes to common numbers

Code (M3U8) Linked to common code from HTTPS
229 133
230 134
231 135
232 136
233 139
234 140
269 160
270 137
311 298
312 299
379 214
602 598
603 278
604 242
605 243
606 244
609 247
612 302
614 248
617 303
620 271
625 313
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 72p & 608p

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

But for format 228 is 72p quality and only 6 FPS.

Code Container Video Codec Explanations
228 MP4 AVC Like thumbnail quality with slow FPS
779 WebM VP9 Efficiency possible saving data for mobiles
780 WebM VP9 Best quality possible of VP9 than format 779
787 WebM AV1 Saves more sizes with quality than VP9, some videos only
788 MP4 AV1 Saves sizes and quality little than VP9, but some videos only

Sample video link here.

Second sample video link of format 228 here

Third sample video link of format 787 here

Thanks to @GammaBoost for finding three formats (779,780,788)!

Thanks to @aokin1999 for finding a format 228!

Thanks to @jthievre for finding a format 787!

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) Some, DRC optional
250 WebM Opus (VBR) ~70 Kbps Stereo (2) Some, DRC optional
251 WebM Opus (VBR) ~128 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 (?) Ambisonic (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.
  • Format 599, 600: Since February 2025, YouTube restricted these two formats only limit access to mobile web with POT token, please add this argument from command: --extractor-args "youtube:player_client=mweb;formats=missing_pot" (Thanks, gamer191!)
  • DRC Optional: Only formats of 139, 140, 249, 250, 251, 599 and 600 were using DRC normalization sound for some videos.
  • Format 139, 338: Default yt-dlp without argument when using -F or --list-formats does not show up, so please add this argument to show available formats: --extractor-args "youtube:player_client=all".

Deprecated note (this is old note):

  • Since February 2025, YouTube discontinued (see the current top) formats of 599 and 600 due for every video uploaded.
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 maximum to 30 FPS (frames per second)
  • 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 is removed for every mobile YouTube videos uploaded.
  • Later since 21 June 2024, the Format 22 is also removed for every YouTube HD videos uploaded.
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.
  • Also videos without live broadcasting can play formats for acting user agent Safari Web.

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 --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>"
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

Ensure you have yt-dlp is installed via Python or added to PATH for non-Python installation. Make sure it is up to date:

Update yt-dlp via pip (recommended):

pip install yt-dlp -U

Since late 2025, YouTube has given sleep time delay before downloading videos, this may be delay for pre-download method, even cannot download a video with age-restricted method trying to bypass it...

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.

mscalindt for finding format 379 that was undocumented before I updated it now. It was linked to format 214 of DASH video.

Manwithpants812 for finding missing format 356 due to undocumented which is related to format 616.

Low-power for claiming the experience finding of format 22 removed since 21 June 2024.

Aokin1999 for finding spot fixes & corrections, also pretty cool with fork gist :)

BriellaBugs for screenshot to show Super Resolution by quality selection menu

联系我们 contact @ memedata.com