Xenoshell
Posts: 7
Joined: Wed Nov 29, 2017 12:56 pm

vainfo returns error. What driver do i need?

Wed Jan 03, 2018 8:34 am

Hello,
i am trying to get a usb-camera working on my raspberry pi3 with ubuntu mate.
I already have the basic stuff of gstreamer installed.
The output of the command

Code: Select all

vainfo
is:

Code: Select all

[email protected]:~$ vainfo
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/vc4_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
The file vc4_drv_video.so doesnt exist in this folder. What do in need to install to get this file?

Greets

Xeno

PS: Also if i am in the wrong subforum im sorry and just push this topic somewhere else

User avatar
topguy
Posts: 4848
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: vainfo returns error. What driver do i need?

Wed Jan 03, 2018 9:37 am

Afaik VAAPI is a accellerated API for playing Video developed by intel. So I dont think there exist a VC4 driver for it. ( I might be wrong )
Also I dont think VAAPI is relevant for getting a usb-camera to work.
You should maybe look at https://www.mankier.com/1/v4l2-ctl instead.

Xenoshell
Posts: 7
Joined: Wed Nov 29, 2017 12:56 pm

Re: vainfo returns error. What driver do i need?

Wed Jan 03, 2018 11:55 am

What am i supposed to do with this? Its a tool to control video4linux drivers.
I am using the camera in a GUI built with Qt5 so i dont know if and how i could use it.
I try to get the camera to show up but till now it just a black screen

User avatar
topguy
Posts: 4848
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: vainfo returns error. What driver do i need?

Wed Jan 03, 2018 12:17 pm

What were you expecting to use "vainfo" for ?

QtMultimedia either uses V4L2 driver directly or via gstreamer. So if you are unsure if your camera is detected properly/correclty then investigating the V4L2 driver seemed like a good place to start.

There is of course a lot of other software to test with ( https://wiki.archlinux.org/index.php/we ... our_webcam ) to either verify that your camera is correctly installed or working.

Just looking to see if you have "/dev/video0" present should tell you that the camera is detected and no additional drivers should be needed.

ghans
Posts: 7791
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: vainfo returns error. What driver do i need?

Wed Jan 03, 2018 12:31 pm

You should look into V4L2 instead of VAAPI. VAAPI is the wrong address if you want to play around with cameras/video input devices.

Code: Select all

sudo apt-get install qv4l2
QV4L2 is a nice app to play around with/test cameras (written with Qt !). If you want to use the offcial camera module don't forget to load its official driver, too.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “General discussion”

Who is online

Users browsing this forum: allfox, Jim JKla, LTolledo and 84 guests