Skip to main content

Remember to actually exclude AI-upscaled videos

ID
334c370
date
2026-01-08 20:33:41+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
a2405be
message
Remember to actually exclude AI-upscaled videos
changed files
1 file, 4 additions

Changed files

yt-dlp_alexwlchan.py (7828) → yt-dlp_alexwlchan.py (8024)

diff --git a/yt-dlp_alexwlchan.py b/yt-dlp_alexwlchan.py
index b681950..34694e2 100755
--- a/yt-dlp_alexwlchan.py
+++ b/yt-dlp_alexwlchan.py
@@ -27,6 +27,10 @@ ydl_opts: Any = {
     # aren't any.
     "writesubtitles": True,
     #
+    # Ignore AI-upscaled videos from YouTube.
+    # See https://alexwlchan.net/til/2025/ignore-ai-scaled-videos/
+    "format": "bestvideo*[format_id!*=-sr]+bestaudio/best[format_id!*=-sr]",
+    #
     # Download video files as MP4 and thumbnails as JPEG, or convert
     # to those formats if they aren't the best available.
     "format_sort": ["res", "ext:mp4:m4a"],