feat: add build_mask_output_dir utility

This commit is contained in:
2026-04-06 15:34:08 +02:00
parent 8fe3dc1c1b
commit 9bc65a2b25
2 changed files with 16 additions and 1 deletions
+6
View File
@@ -63,6 +63,12 @@ def build_ffmpeg_command(
return cmd
def build_mask_output_dir(video_path: str) -> str:
"""Return path of mask output directory: <stem>_masks/ next to the video."""
p = Path(video_path)
return str(p.parent / f"{p.stem}_masks")
_RATIOS: dict[str, tuple[int, int]] = {
"9:16": (9, 16),
"4:5": (4, 5),