feat: ExportWorker with ffmpeg command builder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 12:06:32 +02:00
parent 68f9a01d2b
commit f6832f58a6
2 changed files with 47 additions and 1 deletions
+11 -1
View File
@@ -1,4 +1,4 @@
from main import build_export_path, format_time
from main import build_export_path, format_time, build_ffmpeg_command
def test_build_export_path_first():
@@ -21,3 +21,13 @@ def test_format_time_rounding():
def test_format_time_no_sixty_rollover():
assert format_time(59.95) == "0:59.9"
def test_ffmpeg_command():
cmd = build_ffmpeg_command("/in/video.mp4", 12.5, "/out/clip_001.mp4")
assert cmd[0] == "ffmpeg"
assert "-ss" in cmd
assert str(12.5) in cmd
assert "-t" in cmd
assert "8" in cmd
assert cmd[-1] == "/out/clip_001.mp4"