From a6ccbec33d6688ae093bf07e6d5b1baff5223d01 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 17 Feb 2020 23:21:48 -0500 Subject: [PATCH] New post --- content/blog/youtubebackup.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 content/blog/youtubebackup.md diff --git a/content/blog/youtubebackup.md b/content/blog/youtubebackup.md new file mode 100644 index 0000000..439d4fd --- /dev/null +++ b/content/blog/youtubebackup.md @@ -0,0 +1,23 @@ +--- +title: "Backing Up YouTube Channels" +date: 2020-02-17T23:17:47-05:00 +draft: false +--- + +There are great content on YouTube that I would be sad if it went away. Therefore, I did some digging around and found a [great discussion](https://www.reddit.com/r/DataHoarder/comments/863aid/what_is_your_method_of_viewing_youtubedl_backed/dw25vnm/) on Reddit on backing up YouTube videos. The solution is based on `youtube-dl` and I modified the script a little to fit my needs. + +The options added to `youtube-dl` makes it so that meta information such as subtitles, thumbnails, etc get added to the video. + +```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 \ + --all-subs \ + --embed-subs \ + --embed-thumbnail \ + --add-metadata \ + URL_HERE +``` +