230 Commits

Author SHA1 Message Date
00a17c9102 Fix "c" clearing all keyframes 2025-12-23 14:45:09 +01:00
c7c9012ef1 Fix realtime resizing 2025-12-23 14:07:53 +01:00
a965987ab9 Deretard the help OSD 2025-12-23 14:07:53 +01:00
bd8066c471 Hallucinate up zoom and crop keyframes 2025-12-23 13:02:26 +01:00
43feae622e Enhance crop border dragging functionality in VideoEditor class
Refine the crop border dragging logic by introducing mouse button state tracking and adjusting the crop dimensions based on drag direction. The minimum drag distance for crop adjustments has been reduced to improve responsiveness, allowing for more intuitive user interactions when resizing the crop area. This update also clarifies the drag mode for expanding or contracting the crop edges.
2025-12-23 11:13:53 +01:00
88630bbcbc Have zoom be on plain scroll 2025-12-23 10:35:14 +01:00
a77edb5fa0 More zoom 2025-12-23 10:32:13 +01:00
9647ae6345 Remove unused garbage 2025-12-23 09:43:09 +01:00
53549ebee9 Add minimum drag distance for crop adjustments in VideoEditor class
Introduce a new constant, CROP_DRAG_MIN_DISTANCE, to define the minimum drag distance required before applying crop adjustments. This enhancement improves the responsiveness of the crop border dragging functionality, ensuring that minor movements do not trigger unintended adjustments.
2025-12-23 09:40:55 +01:00
238b139b10 Refine crop border dragging logic to improve responsiveness and accuracy
Enhance the crop border dragging functionality in the VideoEditor class by implementing more precise logic for determining the side of the crop area when dragging outside its bounds. Adjustments to crop dimensions are now consistently based on the drag direction, ensuring a more intuitive user experience. This update also resets the drag state appropriately after the drag operation.
2025-12-23 09:39:28 +01:00
bf32bb98ae Refactor crop border dragging logic to improve user interaction
Enhance the crop border dragging functionality in the VideoEditor class by introducing logic to determine whether the drag starts inside or outside the crop area. Adjustments to crop dimensions are now based on the direction of movement and the position relative to the crop area, ensuring a more intuitive user experience. This update also includes the removal of the previous edge detection mechanism, streamlining the dragging process.
2025-12-23 09:34:39 +01:00
73e72bcb3b Fix up build or some shit 2025-12-23 09:26:12 +01:00
4db35616af Try refactor everything into separate files 2025-12-23 09:23:27 +01:00
914ae29073 Refactor all magic numbers to constants
Introduce constants for brightness and contrast limits, JPEG quality, and frame difference detection thresholds. Refactor related logic to utilize these constants, improving maintainability and consistency across video editing functionalities. Update UI display settings for better text scaling and overlay transparency.
2025-12-23 09:10:42 +01:00
0dc724405b Add minimum crop size and border detection constants to VideoEditor class
Introduce CROP_MIN_SIZE and CROP_BORDER_DETECTION_MAX_DISTANCE constants for better maintainability and clarity in crop adjustment logic. Update crop resizing logic to utilize these constants, ensuring consistent minimum dimensions and border detection thresholds across the VideoEditor functionality.
2025-12-23 09:05:36 +01:00
25112d496b Refactor border detection logic in crop functionality to target nearest edge instead of whatever the fuck random one
Enhance the border detection mechanism in the VideoEditor class by calculating distances to each border and identifying the closest one. This change ensures that the closest border is returned only if within the specified threshold, improving user interaction during crop adjustments.
2025-12-23 09:04:39 +01:00
958e066042 Update crop border dragging logic to not trigger with either Shift or Ctrl keys
Modify the crop border dragging functionality in the VideoEditor class to only allow adjustments when neither the Shift nor Ctrl keys are pressed. Increase the border threshold to 800 pixels for improved user interaction during cropping.
2025-12-23 09:03:55 +01:00
99fbfa3201 Add crop border dragging functionality to VideoEditor class
Implement mouse event handling for dragging crop borders, allowing users to adjust crop dimensions interactively. Introduce methods to detect border proximity and update crop rectangle based on mouse movements, ensuring proper clamping to frame bounds. This enhances the user experience by providing more precise control over cropping in video editing.
2025-12-23 09:02:06 +01:00
a369b84d39 Adjust crop size step from 15 to 5 pixels for finer control in video editing 2025-12-22 12:31:32 +01:00
5c44d147b0 Enhance video editing controls: add Shift+scroll functionality to expand/contract crop uniformly and implement adjust_crop_size_uniform method 2025-12-22 12:30:10 +01:00
4b9e8ecf45 Keep history of states 2025-12-22 10:28:06 +01:00
3d36a36f26 Implement simple frame cache 2025-12-22 10:18:28 +01:00
53af41b181 Have ; add track points to each instance rather than pause 2025-11-27 08:12:31 +01:00
c6b285ae18 Fix sometimes overwriting existing edited videos 2025-11-10 20:06:16 +01:00
91165056d7 Now actually do the thing the previous commit claims to do 2025-11-04 12:30:44 +01:00
24dc67b8ca Make shift right click put down track point on the position of the previous track point 2025-11-04 12:22:56 +01:00
66d3fa6893 Invert 90 2025-10-20 21:07:49 +02:00
a78ad45013 Make region interesting frame (or interesting region I guess?) 2025-10-20 21:06:30 +02:00
f27061b0ef Add "go to next interesting frame" button 2025-10-20 19:25:04 +02:00
bd1824a7ca Remove spammy prints 2025-09-26 19:44:17 +02:00
4806c95095 Shift 1-2 to go to markers 2025-09-26 19:41:07 +02:00
16c841d14d Remove some retard 2025-09-26 19:39:59 +02:00
bfb9ed54d9 Bigger template aoe 2025-09-26 19:39:53 +02:00
3ac725c2aa Enhance template selection logic in VideoEditor to handle current frame matches
This commit updates the template selection logic in the VideoEditor to correctly identify and utilize templates that start at the current frame. The changes include additional checks to remove or use templates based on their start frames, improving the efficiency and accuracy of template management during video editing sessions.
2025-09-26 19:38:45 +02:00
b5a0811cbd Enhance template management in VideoEditor by including template images
This commit updates the template management system in the VideoEditor to store template images alongside their start frames and regions. The changes include modifications to the loading and saving processes, ensuring that template images are recreated when needed. Additionally, the logic for adding and retrieving templates has been refined to accommodate the new structure, improving the overall efficiency and clarity of template handling during video editing sessions.
2025-09-26 19:35:13 +02:00
1ac8cd04b3 Refactor template management in VideoEditor to simplify template structure
This commit updates the template management system in the VideoEditor by transitioning from a dictionary-based structure to a list of tuples. The new structure simplifies the handling of templates, focusing on start frames and regions without the need for template IDs or counters. Additionally, the loading and saving of templates have been streamlined, enhancing clarity and efficiency in template operations during video editing sessions.
2025-09-26 19:33:52 +02:00
203d036a92 Remove all templates on C 2025-09-26 19:14:00 +02:00
fa2ac22f9f Refactor video scaling logic in VideoEditor to improve display handling
This commit updates the video scaling logic to ensure that videos are scaled down to fit the screen bounds instead of resizing the window. The previous logic for window resizing has been removed, streamlining the display process and enhancing the user experience during video editing sessions. The changes also include adjustments to maintain the aspect ratio of the video while scaling.
2025-09-26 19:04:54 +02:00
2013ccf627 Remove logic for future template management in VideoEditor
This commit eliminates the code that removes templates starting after the current frame, streamlining the template handling process. The changes enhance clarity and efficiency in template management during video editing sessions. Debug messages related to template removal have also been removed to reflect this update.
2025-09-26 18:53:10 +02:00
e1d94f2b24 Refactor template management in VideoEditor to streamline template handling
This commit removes unused attributes and logic related to template matching, enhancing the clarity and efficiency of the template management system. The changes include the removal of the template matching enabled flag and associated state management, focusing on the current template ID and its associated data. Debug messages have been updated to reflect these changes, ensuring better tracking and feedback during video editing sessions.
2025-09-26 18:42:35 +02:00
9df6d73db8 Enhance template management in VideoEditor by removing future templates and ending current ones
This commit updates the template handling logic in the VideoEditor to remove any templates that start after the current frame and properly end templates that start at the current frame. This change improves the clarity and efficiency of template management during video editing sessions, ensuring that only relevant templates are active. Debug messages have been added to provide insights into the template removal and ending process.
2025-09-26 18:31:10 +02:00
01340a0a81 Refactor and streamline template matching logic in VideoEditor
This commit removes unused methods and simplifies the template matching process by eliminating multi-scale matching in favor of a single-scale approach. The changes enhance performance and clarity in the tracking logic, ensuring a more efficient template matching experience. Debug messages have been updated to reflect the current state of the template matching process.
2025-09-26 18:30:19 +02:00
44ed4220b9 Refactor template matching logic in VideoEditor to support full frame and cropped modes
This commit introduces a toggle for template matching modes in the VideoEditor, allowing users to choose between full frame and cropped region matching. The logic has been updated to handle both modes effectively, improving flexibility and performance during template tracking. Additionally, the multi-scale template matching feature has been removed, streamlining the template matching process. Debug messages and feedback have been enhanced to reflect the current mode, ensuring better user experience during video editing sessions.
2025-09-26 18:20:12 +02:00
151744d144 Update 2025-09-26 17:56:28 +02:00
e823a11929 Enhance template matching in VideoEditor by applying motion tracking offsets
This commit updates the template matching logic in the VideoEditor to apply motion tracking offsets to the current frame before performing template matching. The new method, _apply_motion_tracking_offset, creates an offset frame based on the base position, improving tracking accuracy. This change simplifies the process by removing the previous cropping logic and ensures that template matching works effectively on the adjusted frame, enhancing overall performance during video editing sessions.
2025-09-26 17:54:56 +02:00
c1c01e86ca Optimize template matching in VideoEditor to utilize cropped regions for improved performance
This commit modifies the template matching logic in the VideoEditor to use only the cropped region of the frame when available, significantly enhancing the speed of template tracking. If no crop is applied, the original frame is used for tracking. This change improves the efficiency of the template matching process while maintaining accuracy in locating objects during video editing sessions.
2025-09-26 17:52:09 +02:00
184aceeee3 Enhance template selection and tracking logic in VideoEditor
This commit introduces a mechanism to select the best template for the current frame if templates are available. Additionally, it updates the template matching process to apply tracking directly on the original frame, avoiding infinite recursion and improving tracking accuracy. These changes enhance the overall functionality and reliability of the template management system during video editing sessions.
2025-09-26 17:50:07 +02:00
db2aa57ce5 Refactor template matching logic in VideoEditor to utilize transformed frames
This commit updates the template matching process in the VideoEditor to apply tracking on the already transformed frame, which includes crop, zoom, and rotation adjustments. This change enhances tracking accuracy by ensuring that the template can locate the object in its modified position, while also improving code clarity and performance during video editing sessions.
2025-09-26 17:49:29 +02:00
92c2e62166 Refactor template matching logic in VideoEditor to use original frame for tracking
This commit updates the template matching process in the VideoEditor to apply tracking directly on the original frame instead of a cropped region. This change ensures that the template can accurately locate the object in its original position, improving tracking reliability. The code has been simplified by removing the previous cropping logic, enhancing overall clarity and performance during video editing sessions.
2025-09-26 17:45:19 +02:00
86c31a49d9 Refactor template management in VideoEditor to enhance tracking functionality
This commit removes the initial template selection logic from the tracking method and introduces a mechanism to disable template matching when no templates are available. Additionally, it updates the comments to clarify the enabling of template matching upon template creation, improving the overall management of templates during video editing sessions.
2025-09-26 17:42:30 +02:00