QVideoWidget shows QMediaPlayer(The playing media) as green screen



  • I'm trying to play mp4 media in a Qt(5.10 Alpha) App which runs on a linux distro called deepin os version 15.4.1 x64(which is Debian based), everything it is right with the code cause it worked on Windows how I wanted to work. I tried installing codec packs like VLC and sudo apt-get install libavcodec-extra but still shows the green screen.

    Application output:

    libva info: VA-API version 0.39.4
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
    libva info: Found init function __vaDriverInit_0_39
    libva info: va_openDriver() returns 0
    libva info: VA-API version 0.39.4
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
    libva info: Found init function __vaDriverInit_0_39
    libva info: va_openDriver() returns 0
    libva info: VA-API version 0.39.4
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
    libva info: Found init function __vaDriverInit_0_39
    libva info: va_openDriver() returns 0
    
    ** (Infimovie:2902): CRITICAL **: gst_vaapi_window_x11_new_with_xid: assertion 'xid != None' failed
    

    Screenshot of playing media:
    alt text

    Sound works perfectly, what is wrong with the video?



  • According to this link: https://forum.qt.io/topic/63314/video-from-qt5-and-c-code-example-directly-failed/17 I removed gstreamer vaapi -> sudo apt remove gstreamer1.0-vaapi, and now everything works as It should. Problem solved.


Log in to reply
 

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