From 3b7db4ca3e239843fbbd681bc1a54fbf953cd585 Mon Sep 17 00:00:00 2001 From: James Richardson Date: Sun, 8 Sep 2024 12:12:55 +0100 Subject: [PATCH] fix metadata test --- tests/test_ffmpeg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_ffmpeg.py b/tests/test_ffmpeg.py index c455cd71..4e163e65 100644 --- a/tests/test_ffmpeg.py +++ b/tests/test_ffmpeg.py @@ -14,6 +14,7 @@ from gopro_overlay.ffmpeg_gopro import FFMPEGGoPro from gopro_overlay.ffmpeg_overlay import FFMPEGOverlay, FFMPEGOptions, FFMPEGOverlayVideo from gopro_overlay.timeunits import timeunits +from tests.test_timeseries import datetime_of ffprobe_output = (Path(__file__).parent / "test_ffmpeg_ffprobe_output.json").read_text() @@ -169,7 +170,8 @@ def test_ffmpeg_generate_execute(): ffmpeg=FFMPEG(), output=Path("output"), overlay_size=Dimension(100, 200), - execution=fake + execution=fake, + creation_time=datetime_of(1231233223.12344) ) with ffmpeg.generate(): @@ -189,6 +191,7 @@ def test_ffmpeg_generate_execute(): "-r", "30", # output framerate "-vcodec", "libx264", # output format "-preset", "veryfast", # output quality/encoding preset + '-metadata','creation_time=2009-01-06T09:13:43.123440+00:00', "output" # output file ]