Bug 307364 - video stream does not cover full size of VideoWidget
Summary: video stream does not cover full size of VideoWidget
Status: CONFIRMED
Alias: None
Product: phonon-backend-vlc
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 0.6-git
Platform: unspecified Linux
: NOR normal
Target Milestone: 0.7
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 04:58 UTC by Tobias Koenig
Modified: 2023-04-17 13:13 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
pdf with movie demonstrating the problem (30.00 KB, application/x-compressed-tar)
2023-04-17 13:09 UTC, Éric Brunet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Koenig 2012-09-25 04:58:32 UTC
If you create a Phonon::VideoPlayer and resize its Phonon::VideoWidget to e.g. 800x600, then the frames of the video do not cover the complete widget (as it is done with the gstreamer-backend) but leaves two narrow black stripes at the top and the bottom of the widget. This doesn't look good if you switch between a static snapshot of the video and the VideoWidget, like it is done in the video playback in Okular.

Reproducible: Always
Comment 1 Myriam Schweingruber 2012-09-25 08:39:36 UTC
Which exact version is this about?
Comment 2 Oliver Sander 2012-09-25 10:09:27 UTC
In 0.6, and in the development branch, too.
Comment 3 Myriam Schweingruber 2012-09-25 10:10:41 UTC
Thank you for the feedback. Please always set the highest version you have experienced this with, else the bug report is incomplete.
Comment 4 Harald Sitter 2012-10-25 12:52:41 UTC
What scalemode and aspect are you using?
Comment 5 Harald Sitter 2012-11-16 13:46:50 UTC
Ping
Comment 6 Oliver Sander 2012-11-18 21:17:54 UTC
I'd like to get this fixed, but I am not very familiar with the okular code.  Is there anything I can grep for to answer your question?  How are the scalemode and aspect supposed to be set?
Comment 7 Tobias Koenig 2012-11-27 10:46:21 UTC
I have set aspectRatio to AspectRatioWidget and scaleMode to ScaleAndCrop, but the video still doesn't cover the complete area of the Phonon::VideoPlayer area.
Comment 8 Harald Sitter 2012-11-27 10:50:45 UTC
Those two are definitely not supported. Can't remember why though, I think it is due to a libvlc limitation.
Comment 9 Martin Sandsmark 2013-05-25 10:59:49 UTC
we just pass the aspect ratios on to libvlc, and libvlc doesn't seem to have an "ignore aspect ratio" aspect ratio.
Comment 10 Harald Sitter 2016-06-04 14:10:36 UTC
Aye, confirmed by libvlc devs. Probably never going to be supported because it would be part of a larger rework that is never going to happen because it is too big of an undertaking.
Comment 11 Éric Brunet 2023-04-17 13:09:51 UTC
Created attachment 158162 [details]
pdf with movie demonstrating the problem

Hi,

This is an old bug. I have an issue with vlc-phonon backend which might be the same issue, but I am not sure.

I am trying to build pdf with embedded movie; I am using latex with the beamer/multimedia package. The idea is that a rectangle on the pdf is defined, and when the user clicks on it (using a compatible pdf reader; I am using okular), the video is played tight on top the rectangle, as if it was embedded in the pdf itself. Internally, okular uses the poppler library which calls phonon which uses vlc.

I am using a video with a 2:1 aspect ratio, and I define a rectangle with the same aspect ratio. My problem is that the video occupies the full height of the rectangle, but not its full width: it has been squeezed horizontally, and black bands appear on both sides. In order for the video to fill the whole rectangle, it seems that the rectangle must have an aspect ratio of 7:4.

Now here's the catch: the problem seems to appear only using Wayland. It seems to be working as expected with X11. I am using an uptodate fedora38 beta.

I have attached a pdf file embedding twice the same movie: once onto a rectangle with a 2:1 aspect ratio, and once onto a rectangle with a 7:4 aspect ratio. The video should fit the first rectangle, and horizontal black band should appear in the second rectangle. this works as expected under X1. Under wayland, the video is squeezd and fits the second rectangle. On the first rectangle, vertical black bands appear. For documentation, I have also included the latex file.

Is this the same bug? Should I open a new one? Is there a workaround?
Comment 12 Éric Brunet 2023-04-17 13:13:05 UTC
Sorry:
phonon-qt5-4.11.1-11.fc38.x86_64
phonon-qt5-backend-vlc-0.11.3-3.fc37.x86_64
vlc-3.0.19-0.3.fc38.1.x86_64
poppler-23.02.0-1.fc38.x86_64
okular-22.12.3-1.fc38.x86_64