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
2
votes
1 answer
How to prevent QAudioInput from automatically boosting the master volume to 100%?
I'm trying to use Qt5 Multimedia to record audio with QAudioInput. I noticed, however, that when my QAudioInput starts, it raises the master volume of my sound device to 100%.
How can I prevent QAudioInput from changing the master volume?
My current…

Joshua
- 1,148
- 3
- 17
- 34
2
votes
1 answer
QtMultimedia flac support
im trying to use Qt library QtMultiMedia to play music. I want it to support .flac format as well.
I'm running Windows 8.1, i installed flac codecs from http://xiph.org/dshow/ . BTW it works perfectly with mp3s .
Sample code:
QMediaPlaylist…

Walto
- 21
- 3
2
votes
2 answers
QML data folder
Im my app based on QML I use Camera and CameraCapture to capture an image from the camera. After it was captured I want to store captured image in application data folder with CameraCapture.captureToLocation(). But I have no idea how to get path to…

folibis
- 12,048
- 6
- 54
- 97
2
votes
2 answers
How to play streaming audio with QMediaPlayer?
I have audio stream from server that I want to play with QMediaPlayer in my program. Everything works when I first download file to QBuffer and then call setMedia and play method from the player. But if I want to play music while stream is still…
user2487382
2
votes
1 answer
How to use the setMetadata(key,value) method in QtMultimidia CameraCapture QML Type?
I'm interested in setting GPS location metadata to captured images in QML. I noticed the setMetadata(key,value) method in several qml capture elements but I can't understand how it works, or find any examples.
The definition in the documentation…

Gabriel
- 176
- 1
- 12
2
votes
2 answers
How to select the parameter of the setCodec() function for audio recording in Qt
I'm using QAudioRecorder in Qt to record a voice, here is the sample code.
audioRecorder = new QAudioRecorder;
QAudioEncoderSettings audioSettings;
audioSettings.setCodec("audio/amr"); //here's my…

Kevin Liu
- 23
- 3
2
votes
2 answers
QMediaplayer streaming from a custom QIODevice with encryption on Mac OS (10.9)
i'm currently porting an application from Qt4(.8.4) to Qt5(.2.0).
I'm nearly done with all the known changes like deprecated toAscii()-function, missing QtGui and so on. Now we had a music player using the phonon framework which is not supported any…

Jan__
- 216
- 4
- 9
2
votes
1 answer
Qt 5.1: QMultimedia 5.0 in android for Camera
I want to use camera in Android with Qml interface and QtMultimedia 5.0
Until now I haven't succeeded in it.
I'm using Qt 5.1 with qtquick 2.1 and Android 4.2.2 API 17
Here is my code:
main.qml :
import QtQuick 2.1
import QtMultimedia…

Ali Diouri
- 86
- 1
- 9
2
votes
1 answer
Live streaming video in Qt
I am making a "simple" software that can streaming video (without audio) from pc to pc. I am a newbie in Qt so I have some questions:
Does Qt 5.1 have any class to Encode and Decode video?
If not, can I use other libraries (such as gstreamer) to…

Minh Ho
- 123
- 1
- 11
1
vote
0 answers
Can't record audio in mp3 or wav format using PyQt6.QtMultimedia.QMediaRecorder
I need a voice recorder as part of the program. Below is the test part for voice recorder
import os
import sys
from PyQt6.QtMultimedia import QMediaRecorder, QMediaCaptureSession, QAudioInput, QMediaFormat
from PyQt6.QtWidgets import QMainWindow,…

Владимир
- 11
- 3
1
vote
0 answers
PyQt5 does not loop the video in RaspberryPi
I'm developing a screen for an application that will loop a video until there is a touch event on the screen. The event to detect the touch is working, but the video only runs once and then goes to black screen.
I'm developing in python, on windows…

Gabriel Bastos
- 11
- 4
1
vote
1 answer
How to deactivate a QVideoProbe?
According to the docs "If source is zero, this probe will be deactivated"
But calling setSource(0) gives the following exception:
Exception has occurred: TypeError
'PySide2.QtMultimedia.QVideoProbe.setSource' called with wrong argument types:
…

ramiwi
- 902
- 2
- 10
- 28
1
vote
0 answers
QT 6.x multimedia - connect microphone audio to send to speaker and udp network simultaneously
I asked this question directly on the QT desktop support forum but unfortunately I am not having any success there. Hopefully with the larger stackoverflow audience I will have better luck here.
I need to capture audio from the microphone…

johnco3
- 2,401
- 4
- 35
- 67
1
vote
1 answer
QMediaPlayer stuck on loading media
I want to play an audio file (tested .wav, .mp3, .flac)using QMediaPlayer from the console application on embedded iMX8 device with Yocto HardKnott system. I'm testing code from Qt doc. It work's fine on PC, but it doesn't on the embedded device. It…

kluszon
- 375
- 5
- 19
1
vote
0 answers
Show Subtitles using Qt6 multimedia module
I was looking at QT6 Qml media player example and I want to display subtitles in the video using a .srt file. Is it possible to do so and if not, is there any other way I can display subtitles for the video

conan
- 11
- 2