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
4
votes
0 answers

recording video to file with QML

I am using the Qt Multimedia framework and I can display video on my window just fine using QML and the Camera module as follows: ControlView { id: recorderWindow color: "#000000" border.width: 5 Camera { id: camera …
Luca
  • 10,458
  • 24
  • 107
  • 234
4
votes
3 answers

QAudioDecoder - no service found

I am trying to decode a .wav file using QAudioDecoder class. Even though I had included the QtMultimedia module into my .pro file by adding QT += multimedia I am receiving an error that service for the QAudioDecoder was not found. I am not able to…
4
votes
2 answers

Fullscreen mode for a video

I have a video output embedded in a QML view. It is working fine, but I want to make that video output go fullscreen when I click on it. Every time, some images that are in the view (some sibiling, and some not) are visible on top of my video. In…
lolo.io
  • 770
  • 5
  • 22
4
votes
2 answers

How to play video with qt5

I'm trying to make a simple videoplayer using qt. However, I can't get the videowidget example that comes with qt to work, instead I get an error: "The QMediaPlayer object does not have a valid service". I'm using windows vista. Can I get the videos…
user2942080
  • 105
  • 1
  • 5
3
votes
1 answer

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 no GUI or widgets whatsoever, console only. I've…
Aaron Czajka
  • 147
  • 2
  • 10
3
votes
2 answers

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: ModuleNotFoundError: No module named 'PyQt5.QtMultimedia'. I am…
Romain Legrand
  • 107
  • 1
  • 7
3
votes
0 answers

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 failed to load…
RoboDoig
  • 51
  • 6
3
votes
1 answer

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, but not on Linux. My setup is as…
Dmitry Orlov
  • 454
  • 6
  • 14
3
votes
3 answers

Get file name from an opened file, not a file path

Let's say I opened a file called file1.mp3 in a PyQt5 app using the file dialog and assigned it to a variable like this: song = QFileDialog.getOpenFileName(self, "Open Song", "~", "Sound Files (*.mp3 *.ogg *.wav *.m4a)") print(song[0]) url =…
chaNcharge
  • 239
  • 1
  • 2
  • 12
3
votes
0 answers

Two QML Video elements work fine on desktop but not on Android

We want to have multiple simultaneous video playbacks in our application. This example below runs fine on Mac but on Android, I see only video in the left QML Video element. I notice, from the signals, that both players enter the PlayingState. I…
Marc Van Daele
  • 2,856
  • 1
  • 26
  • 52
3
votes
1 answer

QMediaPlayer doesn't play anything on Ubuntu 16.04 / Qt 5.6

I'm using the official Qt 5.6 SDK on Ubuntu 16.04 and when I try to play an mp3 file I just get: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" The code is as simple as it…
juzzlin
  • 45,029
  • 5
  • 38
  • 50
3
votes
0 answers

Can't get my video played with Qt Multimedia and gstreamer

I've just installed gstreamer on my Debian Jessie linux. I actually plan to use it within QtMultimedia framework. And though I'm familiar with vlc...I'm new in gstreamer's world. I tried to run the following very basic qml program: Window { …
Zyend
  • 572
  • 1
  • 4
  • 24
3
votes
1 answer

QSoundEffect always loading status in Qt 5.4

Following code isn't working. QSoundEffect::status always return QSoundEffect::Loading and QSoundEffect::isLoaded return false. QFile file("file.wav"); file.open(QIODevice::ReadWrite); QByteArray data = file.readAll(); file.close(); QSoundEffect…
Akapulka
  • 63
  • 6
3
votes
1 answer

Qt 5.4 QML VideoOutput not working on iOS

I'm trying to play a video with sound in an iOS application with Qt or Qml. My environment is : Qt 5.4 OSX Yosemite 10.10.2 iPad 2 (iOS 8.3) and Iphone6+ (iOS 8.3) Test code (QML version): import QtQuick 2.4 import QtMultimedia 5.0 …
Yannick
  • 31
  • 3
3
votes
0 answers

Qt MediaPlayer send additional HTTP headers in source urls in QML?

I'm trying to do a video player in Qt and I'm using for that a MediaPlayer QML type. My problem is that the backend server providing the video requires additional custom http headers for handshaking. I'm testing with a very simple example: import…
mortadelo
  • 145
  • 1
  • 11
1
2
3
15 16