-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0
-
None
-
Ubuntu 18.04
GStreamer 1.14.5
PySide 5.15.0
-
-
a553c7d1b63defc963a043e363f8d75d255e9c72 (qt/qtmultimedia/dev) 13843ca8a1f33b015e9347e4955b34d8711fdbfd (qt/qtmultimedia/5.15)
Hello,
I'm experiencing what appears to be a bug in QVideoWidget. When I resize the window containing the video the image becomes stretched. During the resize, while the mouse is pressed, the video frame flickers between the stretched state and a state where its aspect ratio is maintained, and stays stretched when I release the mouse (see attached image).
A basic version of the widget I'm using to replicate the issue is shown below (using PySide2):
class Editor(QWidget):
def __init__(self, video_filename, parent=None):
super().__init__(parent)
main_layout = QVBoxLayout()
video = QVideoWidget()
video.setAspectRatioMode(Qt.KeepAspectRatio)
main_layout.addWidget(video)
self.player = QMediaPlayer()
self.player.setMedia(QUrl.fromLocalFile(video_filename))
self.player.setVideoOutput(video)
self.setLayout(main_layout)
self.player.play()
The system I'm running this on is Ubuntu18.04 with the X11 window system and GStreamer1.15.5
| For Gerrit Dashboard: QTBUG-85545 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 308180,2 | GStreamer: Update render rect only if open gl sink is used | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
| 308190,2 | GStreamer: Update render rect only if open gl sink is used | 5.15 | qt/qtmultimedia | Status: MERGED | +2 | 0 |