From 297ce6f629c04a1e8e9903d4428f76bd9bfff472 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sat, 24 Aug 2024 18:44:04 -0300 Subject: [PATCH] radio: files: yt-dlp: Update default options --- .../radio/files/.config/yt-dlp/config | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/home-environments/radio/files/.config/yt-dlp/config b/home-environments/radio/files/.config/yt-dlp/config index ccc2b74..2954a81 100644 --- a/home-environments/radio/files/.config/yt-dlp/config +++ b/home-environments/radio/files/.config/yt-dlp/config @@ -1 +1,30 @@ --f bestvideo[ext=vp9][height<=720]+bestaudio/best[height<=720] --prefer-free-formats +# When the link refers to a video on a playlist, download only the video by default +--no-playlist + +# Limit the number of simultaneous downloads +--concurrent-fragments 10 + +# Select best video up to 720p and best available audio +--format "bestvideo[height<=?720][fps<=?45][vbr<=?3000]+bestaudio[acodec=opus]/bestvideo[height<=?720]+bestaudio/bestvideo+bestaudio" + +# Prefer formats that use free and open-source codecs +--prefer-free-formats + +# Disable post-processing to save CPU resources +--no-post-overwrites +--no-mtime + +# Set a download speed limit to reduce CPU load +--limit-rate 500K + +# Disable embed thumbnails to save CPU +--no-embed-thumbnail + +# Adjust logging verbosity to minimal to save CPU +--quiet + +# Set user-agent if required (sometimes helps with certain sites) +--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" + +# Set the output file template (adjust the path as needed) +--output "%(title)s.%(ext)s"