From 52c2b1edce7b31bfa11038bbefe7672fb9de7ca1 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 20 Apr 2020 21:12:43 -0400 Subject: [PATCH] Added audio only download method --- content/blog/youtubebackup.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/blog/youtubebackup.md b/content/blog/youtubebackup.md index f17d4f3..c1068fe 100644 --- a/content/blog/youtubebackup.md +++ b/content/blog/youtubebackup.md @@ -22,3 +22,19 @@ youtube-dl --ignore-errors \ URL_HERE ``` +## Audio Only + +To extract only audio here's the modified command + +```bash +youtube-dl --ignore-errors \ + --playlist-reverse \ + --output "%(uploader)s/%(uploader)s - %(title)s - %(upload_date)s.%(ext)s" \ + --format "bestvideo[ext=mp4]+bestaudio[ext=m4a]" \ + --merge-output-format mp4 \ + --embed-thumbnail \ + --add-metadata \ + --extract-audio + URL_HERE +``` +