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:
parent
6c40f713a4
commit
72efed481f
|
|
@ -74,7 +74,7 @@ async def download_video(url: str, output_dir: str) -> VideoInfo:
|
||||||
opts = _base_opts()
|
opts = _base_opts()
|
||||||
opts.update({
|
opts.update({
|
||||||
# Download best video+audio merged to mp4
|
# 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",
|
"merge_output_format": "mp4",
|
||||||
"outtmpl": output_template,
|
"outtmpl": output_template,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue