Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2935

Python 3.12.3: PySide6s ffmpeg multimedia backend fails to load on Windows 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 6.8.0.2
    • PySide
    • None
    • Windows

    Description

      I'm on Windows 10 Pro, running Python 3.12.3 and have installed PySide6 in a virtual environment and tried to use a QMediaPlayer to play a mediafile, which fails with the following being written in the console:

      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"

      After doing a lot of trial and error I discovered that the following makes the ffmpeg backend work correctly:

      os.add_dll_directory(sysconfig.get_path('purelib') + '/PySide6/')

      I would expect that PySide6 would do that for me...

      I have attached a test python script.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            tgc Tomas Groth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes