videoPlayerExample not working on Ubuntu 16.04

I’ve just upgraded Ubuntu from 14.04 to 16.04, and I can’t get the OF videoPlayerExample to display video, neither on 0.9.0 nor 0.9.3 - I just get a green screen when I try to play a video.

This is the error I’m getting:

libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[notice ] ofGstUtils: Got context from element ‘vaapidecode’: gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;

I’ve managed to play videos via gstreamer command line tools, so gstreamer seems to be properly installed, and I’ve both the OF install scripts.

sometimes depending on the format you are using gstreamer has problems with the hardware acceleration module. you can uninstall it using:

sudo apt remove gstreamer1.0-vaapi
1 Like

Thanks @arturo - that fixed it. For reference I’m playing h264 encoded files in .mkv format

@arturo Thanks. Removing gstreamer1.0-vaapi also solved a “glfw-application is not responding” (memory?) error running the videoPlayerExample on Ubuntnu 20/OF 11.2.

1 Like