radio: files: yt-dlp: Update default options

impermanence
Luis Guilherme Coelho 2024-08-24 18:44:04 -03:00
parent bafb5bdf94
commit 297ce6f629
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 30 additions and 1 deletions

View File

@ -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"