Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QVideoWidget shows QMediaPlayer(The playing media) as green screen

QVideoWidget shows QMediaPlayer(The playing media) as green screen

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.1k Views
  • 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.
  • D Offline
    D Offline
    denko
    wrote on last edited by denko
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      denko
      wrote on last edited by denko
      #2

      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.

      1 Reply Last reply
      1

      • Login

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