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.

Documentation can be found here (Qt4) and here (Qt5).

235 questions
0
votes
0 answers

How do I get an audio device's supported sample rate list in Qt6?

In Qt 5.15, QAudioInput::supportedSampleRates() would return a list of sample rates that the device supported. In Qt 6.4.1, QAudioSource doesn't seem to have an equivalent method. How can I get the list of supported sample rates for a given audio…
Jason C
  • 38,729
  • 14
  • 126
  • 182
0
votes
1 answer

"Failed to setup resampler" when starting QAudioSink

I'm porting some QtMultimedia code from Qt 5.15 to 6.4.1. The following program, when built with Qt 6.4.1 on Windows: int main (int argc, char *argv[]) { QCoreApplication a(argc, argv); QAudioDevice device =…
Jason C
  • 38,729
  • 14
  • 126
  • 182
0
votes
0 answers

Why is my audio delay filter losing the delay?

I'm trying to stream audio from a QAudioInput to a QAudioOutput (Qt 5.15) but with a few seconds of artificial delay. In an effort to keep the code simple I implemented a delay filter based on a QIODevice, which sits between the input and output.…
Jason C
  • 38,729
  • 14
  • 126
  • 182
0
votes
1 answer

Routing Audio from microphone to network using QT 6.4.x

With QT 6.4.x (Windows), how can I capture microphone audio and repackage it and forward the repackaged audio to a QUdpSocket. The repackaging will involve changing the captured audio format from its typical 16 bit little endian format and…
johnco3
  • 2,401
  • 4
  • 35
  • 67
0
votes
0 answers

How to convert QVideoFrame from QCamera to QImage?

I tried using QVideoProbe to capture and send my camera video frames for processing (object detection) in another python process. The problem is that the conversion of the probed QVideoFrame into QImage fails. Conversion to byte array using the…
ramiwi
  • 902
  • 2
  • 10
  • 28
0
votes
1 answer

Time duration always 00:00:00 for Qt label

I've been trying to get the duration of a video file that's opened but whenever I open the file the duration always comes out to 00:00:00. I believe the logic and math are correct but that I am possibly missing a connection. GitHub void…
0
votes
0 answers

Qt error: 'QMediaPlaylist' file not found

I'm using Qt 5.15.10 I have added QtMultimedia and Qt_USE_MULTIMEDIAWIDGETS but it still has bug like this and I tried to search on the internet and fix that but it still wasn't solved. So What can I do for solving this problem? Thanks all of you…
0
votes
0 answers

Can't leave fullscreen in Qt?

With my code when I double click the video it enters fullscreen but seems to open up an entirely new window on my other monitor. When I try to double click the new fullscreen window to exit it doesn't exit but if I go to my other monitor and double…
Dualists
  • 11
  • 3
0
votes
0 answers

reassigning std::unique_ptr member causes heap corruption

I am having problems trying to construct a smart pointer member to a std::unique_ptr. This is assigned in a button click QT slot as follows: void MainWindow::on_start_clicked() { // second time this occurs HEAP corruption inside…
johnco3
  • 2,401
  • 4
  • 35
  • 67
0
votes
0 answers

play video playlist in Qt/Qml

I am making a simple playlist player on qml. I am using FolderListModel to read folders. I want to run each video in turn. But my player only plays the first video, then the program crashes. My error is invalid property name onStopped in Thong.qml.…
MinhThong
  • 3
  • 3
0
votes
1 answer

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 exact, 5.15.3), rebooted and got…
Arisban
  • 1
  • 1
0
votes
1 answer

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 will fail to render and the event loop gets…
0
votes
1 answer

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. Windows Device Manager confirms that there are two…
slalomchip
  • 779
  • 2
  • 9
  • 25
0
votes
1 answer

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 modules on MacOS? I found a way to do it on Linux…
user16478428
0
votes
1 answer

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 programming the application. I'm able to record the…