From 20f8e5665bbaa12be5d6be323183a924bdd39386 Mon Sep 17 00:00:00 2001 From: Nick Hepler Date: Mon, 11 Nov 2024 18:05:15 -0500 Subject: [PATCH] Initial commit of yt-dlp snippets. --- yt-dlp.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 yt-dlp.md diff --git a/yt-dlp.md b/yt-dlp.md new file mode 100644 index 0000000..a25137b --- /dev/null +++ b/yt-dlp.md @@ -0,0 +1,27 @@ +# yt-dlp Snippets + +## Best Video in MP4 +Download the best quality video in .mp4 format. + +```shell +yt-dlp -f "best[ext=mp4]" +``` + +## Best Video in MP4 w/ English Subtitles +Download the best quality video in .mp4 format, along with English subtitles (if available), from the given URL. + +```shell +yt-dlp -f "best[ext=mp4]" --write-sub --sub-lang en +``` + +## Extract Audio in MP3 +The command will extract the audio from the video at the given URL and save it in the MP3 format. +```shell +yt-dlp -x --audio-format mp3 +``` + +## Extract Audio in MP3, Block Ads +The command will extract the audio from the video at the given URL, remove all sponsor segments using SponsorBlock, and save the audio in MP3 format. +```shell +yt-dlp --sponsorblock-remove all -x --audio-format mp3 +``` \ No newline at end of file