I'm working on the mx6 SABREAUTO card with an analog camera device.
Until now, I can watch the video stream by using mxc_v4l_tvin.out file which is in /unit_test folder.
I followed these steps : Setting up modules
I can see that modules are set correctly with lsmod command, and devices video0 and video1 appear in /dev folder.
So I can watch the video stream from my analog camera by using the following command :
./mxc_v4l2_tvin.out -ow 640 -oh 480 -ol 10 -ot 20 -f YU12
Now I wish recover my video stream in vlc for example, or in a C program using OpenCV.
But it doesn't work...
With VLC :
I did : vlc v4l2:///dev/video0 without succes, the screen stay black with vlc cone picture.
With my C program : (This program is correct and work very well with a USB webcam.)
I use : capture = cvCaptureFromCAM(0) to use /dev/video0, my program compile but doesn't work when I execute it.
Same problem with capture = cvCaptureFromCAM(-1), the system can't find my device.
Do I something wrong or forgot a step?
Thanks for your help!