Dual Camera capturing in IMX.6 Quad (or) Dual with Linux

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

Dual Camera capturing in IMX.6 Quad (or) Dual with Linux

Jump to solution
1,740 Views
ivyliu
Contributor IV

Hi All,

I am now using Linux on sabre Quad board and want to get 2 camera captureing and displaying to 1 LCD at same time.

But I always get an IRQ handler error

"imx-ipuv3 2400000.ipu: handler already installed on irq 0".

It looks that the Linux code does not support for 2 video streams now.

Does anyone have patch to make it work?

Thank you very much!

Best Regards,

Ivy

1 Solution
969 Views
fabio_estevam
NXP Employee
NXP Employee

There is a patch from Rogerio Pimentel to enable dual camera:

i.mx6:two camera work at the same time

Regards,

Fabio Estevam

View solution in original post

7 Replies
970 Views
fabio_estevam
NXP Employee
NXP Employee

There is a patch from Rogerio Pimentel to enable dual camera:

i.mx6:two camera work at the same time

Regards,

Fabio Estevam

969 Views
ivyliu
Contributor IV

Hi Fabio,

Thank you very much for your prompt reply!

This patch works!

Do you know is there any code for supporting two output to save LCD?

Thank you very much!

Best Regards,

Ivy

0 Kudos
969 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Ivy,

Sorry, I don't understand what you meant by "is there any code for supporting two output to save LCD?"

Regards,

Fabio Estevam

0 Kudos
969 Views
ivyliu
Contributor IV

Hi Fabio,

Sorry for the unclear question.

What I want to say is that I want to display 2 cameras' image to same LCD.

I did a test on my Sabre Quad board which have 2 cameras and 1 LCD.

I use commands below to output video0 to FG and video1 to BG
#gst-launch-0.10 imxv4l2src device=/dev/video0 capture-mode=0 ! imxv4l2sink device=/dev/video17 disp-width=320 disp-height=240 axis-top=320

#gst-launch-0.10 imxv4l2src device=/dev/video1 capture-mode=0 ! imxv4l2sink device=/dev/video16 disp-width=320 disp-height=240

It does work. But the Back ground keeps flashing.

I wonder is there a way to make Back ground not flashing?

And is there any other way to make this "2 cameras output to same LCD" work, like overlay?

Thank you very much!

Best Regards,

Ivy

0 Kudos
969 Views
rogerio_silva
NXP Employee
NXP Employee

Hi Ivy,

I also have seen this flickering and the R&D explanation is that it happens because the source power for the 2 cameras are connected together and doesn't provide enough current. You can check if there is some kind of flickering on camera VDD.

Rgds

Rogerio

0 Kudos
969 Views
ivyliu
Contributor IV

Hi Fabio and Rogerio,

Thank you very much for your help.

Best Regards,

Ivy

969 Views
fabio_estevam
NXP Employee
NXP Employee

I think rogeriopimentel​ used the overlay unit tests to show the two cameras.

Regards,

Fabio Estevam

0 Kudos