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
Which exact version is this about?
In 0.6, and in the development branch, too.
Thank you for the feedback. Please always set the highest version you have experienced this with, else the bug report is incomplete.
What scalemode and aspect are you using?
Ping
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?
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.
Those two are definitely not supported. Can't remember why though, I think it is due to a libvlc limitation.
we just pass the aspect ratios on to libvlc, and libvlc doesn't seem to have an "ignore aspect ratio" aspect ratio.
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.
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?
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