yt-dlp
Updated in
.
Categories:
Software.
Tags:
Open source, Video.
Site: github.com/yt-dlp/yt-dlp.
Table of Contents
Options
The yt-dlp configuration file path is %appdata%\youtube-dl\config.txt
.
--console-title # Shows progress in console title (where possible)
--geo-bypass #geo-restrictions
--ignore-errors # Skips errors
--prefer-ffmpeg # Prefer ffmpeg over avconv for running the postprocessors
--ffmpeg-location "C:/Users/lucas/scoop/apps/ffmpeg/current/bin/ffmpeg.exe" # Location of the ffmpeg/avconv binary
# Save all files in a _YOUTUBE folder in the user downloads folder.
# It saves the video with the follow name convention:
# upload date - channel name - video title - video id . extension
-o ~/Downloads/_YOUTUBE/"%(channel)s"/"%(upload_date)s - %(id)s - %(channel)s - %(playlist_index)s - %(title)s.%(ext)s"
# alias for diferent downloads
--alias get-video "-S res,ext:mp4:m4a --recode mp4"
--alias get-audio "-f bestaudio --extract-audio --audio-format mp3 --audio-quality 0"
--alias get-extras "--skip-download --write-subs --write-auto-subs --sub-langs pt,en.* --sub-format srt --write-thumbnail --convert-thumbnails png"
Commands
Youtube
Download mp3 audio
yt-dlp URL --extract-audio --audio-format mp3
yt-dlp -x --audio-format mp3 --prefer-ffmpeg URL
How to list all videos on channel?
yt-dlp --get-filename -o "%(upload_date)s, %(title)s, https://www.youtube.com/watch?v=%(id)s" "URL"
VIMEO
Download VIMEO videos
- open the browser DevTools and in the
network
section search for amaster.json?base64_init-1
file. - Right click on the file and copy the URL.
- Replaced
master.json?base64_init-1
withmaster.mpd
. - Use the link on yt-dlp.