Questions tagged [qtmultimedia]

QtMultimedia module from the Qt Toolkit that provides a rich feature set to easily take advantage of a platform's multimedia capabilites and hardware.

Filter by
Sorted by
Tagged with
0votes
1answer
13views

QT version seems to be older than installed

I'm new to QT and QML, I found a cool KDE Plasma addon on the internet and wanted to edit it, but flushMode property, which I want to use, was introduced in QT 5.13. I have installed QT 5.15 (to be ...
user avatar
0votes
0answers
11views

QtWebEngine select audio device for <audio> tag

Is there any way to select audio device for PyQt5WebEngine? The code i use is: self.web = QWebEngineView(self.main_self.ui_new_radio_connection_test_connection_window.radio_web_page_frame) self.web....
user avatar
  • 1,769
0votes
0answers
39views

PyQt6 QMediaPlayer and QAudioOutput not behaving as expected

I've been having an issue migrating to PyQt6 with QAudioOutput and QMediaPlayer where the QMediaPlayer object seems to not work with any QAudioOutput I make. If I set a QAudioOutput object the video ...
user avatar
0votes
0answers
41views

YOCTO - gstreamer1.0-plugins-bad_1.16.3.bb:do_configure failed with exit code '1'

I am using yocto 'gatesgarth' to build an image. one of the image's dependencies is qtmultimedia. This, causes an Error which I can't find how to solve it. Below the error: Using 'PKG_CONFIG_PATH' ...
user avatar
  • 37
0votes
0answers
63views

Qt Multimedia GStreamer video doesn't work on Rpi3

I have a software working with qt 5.15.2 on a raspberry pi 3 with buster 10. The program is working, but can't read video when using qtmultimedia. The same video can be read without any issue with ...
user avatar
0votes
0answers
23views

QAudioDecoder has ResourceError when starting

I try to play a MP3 file with the QAudioDecoder->QAudioBuffer->QAudioOutput. WAV files are already working (because it does not need the QAudioDecoder). As soon as decoder.start() I see there is ...
user avatar
0votes
1answer
83views

Can't Get List of Cameras in QtMultimedia on Windows Platform

I want to display streaming video using QtMultimedia modules in Python on a Windows 10 platform. However, the first most fundamental step is not working for me – identifying available cameras. ...
user avatar
0votes
1answer
176views

Replace QCameraViewfinder with QVideoWidget in Qt 6

I am trying to port some code to Qt 6's reworked QtMultimedia framework and running into a lot of issues of disappearing APIs. One of these is QCameraViewfinder, which as I understand it, is a simple ...
user avatar
  • 71.6k
0votes
0answers
338views

Project ERROR: Unknown module(s) in QT: multimedia multimediawidgets on MacOS

I am trying to use the Qt Multimedia API to access the user's webcam, but when I run the qmake, QT Creator says that the modules multimedia and multimediawidgets are unknown. How can I install these ...
user avatar
  • 67
0votes
0answers
85views

QtMultimedia QMediaRecorder on a Windows Platform

I want to create a special purpose streaming video player/recorder using QtMultimedia in Python on a Windows platform. I found an excellent streaming video player (https://www.geeksforgeeks.org/...
user avatar
1vote
1answer
178views

Qt: QAudioInput vs QAudioRecorder

I am using Qt Multimedia 5 to analyze audio (FFT, LUFS, and dBFS, etc.) from audio input device. To get audio data, there are two main options, QAudioRecorder and QAudioInput. They can all read audio ...
user avatar
0votes
0answers
80views

Qt Camera Recorder in QML

I have been trying to record video (cam) and audio from qml using CameraRecorder from QtMultimedia with no success. I noticed that when running anything Camera related, even in C++ Qt applications, I ...
user avatar
1vote
2answers
82views

Qt c++. How to specify the path to save records?

I have a QAudioRecorder object, the audio recording is successful, but the recordings are saved in the default directory, how can I specify my location to store the recordings? Used QAudioRecorder::...
user avatar
  • 19
0votes
1answer
49views

capturing images while recordin video in qt c++?

I am writing code for a camera application. The application will start to record the video using the camera and while recording it should have an option to capture images also. I'm using QT c++ for ...
user avatar
0votes
1answer
160views

QAudioInput: failed to open audio device

I'm try to use Qt Multimedia to open microphone and access data. I followed the official example Audio Input Example and get the following code(Just a test program, I will inject into my other project ...
user avatar
1vote
1answer
569views

How to install Qt with multimedia on Windows

I'd installed QT for Windows but when I try to use QT += multimedia in the .pro file it showed me that this module was unknown. I checked Qt online installer for additional modules but there was no ...
user avatar
  • 55
0votes
1answer
49views

Using non-qtcore libraries on Visual Studio using Qt VS Tools causes LNK2019

I am trying to use QSoundEffect from QtMultimedia. I have included the file like so: #include <QtMultimedia/QSoundEffect> and used QSoundEffect in my project. When I try to compile my project ...
user avatar
  • 152
-2votes
1answer
290views

How to download and use QtMultimedia in python, Windows? [closed]

How can I use QtMultimedia in pyqt5. I am using Windows operating system. I researched about QtMultimedia but I still don't know how to download it, can you help me?
user avatar
1vote
1answer
1kviews

PulseAudioService pa_context_connect() failed in all QT GUI applications

I have an embedded linux device that is running linux kernel 4.4 and QT5.9.1 with busybox. I have two applications written in QT, one with a GUI and another backend service also written in QT but has ...
user avatar
0votes
0answers
60views

Always empty metadata

I'm writing audio player using QtMutimedia, and need got audio file metadata. I'm using this code, but always returns empty strings on every file. How fix this? Qt 5.15.2 MinGw QStringList meta = ...
user avatar
1vote
0answers
59views

How to set volume in QtMultimedia/QSound in Python?

import os import sys from PyQt5 import QtCore, QtMultimedia CURRENT_DIR = os.path.dirname(os.path.realpath(file)) def main(): filename = os.path.join(CURRENT_DIR, 'Max Brhon - Cyberpunk.wav') app = ...
user avatar
0votes
1answer
311views

How to set windowsmediafoundation as preferred plugin?

I was playing around with QMediaplayer, trying to create a music player with PyQt (5.9.2) and noticed that the player duration is incorrect on files with "unusual" bitrates (e.g. 241 kbits/s)...
user avatar
1vote
1answer
429views

PyQt5 select which audio device output will play

This simple code will have a GUI button that, when pressed, will play example.mp3 to the default audio output device. import sys from PyQt5 import QtCore, QtMultimedia from PyQt5.QtMultimedia import ...
user avatar
  • 721
11votes
2answers
3kviews

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?
user avatar
0votes
0answers
363views

QML video seek() function jumping back a few seconds after seeking

Whenever I try to use the seek() function it jumps to the new position and then back to a random point. The desired behaviour would be to simply jump to the new position. I have the following video ...
user avatar
  • 3
0votes
1answer
165views

How to send a parameter to QAbstractVideoFilter in qml?

I want to have multiple camera that processing by unique filter and all camera filter have to access to unique Array in memory(should not passing copy of Array to each filter). Do you have any idea? ...
user avatar
1vote
0answers
158views

Recording Video with PyQt5 QMediaRecorder

I'm developing an interface with PyQt. I want to record a video with QMediaRecorder when the button is pressed. I would be glad if you could help. def openCameraFunction(self): self.cameraName = ...
user avatar
2votes
1answer
124views

play gtts buffer with QtMultimedia.QAudioOutput directly

I want to play sounds with QtMultimedia. In the case of QMediaPlayer, I could play mp3 file , it is made from gTTS. (I think it is okay but I don't like the file remains unless I excute codes for ...
user avatar
  • 1,615
0votes
1answer
2kviews

libQt5MultimediaQuick.so.5: cannot open shared object file: No such file or directory

I was working on a project called RaspMedia(my project folder's name is also that). I combined QML and python together using PyQt5. I've tried to import QtMultimedia using the import statement ...
user avatar
2votes
0answers
208views

Cannot read bytes while recording audio using QAudioInput

I am using QAudioInput to record audio from the system default input device. I get a callback from QIODevice::readyRead that bytes are ready for read, but reading the bytes return an array of \0 's, ...
user avatar
3votes
2answers
5kviews

Error: No module named 'PyQt5.QtMultimedia'

I am trying to build a GUI integrating videos, and for this I need to import PyQt5.QtMultimedia. Yet when trying to import the module (import PyQt5.QtMultimedia) I receive an error: ...
user avatar
2votes
1answer
913views

QMediaPlayer. How to play video with multiple audio?

There is a video file with two audio tracks: Duration: 01:05:09.12, start: 0.000000, bitrate: 2781 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 ...
user avatar
0votes
0answers
34views

Is it possible to capture audio sent to the audio interface using QAudioProbe?

For my application, I need to visualize the audio signal that's sent to an audio interface (core audio/hardware sound card), without needing to forward the signal (this is how soundflower or jack ...
user avatar
  • 105
0votes
1answer
45views

Audio keeps playing when app is in the background

I have a soundtrack to be played through the run time as the main theme: App{ ............... Audio{ source: "../assets/Art Of Silence_V2.mp3" autoPlay: true loops : ...
user avatar
1vote
0answers
191views

Camera makes QQmlApplicationEngine load very slow

I have a QML frontend (Qt 5.12 on Ubuntu 18.04) with a QML Camera element (QtMultimedia 5.12) to show a video live stream from a USB camera/ video grabber. The application works just fine without the ...
user avatar
0votes
1answer
32views

how do I autoplay music when my app reloads

I'm making a game and I want the theme soundtrack to be autoplayed and to keep on looping no matter what is the viewed page/stack status...etc how do I do this? I already have: App { onInitTheme: ...
user avatar
3votes
0answers
1kviews

Plugin cannot be loaded for module "QtMultimedia". Cannot load library declarative_multimedia.dll

I'm creating a PyQt5 + qml application. Windows 10, PyQt5 5.13.2, Python 3.6. Everything works fine until I try and import QtMultimedia, which results in the error message: QQmlApplicationEngine ...
user avatar
1vote
1answer
171views

GStreamer; Unable to play Error: "Invalid URI \"\"." [duplicate]

I am receiving this error after running a Video stream in a QtMultimedia this is the error message GStreamer; Unable to play - "" Error: "Invalid URI \"\"." Traceback (most recent call last):
user avatar
  • 49
1vote
1answer
7kviews

module "QtMultimedia" is not installed

I've installed Qt and Qtcreator on a Raspberry Pi 3 using the normal apt-get install method. Everything seems to work fine except when I try to build the declarative-camera example or other multimedia ...
user avatar
  • 41
1vote
1answer
1kviews

PyQt QMediaPlayer setPosition rounds the position value

I have an app that's designed to help synchronise an experiment video and data signals. The App has a video widget and a slider that can set the temporal position of the video. However, QMediaPlayer ...
user avatar
  • 374
0votes
1answer
792views

QMediaPlayer displays audio only for certain videos

I'm using QMediaPlayer according to the example in the docs. Here's my code: from PySide2 import QtWidgets from PySide2 import QtCore from PySide2.QtMultimedia import QMediaPlayer from PySide2....
user avatar
  • 343
1vote
1answer
187views

Which sample type (not size) to choose in QtMultimedia's QAudioFormat for 24, 32 and 64 bit audio?

I am writing a media player with Qt, but I'm now facing some unknown situation. Actually, I'm trying to use QAudioOutput and QAudioDecoder to play high res music (24, 32 or even 64 bit audio). But ...
user avatar
  • 157
1vote
1answer
344views

How do I populate a playlist qml type using a c++ model?

I'm building a music player and need to autofill the playlist using this c++ model: static QStringList pathList; int main(int argc, char *argv[]){ // ... // ... QDirIterator it("E:/", QStringList(...
user avatar
2votes
0answers
268views

How to cross compile Qt with gstreamer

I want cross compiled qt5.12.3 with gstreamer for my arm board, I have cross compiled gstreamer-1.0 and gst-plugin-base-1.0 ,set their path correctly,but one error comes when configure,like this ...
user avatar
0votes
1answer
290views

Which dlls are needed for Qt multimedia QCameraInfo::availableCameras(); to return the list of cameras?

On Windows 10 N, the windows media foundation and player are missing and QCameraInfo::availableCameras(); returns empty list. The mediaservice plugins are copied correctly both dsengine.dll and ...
user avatar
0votes
0answers
351views

Cant load music file with QMediaPlayer

I am creating media player with qt5. Code below works fine ( it open file dialog, load one song and play it after loading) but it can't play some MP3 files. These files are not damaged or something ...
user avatar
2votes
1answer
635views

Using Camera on Linux Desktop in Qt Quick

I have a simple project in Qt Quick in which I need to process output from camera. The project should run on Android, Windows and Linux. So far I am successful in connecting to the camera on Android, ...
user avatar
4votes
0answers
608views

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, ...
user avatar
0votes
0answers
50views

QAudioDecoder returns invalid QAudioFormat on Xubuntu 18.04

I am not able to make QAudioDecoder (Qt 5.9.5) work on Xubuntu 18.04. Specifically, I always get that the audio format returned by QAudioDecoder::audioFormat() is not valid, no matter which file I try....
user avatar
  • 17
1vote
1answer
2kviews

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 ...
user avatar
  • 143

15 30 50 per page
1
2 3 4 5