QtMultimedia module from the Qt Toolkit that provides a rich feature set to easily take advantage of a platform's multimedia capabilites and hardware.
Questions tagged [qtmultimedia]
235 questions
59
votes
2 answers
Playing a custom avi data stream using QtMultimedia
I need to play back a custom AVI file that contains a classic video stream, an audio stream but also a custom data stream.
The custom stream contains data that is visualized by some custom widgets; those widgets only need that each custom frame is…

sbabbi
- 11,070
- 2
- 29
- 57
45
votes
1 answer
Qt5 VideoOverview example does not work. Any solution?
I am stuck for a month with a video example given in Qt Video Overview.
I tried that code, but I only get a blank square (QWidget). I am using GStreamer0.10 for media playback over Qt5. I also played video with gst-launch-0.10 command and it works…
user5585984
12
votes
2 answers
Qt6 and Multimedia module
As I can see in Qt6 no more Multimedia API. Am I right? Is it correct that in Qt6 for such simple task as playing sound I should look at third-party libraries now?

Igor Mironchik
- 582
- 4
- 17
9
votes
2 answers
No decoder available for type 'video/x-h264
I am trying to run one of qt sample apps without any modification. It is called player and it is a multimedia widget demonstration. My system is Ubuntu 16.04 64bit. When I try to play a video, I see the following error in the console:
No decoder…

Aras
- 5,878
- 9
- 49
- 76
9
votes
2 answers
QAudioDeviceInfo finds no default audio device on Ubuntu
I am trying to run the basic example from the QAudioDeviceInfo class reference, but Qt is not finding a default audio device.
Running this code shows no output:
foreach (const QAudioDeviceInfo &deviceInfo, …

maxmcmahon
- 445
- 3
- 8
6
votes
1 answer
How to draw QtGraphicsView on Top of QVideoWidget with transparency
I am trying to overlay some graphics(QtGraphicsView) on top of video player(QVideoWidget). i have already tried setting QtGraphicsView subclass stylesheets to transparent and background brush and none is…

haseeb
- 190
- 3
- 12
6
votes
1 answer
Unknown module(s) in QT: multimedia
I have downloaded qt-everywhere-opensource-src-5.4.1 and build and installed static.
Next i built QMultimedia and installed.
I get "Unknown module(s) in QT: multimedia" from the .pro when including
QT += multimedia.
I have…

Acha Bill
- 1,255
- 1
- 7
- 20
5
votes
3 answers
Unable to play video Qt5 multimedia ubuntu 16.04
I am trying to use QMediaPlayer class to play videos, but keep getting this error -
`GLib-GObject-WARNING **: cannot register existing type 'GstObject'
GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
GLib-GObject-CRITICAL **:…

JLev
- 705
- 1
- 9
- 30
5
votes
0 answers
How to get total number of frames in a video.mp4 using Qt Multimedia
Scenario
I am using QMediaPlayer to a display a video on a VideoOutput.
Works well.
I do a MyQMediaPlayerPtr->setMedia(sample_video.mp4) & I have full control on that video playback.
I am using QMediaPlayer's setPostion to seek a random frame from…

TheWaterProgrammer
- 7,055
- 12
- 70
- 159
5
votes
1 answer
Custom source property for VideoOutput QML
What exactly has to be done to provide custom source of frames for VideoOutput QML object?
Does VideoOuput itself provide an instance of QAbstractVideoSurface class to the "source"?
The Qt5 documentations says following thing about providing about…

Xyz
- 1,522
- 17
- 23
5
votes
2 answers
Can't import QtMultimedia in PyQt 5 on Windows
I'm trying to learn PyQt5 + qml, and everything I tried so far works fine, however I've ran into a snag when trying to import QtMultimedia into my qml file results in the following error:
plugin cannot be loaded for module "QtMultimedia": Cannot…

Curtwagner1984
- 1,908
- 4
- 30
- 48
5
votes
1 answer
Force QMediaPlayer to update position accurately for video scrubbing application?
I am writing an application which will allow the user to scrub through an open video. Developing on Windows 7/8 with Qt 5.3, I have been using QMediaPlayer and QVideoWidget following the qvideowidget example project. The result has been pretty good,…

Michael Cooper
- 2,255
- 2
- 18
- 21
5
votes
1 answer
How video is played in the QML?
I am new to qml. I would like to know how the video is played in the qml. How the video is handled in the back-end(The classes and modules responsible for video playback). How can i add a custom player to play back video in QML? Is there any…

jsaji
- 900
- 1
- 15
- 31
4
votes
0 answers
No Module named QtMultimedia
Trying to play audio in a qt gui
I've tried basically every suggestion on Google pertaining to playing audio with pyqt (pyside, pygame, QtMultimedia). It seems pretty straight forward using QSound, but it doesn't work for me for some reason
from…

anonymouselephant
- 43
- 1
- 4
4
votes
1 answer
Qt : How to create a video from multiple QImages
How to create a .mp4 video out of multiple QImages in a Qt application.
Looking at QMediaRecorder examples, it only knows how to grab frames from camera. There seems to be no way to pass multiple QImages or some other image data type into…

TheWaterProgrammer
- 7,055
- 12
- 70
- 159