Projet C IG (1A)

IHM (2A)


VR/AR/Post-WIMP (3A)


Projet image (2A)


HCI (MoSIG 2)


Test Logiciel


Projects Docs

Video acquisition with Video For Linux 2 (V4L2)

Prerequisistes

Follow the instructions for "Getting the libraries and sample code" and "Install dependencies and environment variables" on the Optitrack examples page.

Check that the video device exists on your system and that it has read/write access for all users. If it is not the case, become root and set the permissions. For example:

 ls -l /dev/video0
 (become root)
 chmod a+rw /dev/video0

Compiling the examples

Go to the v4l2 example directory, create a build directory, go to this directory

 cd public/examples/v4l2
 mkdir x11
 cd x11

Execute cmake (or "cmake28": version 2.8 minimum is required) to generate the makefile, then make to build the 2 examples.

 cmake28 ..
 make

Execute either executable

 ./capture_to_file
 ./osg_display
Edit - History - Upload - Print - Recent Changes - Search
Page last modified on November 20, 2014, at 10:38 AM