AnsweredAssumed Answered

Video capture with Analog Camera on mx6 SABRE AI card

Question asked by boubkerbouzid on May 24, 2013
Latest reply on Jun 2, 2013 by Qiang Li - Mpu Se
Branched to a new discussion

Hi all

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

modprobe adv7180_tvin

modprobe mxc_v4l2_capture


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!