From 142b85dff840bae696e1c2630f9616505a783a70 Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Wed, 24 Sep 2025 14:02:05 +0200 Subject: [PATCH] Skip AV1 videos --- app/worker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/worker.py b/app/worker.py index cc8181f..733f761 100644 --- a/app/worker.py +++ b/app/worker.py @@ -1686,6 +1686,10 @@ def _normalize_video_file(path: Path, info: dict[str, str]) -> Path: if current_codec == VIDEO_NORMALIZE_CODEC and ext_match: return path + if current_codec.startswith("av1") or current_codec in {"libaom-av1", "av01"}: + print(f"[normalize] skip: {path.name} already AV1; leaving as-is", flush=True) + return path + encoder = _resolve_video_encoder(VIDEO_NORMALIZE_CODEC) final_path = path if ext_match else path.with_suffix(VIDEO_NORMALIZE_EXTENSION) tmp_path = final_path.parent / f"{final_path.stem}.tmp{VIDEO_NORMALIZE_EXTENSION}"