From f8acef2da446ffc331c491803564f9248b446881 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 26 Sep 2025 14:37:23 +0200 Subject: [PATCH] Update VideoEditor to set current display frame during rendering for improved motion tracking This commit adds functionality to store the current display frame and update the current frame index during the rendering process. This enhancement supports better motion tracking by ensuring the correct frame is referenced, contributing to more accurate processing of video frames. --- croppa/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/croppa/main.py b/croppa/main.py index 2c73c25..b212098 100644 --- a/croppa/main.py +++ b/croppa/main.py @@ -3836,6 +3836,10 @@ class VideoEditor: if not ret: break + # Set current display frame for motion tracking during rendering + self.current_display_frame = frame.copy() + self.current_frame = start_frame + i + processed_frame = self._process_frame_for_render(frame, output_width, output_height, start_frame + i) if processed_frame is not None: if i == 0: