Bug 499120

Summary: Position and Zoom breaks for Stabilized Clips with a different aspect ratio
Product: [Applications] kdenlive Reporter: skachm
Component: Video Effects & TransitionsAssignee: Jean-Baptiste Mardelle <jb>
Status: CONFIRMED ---    
Severity: normal CC: fritzibaby
Priority: NOR Keywords: triaged
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Image 1-3 show expected behavior. Image 5 shows bug with stabilized clips

Description skachm 2025-01-25 06:42:07 UTC
Created attachment 177659 [details]
Image 1-3 show expected behavior. Image 5 shows bug with stabilized clips

SUMMARY
Position & Zoom stretches stabilized clips that have an aspect ratio different from the project settings frame size

STEPS TO REPRODUCE
1. Set the project frame size, eg. vertical 1080x1920
2. Import a clip with a different aspect ratio, eg. 3840x3360 (Image 1)
3. Stabilize the clip
4. Add the Position and Zoom transform 

OBSERVED RESULT
1. Stabilized clip is stretched to match the project aspect ratio (Image 5)

EXPECTED RESULT
1. Stabilized clip matches the behavior of the unstabilized clip (Images 2-3), where adding the transform does not affect the clip aspect ratio

SOFTWARE/OS VERSIONS
Windows: 10 Version 22H2
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
Comment 1 emohr 2025-01-25 12:31:58 UTC
The Position & Zoom effect has some bugs we cannot really fix. Please try again and use the Transform effect. Does the issue still happen?
Comment 2 skachm 2025-01-25 21:08:51 UTC
Transform does not distort the aspect ratio, but appears to have a separate (less critical issue) where the fit to width and fit to height stop working. (Transform also matches the project frame size instead of the stabilized clip's aspect ratio, it just doesn't stretch the clip)
Comment 3 emohr 2025-01-26 15:59:12 UTC
Thank you for reporting. I can confirm the issue. Following your steps. 

When a clip is stabilized to a MLT clip: Transform -> all Align features doesn’t work anymore

Workaround: use all other parameters like scale and position to adjust the MLT clip.