Add youtube_formats.py full of constants.
This commit is contained in:
parent
4c2e8f8e70
commit
f6e14111ea
1 changed files with 52 additions and 0 deletions
52
youtube_formats.py
Normal file
52
youtube_formats.py
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
# These constants can be used to construct youtube-dl commands while keeping
|
||||||
|
# your source code legible.
|
||||||
|
AUDIO_M4A_128k = '140'
|
||||||
|
AUDIO_M4A_195k = '256'
|
||||||
|
AUDIO_M4A_386k = '258'
|
||||||
|
AUDIO_OPUS_160k = '251'
|
||||||
|
AUDIO_OPUS_50k = '249'
|
||||||
|
AUDIO_OPUS_70k = '250'
|
||||||
|
COMBINED_AVC_M4A_360p30_96k = '18'
|
||||||
|
COMBINED_AVC_M4A_720p30_128k = '22'
|
||||||
|
VIDEO_AV1_1080p60 = '399'
|
||||||
|
VIDEO_AV1_1440p60 = '400'
|
||||||
|
VIDEO_AV1_144p30 = '394'
|
||||||
|
VIDEO_AV1_2160p60 = '401'
|
||||||
|
VIDEO_AV1_240p30 = '395'
|
||||||
|
VIDEO_AV1_360p30 = '396'
|
||||||
|
VIDEO_AV1_4320p60 = '571'
|
||||||
|
VIDEO_AV1_480p30 = '397'
|
||||||
|
VIDEO_AV1_720p60 = '398'
|
||||||
|
VIDEO_AVC_1080p30 = '137'
|
||||||
|
VIDEO_AVC_1080p60 = '299'
|
||||||
|
VIDEO_AVC_1440p30 = '264'
|
||||||
|
VIDEO_AVC_1440p60 = '304'
|
||||||
|
VIDEO_AVC_144p30 = '160'
|
||||||
|
VIDEO_AVC_2160p30 = '266'
|
||||||
|
VIDEO_AVC_2160p60 = '305'
|
||||||
|
VIDEO_AVC_240p30 = '133'
|
||||||
|
VIDEO_AVC_360p30 = '134'
|
||||||
|
VIDEO_AVC_480p30 = '135'
|
||||||
|
VIDEO_AVC_720p30 = '136'
|
||||||
|
VIDEO_AVC_720p60 = '298'
|
||||||
|
VIDEO_VP9_1080p30 = '248'
|
||||||
|
VIDEO_VP9_1080p60 = '303'
|
||||||
|
VIDEO_VP9_1080p60_HDR = '335'
|
||||||
|
VIDEO_VP9_1440p30 = '271'
|
||||||
|
VIDEO_VP9_1440p60 = '308'
|
||||||
|
VIDEO_VP9_1440p60_HDR = '336'
|
||||||
|
VIDEO_VP9_144p30 = '278'
|
||||||
|
VIDEO_VP9_144p60_HDR = '330'
|
||||||
|
VIDEO_VP9_2160p30 = '313'
|
||||||
|
VIDEO_VP9_2160p60 = '315'
|
||||||
|
VIDEO_VP9_2160p60_HDR = '337'
|
||||||
|
VIDEO_VP9_240p30 = '242'
|
||||||
|
VIDEO_VP9_240p60_HDR = '331'
|
||||||
|
VIDEO_VP9_360p30 = '243'
|
||||||
|
VIDEO_VP9_360p60_HDR = '332'
|
||||||
|
VIDEO_VP9_4320p30 = '272'
|
||||||
|
VIDEO_VP9_480p30 = '244'
|
||||||
|
VIDEO_VP9_480p60_HDR = '333'
|
||||||
|
VIDEO_VP9_720p30 = '247'
|
||||||
|
VIDEO_VP9_720p60 = '302'
|
||||||
|
VIDEO_VP9_720p60_HDR = '334'
|
Loading…
Reference in a new issue