Skip to content

Commit

Permalink
Removed 23.97 approximation from mots_resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
octimot committed Feb 22, 2024
1 parent 57df89d commit ab8beb2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions storytoolkitai/integrations/mots_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,10 +890,6 @@ def render_markers(self, marker_color, target_dir, add_timestamp=False, stills=F
# get the timeline FPS
current_fps = currentTimeline.GetSetting('timelineFrameRate')

# round up for the non-dropframe 23.976fps - this is a hack, since resolve rounds up due to bug
if int(current_fps) >= 23.97 and int(current_fps) <= 24:
current_fps = "24"

render_jobs_markers[render_job_id] = {'project_name': project.GetName(),
'timeline_name': currentTimeline.GetName(),
'timeline_start_tc': currentTimeline.GetStartTimecode(),
Expand Down Expand Up @@ -1124,7 +1120,7 @@ def render_timeline(self, target_dir, render_preset='H.264 Master', start_render
'render_name': renderSettings["CustomName"],
'in_offset': 0,
'duration': int(renderSettings["MarkOut"]) - int(renderSettings["MarkIn"]),
'fps': 24 if 23.97 <= int(current_fps) <= 24 else current_fps,
'fps': current_fps,
'render_timestamp': render_timestamp
}

Expand Down

0 comments on commit ab8beb2

Please sign in to comment.