perf: limit YouTube downloads to 720p max

4K downloads are 229MB+ and too slow through the WG tunnel.
720p is sufficient quality for clip analysis and extraction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-10 01:08:52 +00:00
parent 6c40f713a4
commit 72efed481f
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ async def download_video(url: str, output_dir: str) -> VideoInfo:
opts = _base_opts()
opts.update({
# Download best video+audio merged to mp4
"format": "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best",
"format": "bestvideo[height<=720][ext=mp4]+bestaudio[ext=m4a]/best[height<=720][ext=mp4]/best",
"merge_output_format": "mp4",
"outtmpl": output_template,
})