Skip to content

Commit

Permalink
fix metadata test
Browse files Browse the repository at this point in the history
  • Loading branch information
time4tea committed Sep 8, 2024
1 parent 0c11db4 commit 3b7db4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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():
Expand All @@ -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
]

Expand Down

0 comments on commit 3b7db4c

Please sign in to comment.