Questions tagged [qvideowidget]

35 questions
7
votes
3 answers

How to add a QVideoWidget in Qt Designer?

I want to insert video in blue box(ui image) but I don't know how to insert video file. My code is here. I don't know how to add video... Just know example that make video player ... import sys from PyQt5 import QtWidgets from PyQt5 import…
HyeonGeun Park
  • 73
  • 1
  • 1
  • 5
5
votes
1 answer

Adding label to video

I have to write a simple video player that can display some subtitles,link or a picture(like on YouTube) in a certain time. I have no idea of how do display anything using QVideoWidget. I couldn't find any useful class to do it. Could you please…
3
votes
1 answer

PyQt5 Access Frames with QmediaPlayer

I am creating a program to play videos and then process them. I am able to play the videos with QMediaPlayer. How do I access specific frames as images or something similar. My end goal would be to format the video into a 4-d tensor of size [Num of…
Miguel Kulisic
  • 129
  • 2
  • 10
3
votes
1 answer

Display widget on top of QVideoWidget with QMediaPlayer

What I want to achieve is to have a button or a widget to be displayed on top of a QVideoWidget. Following this example of a sample video player, I tried to add a button on top of the QVideoWidget with the following code self.button=…
J No
  • 33
  • 1
  • 4
2
votes
2 answers

pyqt5: second video does not play: concurrent QMediaPlayer issue?

I am basically building a GUI with pyqt5 supposed to incorporate two videos. To do this, I use QMediaPlayer in combination with QVideoWidget, one for each class. The point is: while the first video plays as expected, the second one refuses to play.…
Romain Legrand
  • 107
  • 1
  • 7
1
vote
1 answer

QVideoWidget() is not working with Frameless Window and Translucent Background

I am making a videoplayer with QMediaplayer and QVideoWidget using PySide2. Everything works as expected but when I use: self.setWindowFlags(QtCore.Qt.FramelessWindowHint) self.setAttribute(QtCore.Qt.WA_TranslucentBackground) The…
ncica
  • 7,015
  • 1
  • 15
  • 37
1
vote
0 answers

QVideoWidget and QStackedWidget creating problem in PySide6

I am trying to build a GUI using PySide6 on Windows 10 - Python V 3.10.2. Basically, I wanted to create a vertical box on left with buttons to switch between the stacked widgets. And a video widget with play button & scroll bar on the right side…
Roshan
  • 11
  • 1
1
vote
0 answers

How to use a GStreamer pipeline to play a test video in a Qt QVideoWidget on Windows

I am trying to get a GStreamer test video to play in a Qt QVideoWidget using the Qt example code from here but the video never plays. The Qt widget is just a blank window like in this screenshot. The code I am using is listed below. I am using Qt…
user3716193
  • 476
  • 5
  • 21
1
vote
1 answer

How to rotate video in QVideoWidget in PyQt5

GUI # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'facebio.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class…
KimJitae
  • 139
  • 11
1
vote
1 answer

How do I use paintEvent on a QVideoWidget with transparency?

I'm working on qt5 (C +). I use QVideoWidget to play rtsp video stream. I wanted to draw any signatures with QPainter on the displayed video. However, I obscure the video while drawing. For example, as for the drawing area, I have given half of the…
1
vote
3 answers

QVideoWidget content isn't grabed from widget

I've created a simple media player. I want to add the ability to make a snapshots of the displayed video. For this purpose I use 'self.videoWidget.grab()' function. But seems like grab() doesn't work properly for that aim because instead of snapshot…
1
vote
1 answer

wrong video frame of present() of qabstractvideosurface in pyqt5

I am figuring with an application with pyqt5. I use QMediaPlayer and QVideoWidget to play videos and what I need to do first is to get the current video frame when I pause the video. I have read the answer PyQt5 Access Frames with QmediaPlayer, and…
ruoji
  • 41
  • 3
1
vote
1 answer

PyQt5 widgets intended to be transparent to show QVideoPlayer pass through video and adopt QMainWindow background

I have a QMainWindow with a QVideoWidget set as the central widget. The video is acting like a background to the main window of the blackjack game I'm making. I have two buttons I'd like to place on top of the video with partial transparency. This…
cdiddy80
  • 31
  • 5
1
vote
1 answer

QVideoWidget in full-screen mode no longer responds to hotkeys or mouse wheel

Using QVideoWidget in PySide2 (although the python part may not be significant). I've set up my hotkeys using QShortcut, and it all works great. When I press 'F' to enter full-screen mode that works too, but then I can't leave. None of my hotkeys…
fuzzboil
  • 61
  • 1
  • 5
1
vote
1 answer

Displaying a video with an alpha channel using qt

I need to display RGBA encoded videos (that is, video with a transparent background) using qt. The idea is to merge videos in real time. I usually use libmpv but it does not seem to be allow rendering transparent background video. I am trying to use…
fabry
  • 41
  • 7
1
2 3