This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

v4l2 capture example for video live streaming

Hi all,

    I have modified the capture-example available at  http://v4l2spec.bytesex.org/spec/capture-example.html and I could do a single frame garb with it. For a sensor that outputs 30fps, it should take roughly 33ms to grab the frame. However, it is taking about 300ms. I have probed the vsync on the oscilloscope and it is showing 30Hz. I saw that VIDIOC_STREAMON/ VIDIOC_STREAMOFF ioctls start and stop the hardware and video singnal. I thought, this is the reason it is taking more time than normal. Has any one used this example to stream live video and still grab a frame whenever you want it and in reasonable amount of time.

Cheers