# # # # Prioritize 60fps at 1080p. # -f "bestvideo[height=1080][fps>30]+bestaudio/bestvideo[height<=1080]+bestaudio/best" # # # # Prefer AV1 codec, best video, best audio. Fallback to best overall. # -f "bestvideo[vcodec^=av01]+bestaudio/bestvideo+bestaudio/best" # This is a comment. Lines starting with # are ignored. # ----------------- # QUALITY SELECTION # ----------------- # Use the -f or --format option to select quality. # The format is: +/ # This example tries to get the best video up to 1080p with the best audio. # If a combined stream is not available, it merges the best separate streams. # 'best' is a fallback if nothing else matches. -f "bestvideo[height<=1080]+bestaudio/best" # ----------------- # OTHER USEFUL OPTIONS # ----------------- # Download subtitles if available (e.g., for saving files) # --write-subs # --sub-lang "en.*,en" # Prefer free formats when available # --prefer-free-formats # Use a sponsorblock remover to skip ad segments in the video data # This is useful for both streaming and downloading. --sponsorblock-mark all --sponsorblock-remove sponsor,selfpromo