Skip to content

Commit 8a6883f

Browse files
committed
[save-edl] Remove PTS correction in end timestamp calculation #516
1 parent 7dee4b9 commit 8a6883f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scenedetect/_cli/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def get_edl_timecode(timecode: FrameTimecode):
292292
# Add each shot as an edit entry
293293
for i, (start, end) in enumerate(scenes):
294294
in_tc = get_edl_timecode(start)
295-
out_tc = get_edl_timecode(end - 1) # Correct for presentation time
295+
out_tc = get_edl_timecode(end) # Correct for presentation time
296296
# Format the edit entry according to CMX 3600 format
297297
event_line = f"{(i + 1):03d} {reel} V C {in_tc} {out_tc} {in_tc} {out_tc}"
298298
edl_content.append(event_line)

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def test_cli_save_edl_with_params(tmp_path: Path):
778778
TITLE: title
779779
FCM: NON-DROP FRAME
780780
781-
001 BX V C 00:00:02:00 00:00:03:17 00:00:02:00 00:00:03:17
781+
001 BX V C 00:00:02:00 00:00:03:18 00:00:02:00 00:00:03:18
782782
002 BX V C 00:00:03:18 00:00:05:23 00:00:03:18 00:00:05:23
783783
"""
784784
assert output_path.read_text() == EXPECTED_EDL_OUTPUT

0 commit comments

Comments
 (0)