diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config new file mode 100644 index 0000000..655338d --- /dev/null +++ b/.config/yt-dlp/config @@ -0,0 +1,26 @@ +# Remove problematic characters from file names. +--restrict-filenames +# Have service and author in the file name. +--output '%(title).120s [%(extractor)s %(id)s %(uploader_id)s].%(ext)s' + +# Try to download live streams from the start (use --no-live-from-start to disable). +--live-from-start +# Wait for scheduled streams to become available, retry after 10 seconds. +--wait-for-video 10 + +# Display progress in console title. +--console-title + +# Create SponsorBlock chapters. +--sponsorblock-mark all + +# The following options are basically presets for different use cases. + +# Create a new option `--archive` that will embed all video and audio streams +# and as much information as possible in the video as well as create a sidecar +# file with full metadata. +--alias archive '--embed-subs --embed-thumbnail --embed-metadata --embed-chapters --write-info-json --no-clean-info-json --video-multistreams --audio-multistreams --merge-output-format mkv' + +# Create a `--mp4` option that will optimize for getting an MP4 file, for +# sharing on the Fedi etc. `-S ext` does the heavy lifting here. +--alias mp4 '-S ext --merge-output-format mp4'