フォーマットの一覧を取得
youtube-dl --list-format URL
出力例:
251 webm audio only audio_quality_medium 118k , webm_dash container, opus (48000Hz), 23.18MiB
140 m4a audio only audio_quality_medium 129k , m4a_dash container, mp4a.40.2 (44100Hz), 25.25MiB
160 mp4 256x144 144p 53k , mp4_dash container, avc1.4d400c, 30fps, video only, 10.35MiB
134 mp4 640x360 360p 219k , mp4_dash container, avc1.4d401e, 30fps, video only, 42.87MiB
136 mp4 1280x720 720p 900k , mp4_dash container, avc1.64001f, 30fps, video only, 175.69MiB
137 mp4 1920x1080 1080p 1957k , mp4_dash container, avc1.640028, 30fps, video only, 381.82MiB
18 mp4 640x360 360p 316k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz), 61.65MiB (best)
特定のフォーマットだけを選択してダウンロード (この例では
251
)
youtube-dl -k -f 251 URL