Skip AV1 videos

This commit is contained in:
2025-09-24 14:02:05 +02:00
parent d5305b7771
commit 142b85dff8

View File

@@ -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}"