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

Qt/QML Android: Camera was detected but ImageCapture send "Camera is not ready." error

I have bellow codes, the Camera in Qt/QML android app detected correctly but ImageCapture send "Camera is not ready." error. import QtQuick import QtQuick.Controls import QtMultimedia /*!…
0
votes
1 answer

QT6 doesn't record audio, only header in WAV file and QWaitCondition::wakeAll(): mutex lock failure

QT6 doesn't record audio, only header in WAV file and QWaitCondition::wakeAll(): mutex lock failure I'm writing a simple application to record audio, unfortunately it doesn't work properly. I have simplified everything as much as possible to make it…
dewerk
  • 1
0
votes
0 answers

Integrate a gstreamer pipeline under Qt 5.15.2 using Qt QML

Pre-requisites: Gstreamer 1.16.1 Qt 5.15.2 Target Device: imx8 with Yocto I'm trying to visualize a camera stream inside an item on one of our pages. For this purpose, we transmit the camera stream over UDP to the target device. I'm able to launch…
Nico
  • 151
  • 5
0
votes
1 answer

defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

I'm building my Qt app into an AppImage on Ubuntu-22.04. It builds without errors and the app works. But the problem is that it's supposed to display a video, and it doesn't. The initial version of the app successfully displays the video, but the…
Wasyn
  • 11
  • 3
0
votes
0 answers

PyQt6 QMediaRecorder recording no sound

I'm coding with Python 3.11 in Linux, PyQt6, and want to record audio to file. Using QMediaRecorder. My script writes an audio file m4a format to disk, but no sound is recorded. Basically microphone device works on this PC, have tested with other…
0
votes
0 answers

Issue with QMediaDevices::videoInputs(): return empty list but Qt Camera example works fine

I'm trying to use QMediaDevices just to grab the list of cameras input. QMediaDevices::videoInputs() return an empty list; no error is thrown in compilation time. On run-time I got a sort of warning / log: Available HW decoding frameworks: …
Buzz
  • 1,102
  • 1
  • 9
  • 24
0
votes
0 answers

QT6.5 QtMultimedia ffmpeg problems

So i've waited until the full stable release of QT6.5 as instructed by many people from previous posts. I'm still facing the same issues. playing rtsp video is still not working. MediaPlayer status gives me "invalid media" and errorstring gives me…
sethsource
  • 185
  • 9
0
votes
1 answer

Capturing window Qt 6.5

Qt 6.5 introduced ScreenCapture class which should record a screen. Check an example I've tried the following: ApplicationWindow { id: root MouseArea { id: recording anchors.fill: parent property bool inProcess: false onClicked:…
excommunicado
  • 287
  • 1
  • 10
0
votes
0 answers

QT6 : "Attempted to call isFormatSupported() without a window set"

I'm trying to setup a very basic QVideoWidget in QT6 (6.4.0 to be precise), and i've managed to get it working but I keep getting this annoying warning message and i'm not sure why or what's causing it. I cannot find anything about this online You…
NightShade
  • 422
  • 5
  • 19
0
votes
0 answers

How to set background music in Qt Creator 9.0.2 - C++?

I have Qt Creator 9.0.2 and I want to add background music to my little project (game). I've added QT += multimedia I tried following: QMediaPlayer* background_music = new QMediaPlayer(); background_music->setMedia(QUrl(..) // there is no…
0
votes
0 answers

Qt 5.15 QML MediaPlayer Segmentation Fault on i.MX6ULL

I am trying to embed video in a Qt 5.15 QML (Qt Quick) project running on an i.MX6ULL embedded processor (no GPU), however any inclusion of the Video (or MediaPlayer) components immediately results in the application exiting with a Segmentation…
Dane
  • 121
  • 6
0
votes
0 answers

QT Visual Studio how to include QMediaPlayer and QMediaPlayList

I need QMediaPlayer and QMediaPlayList in a c++ qt project. Environment is Visual Studio 2022 with qt visual studio tools. I have added the Qt6Multimedia.lib from the msvc2019_64/lib folder to the project. How do I find out what the correct include…
user2377283
  • 365
  • 1
  • 2
  • 12
0
votes
1 answer

Check if a audio format of a given file is supported in Qt6

There have been many changes in QtMultimedia between Qt5 and Qt6. With QMediaFormat::supportedAudioCodecs, we get a list of QMediaFormat::AudioCodec supported by the system. Now we should get the QMediaFormat::AudioCodec that is used by a given…
Pamputt
  • 173
  • 1
  • 11
0
votes
1 answer

QT6 QTMultimedia FFMPEG backend preview procedure

I'm needing to display RTSP footage through a QML application. I have code written for this that works perfectly on Linux, simply because QT ships with a gstreamer backend on linux straight out of the box. On Windows this is a different story.…
sethsource
  • 185
  • 9
0
votes
0 answers

How can I add a recorder to record from video sink in QML

So I created a video sink in C++ that is displayed in qml thanks to the following link : How to use QVideoSink in QML in Qt6 It works perfectly. Now I'm trying to use the MediaRecorder to record those images and save it, but I have no idea what to…
asdfasdf
  • 774
  • 11
  • 29