Odroid XU4 and webcamera

Hi,
I recently bought an Odroid XU4 and installed the latest Ubuntu mate16.04. I managed to successfully install and compile OF 0.9.8 linux armv7. The problem now is that in an app I use the ofVideoGraber to get the frames of a usb webcamera. Here is the code:

cam.listDevices();
cam.setDesiredFrameRate(30); 
cam.initGrabber(640,380);

This code works on windows and on other Ubuntu machines but not on Odroid XU4 because I get this error:


[notice ] ofGstVideoGrabber: Probing devices with udev…
[notice ] ofGstVideoGrabber: Found device :, getting capabilities…
[notice ] ofGstVideoGrabber: detected v4l2 device: decoder
[notice ] ofGstVideoGrabber: driver: MFC, version: 65536
[notice ] ofGstVideoGrabber: Capabilities: 0x04003003
[notice ] ofGstVideoGrabber: Found device :, getting capabilities…
[notice ] ofGstVideoGrabber: detected v4l2 device: encoder
[notice ] ofGstVideoGrabber: driver: MFC, version: 65536
[notice ] ofGstVideoGrabber: Capabilities: 0x04003003
[notice ] ofGstVideoGrabber: Found device 1415:2000, getting capabilities…
[notice ] ofGstVideoGrabber: detected v4l2 device: USB Camera-B4.09.24.1
[notice ] ofGstVideoGrabber: driver: ov534, version: 199272
[notice ] ofGstVideoGrabber: Capabilities: 0x85000001
libv4l2: error getting pixformat: Invalid argument
[ error ] ofGstUtils: setPipelineWithSink(): couldn’t create pipeline: could not link videoscale0 to ofappsink
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded

When I list the video devices (using list -l /dev/video*) I get video0 (the web camera), video6 and video7.

Do you have any idea how to solve this?

Thanks,

Yiannis

Hi there, did you have to do any extra steps to compile OF on the XU4? I’m getting the errors like described here: http://forum.odroid.com/viewtopic.php?p=94831&sid=0534208cf4b30a86d8898a78fb3cd73c#p94831

No, I just used Ubuntu 16.04 mate and follow the standard way (install_dependencies.sh, install_codecs.sh)

Yiannis