Learn How to effortlessly download, convert and split youtube videos using yt-dlp and ffmpeg software
watch video: https://www.youtube.com/watch?v=Ynyn0HxCEww
- Extract the Folder
- open command prompt by typing CMD
- run yt-dlp -U to update yt-dlb to the latest version (make sure it's a capital U and not lowercase u)
- use one of the commands below
-
Downloads video file
yt-dlp -S "res:720" -o "%(title)s.%(ext)s" "YOUTUBE_VIDEO_URL"
-
Converts a single video to Mp3 format by extracting Audio from a video
yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s" "YOUTUBE_VIDEO_URL" --ffmpeg-location "ffmpeg\bin"
For downloading Multiple videos at once you can save them into a playlist and use the playlist commands
-
Download All playlist videos and save them into a folder named with the playlist's title
yt-dlp -S "res:720" -o "%(playlist_title)s\%(title)s.%(ext)s" "YOUTUBE_PLAYLIST_URL"
-
Download All playlist videos, converts them to Mp3 and save them into a folder with the playlist's title
yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -o "%(playlist_title)s\%(title)s.%(ext)s" "YOUTUBE_PLAYLIST_URL" --ffmpeg-location "ffmpeg\bin"
-
Download playlist videos starting from START to END and save them into a folder with the playlist's title
yt-dlp -S "res:720" -I "START:END" -o "%(playlist_title)s\%(title)s.%(ext)s" "YOUTUBE_PLAYLIST_URL"
-
Download certain videos from a playlist and save them into a folder with the playlist's title
yt-dlp -S "res:720" -I "2,5" -o "%(playlist_title)s\%(title)s.%(ext)s" "YOUTUBE_PLAYLIST_URL"
-
Download playlist videos from START:END, converts them to Mp3 and save them into a folder with the playlist's title
yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -I "START:END" -o "%(playlist_title)s\%(title)s.%(ext)s" "YOUTUBE_PLAYLIST_URL" --ffmpeg-location "ffmpeg\bin"
-
Download certain videos from a playlist, them to Mp3 and save them into a folder with the playlist's title
yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 "res:144" -I "2,5" -o "%(playlist_title)s\%(title)s.%(ext)s" "YOUTUBE_PLAYLIST_URL" --ffmpeg-location "ffmpeg\bin"
- FYI: you can replace
%(playlist_title)s\%(title)s.%(ext)s
with%(playlist_title)s\%(playlist_index)%s- (title)s.%(ext)s
to save the video with it's index followed by it's name
-
Downloads video file, split it by chapters and saves them to a folder with the video's title
yt-dlp -S "res:720" -o "chapter:%(title)s\%(section_number)s - %(section_title)s.%(ext)s" --split-chapters "YOUTUBE_VIDEO_URL" --ffmpeg-location "ffmpeg\bin"
-
Downloads video file, convert them to Mp3 and split it by chapters and save them to a folder with the video's title
yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -o "chapter:%(title)s\%(section_number)s - %(section_title)s.%(ext)s" --split-chapters "YOUTUBE_VIDEO_URL" --ffmpeg-location "ffmpeg\bin"
-
FYI: you can replace
"chapter:%(title)s\%(section_number)s - %(section_title)s.%(ext)s"
with"chapter:%(title)s\%(section_title)s.%(ext)s"
to save the video with the chapter name only without the index
https://mega.nz/file/0GMA0BYK#97knvxwbYYFz8IrFN60qyKObHfCp5RnLr-DbsPYcjf4
https://github.com/yt-dlp/yt-dlp#installation
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe