global: otio duration is one frame longer

This commit is contained in:
Jakub Jezek 2022-05-20 17:00:48 +02:00
parent f35079aaed
commit 87182f5a3e
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -80,7 +80,7 @@ class ExtractOTIOTrimmingVideo(openpype.api.Extractor):
video_path = input_file_path
frame_start = otio_range.start_time.value
input_fps = otio_range.start_time.rate
frame_duration = (otio_range.duration.value + 1)
frame_duration = otio_range.duration.value - 1
sec_start = openpype.lib.frames_to_secons(frame_start, input_fps)
sec_duration = openpype.lib.frames_to_secons(frame_duration, input_fps)