Re: Corrupt images, when capturing images from multiple cameras using the V4L2 driver

2014-09-08 Thread Alaganraj
Hi Karel, On Friday 05 September 2014 06:09 PM, Mácha, Karel wrote: > Hello Alaganraj, > > thank you very much for your reply and your tips. I tried to improve my > code as you suggested and also implemented several other things, which > should improve the result. > > I set the cameras to 15fps usi

Re: Corrupt images, when capturing images from multiple cameras using the V4L2 driver

2014-09-05 Thread Mácha , Karel
Hello Alaganraj, thank you very much for your reply and your tips. I tried to improve my code as you suggested and also implemented several other things, which should improve the result. I set the cameras to 15fps using VIDIOC_S_PARM. This reduces the frequency of corrupt images. I zero fill any

Re: Corrupt images, when capturing images from multiple cameras using the V4L2 driver

2014-09-04 Thread Alaganraj Sandhanam
Hi Karel, I suggest you to zero fill v4l2 structures before assign values also check the return value of all ioctl call. for example, struct v4l2_format fmt; memset(&fmt, 0, sizeof fmt); fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fmt.fmt.pix.width = xRes; ret = ioctl(fd, VIDIOC_

Corrupt images, when capturing images from multiple cameras using the V4L2 driver

2014-09-02 Thread Mácha , Karel
Hello, I would like to grab images from multiple cameras under using the V4L2 API. I followed the presentation under found on http://linuxtv.org/downloads/presentations/summit_jun_2010/20100206-fosdem.pdf used the code and adapted it sightly for my purpose. It works very well for 1 camera. Howe