Questions tagged [qvideowidget]
35 questions
1
vote
1 answer
PyQt5 retrieving frames before/after current frame
I'm new to PyQt and I'm trying to create a videoplayer. When the user screenshots a certain frame, I should be able to retrieve 5 frames prior to the current frame and another 5 frames after the current frame. So far I'm only able to retrieve the…

xjm
- 164
- 2
- 4
- 18
1
vote
1 answer
How to create a transparent QWidget on top of a sibling QVideoWidget?
I want to add some controls and information on top of a fullscreen QVideoWidget. So I create a QMainWindow ui and then promote the central widget to QVideoWidget as:
…

aviit
- 1,957
- 1
- 27
- 50
1
vote
1 answer
How can run both of matplotlib and PyQt5 Video with python
I'm trying to run QVideoWidget and matplotlib animation together,
but when I run this py, QVideoWidget is not working.
I got QVideoWidget code and matplotlib animation code then sum those code together in below code.
If I close the matplotlib…

Daniel
- 23
- 3
1
vote
1 answer
How to play video in a QVideoWidget promoted in Qt Designer?
I am a beginner in Qt. But following some tutorials I created a UI in qt designer which would display a live stream video. I have read that in order to add video i need to promote widget to a QVideoWidget. Then I convert the .ui to a .py file to…

Denlord
- 25
- 1
- 6
1
vote
1 answer
Add button to QVideoWidget
everyone! I try to set a click property to a QMediaPlayer Element, but I can not find the mode to make it, and if I try to put a button in front to Video, the button puts behind to video, even with
button->raise();
videoWidget->lower();
And If I…

Aarón Gutiérrez
- 41
- 4
0
votes
0 answers
How to close video widget window once video is done playing QVideoWidget?
I want to display a video when a button is clicked and close the video widget once the video is done playing in QT 6.4, and if there is no workaround that, if I could somehow display the video in a widget I create on QTDesigner that would work well…

Almnayer
- 1
0
votes
1 answer
Increase frame rate for QCamera/QCameraViewfinder using PySide2 (Qt5)
I'm tying to create a simple application to monitor a webcam and taking pictures, basically following the Qt for Python Camera Example, which uses PySide6 (Qt6).
However, for my case, I must use PySide2 (Qt5) instead, as the embed computer for this…

kstenio
- 25
- 5
0
votes
1 answer
Exact Position of video in QVideoWidget
I have a custom Media Player, that can display images and videos with the help of PyQt. Media player is implemented by the following code in python:
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QHBoxLayout, QVBoxLayout,
QLabel,…

Pitoguro
- 21
- 3
0
votes
1 answer
Why does QMediaPlayer::setVideoOutput() cause QOpenGLWidget not to play video
Environment
OS: Ubuntu 20.04LTS
Qt-Version: 5.12.8
Target
I have two Forms in my system,the first is QOpenGLWidget(override) to play video, and the Second with some QVideoWidget(override) -s to play video in video-recorder.
Problem
When the first…

小草上飞飞
- 1
- 2
0
votes
1 answer
setNotifyInterval for pyqt5 skipping positions
When I use:
setNotifyInterval(1), I notice that it sometimes skips a millisecond.
For example: When I print the position of the media, often it skips 2 seconds instead of 1. This is a problem because I want the program to stop every 10 seconds, and…

inchtown
- 1
- 2
0
votes
2 answers
QVideoWidget not reciving dropEvent (strange behavior)
I want to play a media on dropEvent of a QVideoWidget. I know the playing part, my problem is QVideoWidget not receiving dropEvent like other widgets.
I'm wonder this is a bug or I am missing something.
Everything is ok and all three events getting…

fristhon
- 21
- 1
- 6
0
votes
1 answer
Video with alpha channel overlay on background image: Alpha shows black
I need to play a .mov video (ProRes4444) with alpha channel in a scene. The scene has a background image and I need to use the alpha channel of the video so it overlays on the background.
If I open the video normally with QMediaPlayer, the alpha…

noi
- 11
- 2
0
votes
1 answer
Playing two videos side by side:Videos not showing
I'm trying to build a GUI that is made of multiple videos played in different positions on the window, all videos with alpha channels, as some overlap others, based on the instructions provided by the firmware of an external device.
I'm at the very…

noi
- 11
- 2
0
votes
1 answer
QT widgets Video as background?
I have to develop a UI for my new program and I want to play an animated wallpaper (mp4) as my background. Do somebody know how I can to that?
I tried to solve it with the qvideowidget and qmediaplayer but if I do it this way I cannot insert buttons…
0
votes
0 answers
Play video using QMediaplayer from buffer and append buffer while the video playing
I tried to play video from a buffer and append the buffer while playing so the two or more videos play after each other without any delay as they are one video, I tried to use the QMediaPlaylist and append the list during run time, it worked but…

user7179690
- 1,051
- 3
- 17
- 40