AnsweredAssumed Answered

video0 and video17 open in one process.

Question asked by 飞 梁 on Jun 3, 2015
Latest reply on Jun 20, 2016 by Yuri Muhin

I want to open /dev/video0 for capture and open /dev/video17 for ipu in one process.but the camera buf DQBUF fail.

---------------------------------------

part of my code:

    //ipu strean on

    int ipu_type = V4L2_BUF_TYPE_VIDEO_OUTPUT;

    if(ioctl(ipu_fd,VIDIOC_STREAMON,&ipu_type) < 0){

            perror("ipu STREAMON");

            exit(1);

    }

    type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

    if(ioctl(cap_fd,VIDIOC_STREAMON,&type) < 0){

        perror("capture ioctl STREAMON");

        exit(1);

    }

        cap_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

        cap_buf.memory = V4L2_MEMORY_MMAP;

        if(ioctl(cap_fd,VIDIOC_DQBUF,&cap_buf) < 0){

            perror("cap DQBUF");

            exit(1);

        }

------------------------------------------------------------------------------

the error:

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00100000

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_9 = 0x04000000

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_9 = 0x04000000

ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0

Outcomes