pyside6-deploy - QtMultimedia
Solved
Qt for Python
-
Hello,
I have an app with pyside6 and qml. This apps using qml multimedia features. When I run it from command below it works as expected.
python main.py
Then I deployed it by using pyside6-deploy. After I run the app, mediaplayer doesn't work. Also I am getting this output .
No QtMultimedia backends found. Only QMediaDevices, QAudioDevice, QSoundEffect, QAudioSink, and QAudioSource are available. Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" Failed to initialize QMediaPlayer "Not available" Failed to create QVideoSink "Not available" 2024-12-29 21:32:22,079 - INFO - Connecting to RabbitMQ... file:///D:/utility-sili-secure/deployment/deploy_main.dist/src/ui/views/SiliSecureWindow.qml:28:13: TypeError: Cannot read property 'width' of null 2024-12-29 21:32:23,928 - INFO - Connected to RabbitMQ. qml: Playing: rtsp://rtsp-server.silimind.com:8554/video/vid3.ts
I have added the qt multimedia module to the pysidedeploy.spec file like below.
# qt modules used. comma separated modules = QuickControls2,Gui,Network,Quick,Qml,Core,Multimedia # qt plugins used by the application plugins = qmltooling,platforms,tls,networkinformation,generic,platforms/darwin,accessiblebridge,iconengines,scenegraph,egldeviceintegrations,networkaccess,imageformats,platforminputcontexts,xcbglintegrations,platformthemes,mediaservice
Also, I have tried to add the QtMultimeda.pyd to tye pyside6 folder manually.
But it doesn't work also.What is the problem here?
O.S. : windows 11.
pyside version: pyside 6.72 and pyside 8.1.1 -