video0 and video17 open in one process.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

video0 and video17 open in one process.

1,027 Views
knight
Contributor I

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

Labels (4)
0 Kudos
Reply
2 Replies

589 Views
Yuri
NXP Employee
NXP Employee

Hello,

please refer to the following

https://community.nxp.com/thread/274730#comment-322666

Regards,

Yuri.

0 Kudos
Reply

589 Views
joanxie
NXP TechSupport
NXP TechSupport

what do you mean"I want to open /dev/video0 for capture and open /dev/video17 for ipu"?

did you use FSL code to do the process? any error message?

0 Kudos
Reply