r/youtubedl • u/fox-me • 12m ago
Feedback wanted: My Windows yt-dlp configuration for archiving YouTube videos
I've put together a portable yt-dlp.conf for Windows to make my YouTube archiving workflow easier to maintain
I keep the configuration file in the same directory as yt-dlp.exe, so I don't have to type all these options every time
My main goals are:
- Organize videos by uploader and upload year
- Avoid downloading the same video twice
- Preserve data like metadata, descriptions, thumbnails, and subtitles as many as I can, so MKV I choose
- Embed available metadata and subtitles into MKV files
- Keep a local download archive
- Use conservative request intervals considering cookies life
Here's the configuration I'm currently using:
# ==========================================
# yt-dlp configuration for Windows
# ==========================================
# ---------- Output and file organization ----------
# Organize videos by uploader, year, and video title
-o "D:\Media\YouTube\%(uploader)s\%(upload_date>%Y)s\%(title)s [%(id)s]\%(title)s [%(id)s] %(upload_date>%Y-%m-%d)s.%(ext)s"
# Keep track of previously downloaded videos
--download-archive "D:\Media\YouTube\archive.txt"
# ---------- Video format ----------
# Merge video and audio into MKV
--merge-output-format mkv
# ---------- Embedded metadata ----------
# Embed video information as JSON
--embed-info-json
# Embed metadata into the video
--embed-metadata
# Embed chapter information
--embed-chapters
# Embed thumbnail
--embed-thumbnail
# ---------- Additional metadata files ----------
# Save video information as a separate JSON file
--write-info-json
# Save video descriptions
--write-description
# Save thumbnails as separate files
--write-thumbnail
# ---------- Subtitles ----------
# Download manually created subtitles
--write-subs
# Download automatically generated subtitles
--write-auto-subs
# Embed subtitles into the video
--embed-subs
# Optional: add your preferred subtitle language codes here
# --sub-langs "..."
# Prefer the best available subtitle format
--sub-format "best"
# Wait before downloading subtitles
--sleep-subtitles 30
# ---------- Request intervals and concurrency ----------
# Wait between HTTP requests
--sleep-requests 5
# Download 4 fragments concurrently
-N 4
# ---------- Authentication ----------
# Use a local cookies file
--cookies "cookies.txt"
# ---------- Error handling ----------
# Continue processing despite individual download errors
--ignore-errors
Could you please tell me: Is there anything important missing for long-term and full video archiving? I do not care storage
I'm particularly interested in reliability and data preservation rather than maximizing download speed because YouTube can let cookies expire anytime, especially when you download too many and too fast
Thanks!