From ac627da6685a5aed1c78ab119fac178a35d9a236 Mon Sep 17 00:00:00 2001 From: nik Date: Mon, 21 Feb 2022 01:33:08 +0100 Subject: [PATCH] yt-dlp: add page (#7628) * add yt-dlp page * fix format * remove file * fix unprecise explanation * Delete .gitpod.yml --- pages/common/yt-dlp.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/yt-dlp.md diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md new file mode 100644 index 000000000..1974913e6 --- /dev/null +++ b/pages/common/yt-dlp.md @@ -0,0 +1,37 @@ +# yt-dlp + +> A youtube-dl fork with additional features and fixes. +> Download videos from YouTube and other websites. +> More information: . + +- Download a video or playlist (with the default options from command below): + +`yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- Download a video with a defined format. In this case merging the best video format with the best audio format (Default): + +`yt-dlp --format "{{bv*+ba/b}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- Extract audio from videos (required ffmpeg or ffprobe): + +`yt-dlp --extract-audio "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- Specify audio format of extracted audio (best(default), aac, flac, mp3, m4a, opus, vorbis, wav, alac): + +`yt-dlp --extract-audio --audio-format {{mp3}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- Specify audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5): + +`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- Download all playlists of YouTube channel/user keeping each playlist in separate directory: + +`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"` + +- Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home: + +`yt-dlp -u {{user}} -p {{password}} -P "{{~/MyVideos}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"` + +- Download entire series season keeping each series and each season in separate directory under C:/MyVideos: + +`yt-dlp -P "{{C:/MyVideos}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://videomore.ru/kino_v_detalayah/5_sezon/367617}}"`