Force QMediaPlayer to disable hardware acceleration?



  • Hello,
    my application which has a QMediaPlayer trying to play a file, gives me the following output:

    libva info: VA-API version 0.39.2
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: va_openDriver() returns -1
    libva info: VA-API version 0.39.2
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i915_drv_video.so
    libva info: va_openDriver() returns -1
    libva info: VA-API version 0.39.2
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i915_drv_video.so
    libva info: va_openDriver() returns -1
    libva info: VA-API version 0.39.2
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: va_openDriver() returns -1
    Error: "Could not initialize supporting library."
    

    I'd guess this is because the system indeed doesn't support Video Acceleration. mpv plays the file without a hitch, and I found in its logs that it specifically disables hardware acceleration for this. I think this could be the solution too. Is there a way to do this? Thanks!


  • Lifetime Qt Champion

    Hi,

    AFAIK, not directly, you'll likely have to fiddle with the gstreamer plugin.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.