Hello all,

             I’ve been tinkering around with the encode H264 demos, and I was wondering if there was a way in V4L2 to find out if any frames were dropped on the input side?

I’ve been looking at using VIDIOC_G_PERF with ioctl, but that’s not supported anymore,

 

So after the

       

       CLEAR(v4l2buf);

        v4l2buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

        v4l2buf.memory = V4L2_MEMORY_MMAP;

 

        /* Get a frame buffer with captured data */

        if (ioctl(inputFd, VIDIOC_DQBUF, &v4l2buf) == -1) {

            if (errno == EAGAIN) {

                continue;

            }

 

            ERR("VIDIOC_DQBUF failed (%s)\n", strerror(errno));

            breakLoop(THREAD_FAILURE);

        }

 

Call, I tried printing out v4l2buf.timestamp, or the v4l2buf.timecode.tvsecs, v4l2buf.sequence and all show 0!

 

Is there a way around this or a solution to my problem?

 

Thank you

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to