Bug 514337

Summary: "Resize to fit video" doesn't take pixel aspect ratio into account
Product: [Applications] Haruna Reporter: LaughingMan <lingm+kdebugs>
Component: generalAssignee: george fb <georgefb899>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.7.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: video with black bars

Description LaughingMan 2026-01-08 16:56:42 UTC
Created attachment 188321 [details]
video with black bars

STEPS TO REPRODUCE
1. Take a short standard 1920x1080 video file with a display aspect ratio of 16:9.
2. Convert said file with "ffmpeg -i input.mp4 -vf "scale=1918:872" output.mp4" to create a sample with a pixel aspect ratio of 6976:8631.
3. Enable "Resize to fit video" and play the resulting sample on a large enough screen.

OBSERVED RESULT
The video playback area is 1918x872 pixels, including thick black bars on the sides (see attached screenshot).

EXPECTED RESULT
The video playback area should be 1918x1078 pixels, without any black bars. That is, the non-square pixel aspect ratio should be taken into account. mpv handles this correctly.

SOFTWARE/OS VERSIONS
Kernel: 6.18-3
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1