Last active
April 30, 2025 18:07
-
-
Save smartwatermelon/f9926af0edf86a5715cba681bb82cc0c to your computer and use it in GitHub Desktop.
my yt-dlp config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this file is $HOME/.config/yt-dlp/config | |
| # https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#readme | |
| # Output location | |
| --paths "temp:/tmp" | |
| --paths "home:/Volumes/DSMedia/Media/Download" | |
| # Process metadata first | |
| --parse-metadata "title:%(title)s" | |
| # Apply replacements to generate clean title | |
| --replace-in-metadata "title" "_" " " | |
| --replace-in-metadata "title" "\\s{2,}" " " | |
| --replace-in-metadata "title" "\\s*[-–|:]+\\s*" " - " | |
| # Now use the processed title in the output template | |
| --output "%(title)s (%(upload_date>%Y)s).%(ext)s" | |
| # Download management | |
| --continue | |
| --no-overwrites | |
| # Process control and display | |
| --quiet | |
| --verbose | |
| --progress | |
| --console-title | |
| # Format selection and post-processing | |
| --format "bv*+ba/b" | |
| --merge-output-format mkv | |
| # Metadata handling | |
| --embed-thumbnail | |
| --embed-metadata | |
| --embed-chapters | |
| --embed-info-json | |
| --xattrs | |
| --convert-thumbnails jpg | |
| # Network and retry options | |
| --socket-timeout 15 | |
| --retries 10 | |
| --fragment-retries 10 | |
| --concurrent-fragments 3 | |
| --retry-sleep fragment:exp=1:20 | |
| --file-access-retries 5 | |
| --throttled-rate 100K | |
| # System integration | |
| --ffmpeg-location "/usr/local/bin/ffmpeg" | |
| --cookies-from-browser chrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment