Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. pyside6-deploy - QtMultimedia
Forum Updated to NodeBB v4.3 + New Features

pyside6-deploy - QtMultimedia

Scheduled Pinned Locked Moved Solved Qt for Python
4 Posts 3 Posters 418 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CKurduC Offline
    CKurduC Offline
    CKurdu
    wrote on last edited by CKurdu
    #1

    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
    

    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

    You reap what you sow it

    1 Reply Last reply
    0
    • CKurduC Offline
      CKurduC Offline
      CKurdu
      wrote on last edited by
      #2

      solved the problem by adding multimedia to the plugins.

      You reap what you sow it

      SGaistS 1 Reply Last reply
      0
      • CKurduC CKurdu

        solved the problem by adding multimedia to the plugins.

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @CKurdu glad you found out and shared your findings.

        Please mark the thread as solved so other forum users may know a solution has been found :-)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Shyamnath
          wrote on last edited by
          #4

          multimedia should have automically been added to the plugins by the tool itself (atleast in 6.8.1 as i check with an example). So, if anyone stumbles upon this, please use the latest version of PySide6 and check.

          1 Reply Last reply
          0
          • CKurduC CKurdu has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved