Skill Share - YouTube Video Downloading / Chopping...
I made this guide the other week. Sometimes I need to download a small clip of a long video, so instead of downloading the full video you can give a timestamp to download whatever part you like.
-------------------------------------------------
- Requires a PC (Win, Linux, Mac)
- Download a YT-DLP release for your Operating System (Releases (
https://github.com/yt-dlp/yt-dlp/releases))
- Download FFMPEG (Required to crop without downloading a whole video and for conversions) (Releases (
https://github.com/BtbN/FFmpeg-Builds/releases))
-------------------------------------------------
This guide will be for Windows.
————————————————-
SETUP - NO INSTALL
————————————————-
- Put the FFMPEG and YT-DLP files somewhere. "C:\Temp" is good.
- Add this path to your environment to access from command line
- See image how to add to paths. This will allow you to run the files from cmd window.
- You can test this in a cmd window by running "ffmpeg" or "yt-dlp" from cmd line.
————————————————-
BASIC EXAMPLE - DOWNLOAD VIDEO
————————————————
- Go to your Videos folder and do "ALT+D" then type "cmd" and enter
- This will open a cmd prompt for this video directory
This will download the video, a 10 second clip and convert to MP4
Code:
yt-dlp --recode mp4 https://www.youtube.com/watch?v=4vQ8If7f374
————————————————-
MORE EXAMPLES
————————————————
Download but also resize to lowest quality. 144p (Height)
Code:
yt-dlp -S "res:144" --recode mp4 https://www.youtube.com/watch?v=4vQ8If7f374
Download 25 seconds starting from 25 seconds, resize to 360p
Code:
yt-dlp -S "res:360" --recode mp4 --external-downloader ffmpeg --external-downloader-args "ffmpeg_i:-ss 00:00:25.00 -to 00:00:50.00" https://www.youtube.com/watch?v=NVTVheyDY4s
Download as MP3
Code:
yt-dlp -x --add-metadata --embed-thumbnail --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=NVTVheyDY4s
Download playlist as MP3
Code:
yt-dlp -x --add-metadata --embed-thumbnail --audio-format mp3 --audio-quality 0 https://www.youtube.com/playlist?list=PL9OtwvCRJUxoGFbzyO7caGKLPBNkfabA2
This also applies to Rumble, Vimeo and any other online video, streams.