Download/Installation
Download Video
Check video format list:
yt-dlp -F [URL....]
example output:
[info] Available formats for 2lAe1cqCOXo: format code extension resolution note 249 webm audio only tiny 60k , opus @ 50k (48000Hz), 2.02MiB 250 webm audio only tiny 78k , opus @ 70k (48000Hz), 2.66MiB 140 m4a audio only tiny 130k , m4a_dash container, mp4a.40.2@128k (44100Hz), 5.20MiB 251 webm audio only tiny 147k , opus @160k (48000Hz), 5.27MiB 394 mp4 256x144 144p 78k , av01.0.00M.08, 24fps, video only, 2.74MiB 278 webm 256x144 144p 98k , webm container, vp9, 24fps, video only, 3.51MiB 160 mp4 256x144 144p 118k , avc1.4d400c, 24fps, video only, 4.43MiB 395 mp4 426x240 240p 169k , av01.0.00M.08, 24fps, video only, 5.73MiB 242 webm 426x240 240p 237k , vp9, 24fps, video only, 7.66MiB 133 mp4 426x240 240p 253k , avc1.4d4015, 24fps, video only, 9.77MiB 396 mp4 640x360 360p 371k , av01.0.01M.08, 24fps, video only, 11.87MiB 243 webm 640x360 360p 416k , vp9, 24fps, video only, 13.52MiB 134 mp4 640x360 360p 635k , avc1.4d401e, 24fps, video only, 22.12MiB 397 mp4 854x480 480p 663k , av01.0.04M.08, 24fps, video only, 21.10MiB 244 webm 854x480 480p 771k , vp9, 24fps, video only, 22.26MiB 135 mp4 854x480 480p 1164k , avc1.4d401e, 24fps, video only, 40.81MiB 398 mp4 1280x720 720p 1237k , av01.0.05M.08, 24fps, video only, 38.26MiB 247 webm 1280x720 720p 1501k , vp9, 24fps, video only, 39.15MiB 399 mp4 1920x1080 1080p 2287k , av01.0.08M.08, 24fps, video only, 65.88MiB 136 mp4 1280x720 720p 2323k , avc1.4d401f, 24fps, video only, 78.74MiB 248 webm 1920x1080 1080p 2696k , vp9, 24fps, video only, 85.91MiB 137 mp4 1920x1080 1080p 4417k , avc1.640028, 24fps, video only, 145.25MiB 18 mp4 640x360 360p 672k , avc1.42001E, 24fps, mp4a.40.2@ 96k (44100Hz), 26.97MiB 22 mp4 1280x720 720p 2090k , avc1.64001F, 24fps, mp4a.40.2@192k (44100Hz) (best)
Download the video:
yt-dlp -f [FORMAT CODE] [URL....]
Download video with subtitle:
yt-dlp --list-subs [URL....]
Perintah untuk mengunduh:
yt-dlp -f [FORMAT CODE] --write-sub/--write-auto-sub/--all-subs [URL....]
Notes:
--write-sub
: Download default subtitle;--write-auto-sub
: Download auto generated subtitle;--all-subs
: Download all subtitles;
Download all videos in the playlist with index number:
yt-dlp -o "%(playlist_index)s-%(title)s.%(ext)s" [URL Playlist]
Download all videos in the playlist with index number and auto subtitles:
yt-dlp --write-auto-sub -o "%(playlist_index)s-%(title)s.%(ext)s" [URL Playlist]
Bibliography
youtube-dl. Youtube-dl Github (Accessed at August 29, 2022).
Mohamadi, Iman. 2015. How to download a youtube playlist with numbered prefix via youtube-dl? (Accessed at August 29, 2022).
AjayKumarBasuthkar. 2019. Youtube-dl: Python not found (18.04). (Accessed at August 29, 2022).