Consolidate pipeline.editorial.get_media_range_with_retimes

This commit is contained in:
robin@ynput.io 2024-09-18 15:45:45 -04:00
parent 318ce6b321
commit efc31f0144
2 changed files with 74 additions and 39 deletions

View file

@ -84,11 +84,8 @@ class ExtractOTIOTrimmingVideo(publish.Extractor):
command = get_ffmpeg_tool_args("ffmpeg")
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
sec_start = frames_to_seconds(frame_start, input_fps)
sec_duration = frames_to_seconds(frame_duration, input_fps)
sec_start = otio_range.start_time.to_seconds()
sec_duration = otio_range.duration.to_seconds()
# form command for rendering gap files
command.extend([