imx8mp simultaneous video access

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

imx8mp simultaneous video access

688 Views
malik_cisse
Senior Contributor I

Hi,

Video does show up correctly on /dev/video0 node and I can access it normally. However I want to access video in  different process.

Doing that a resource conflict occurs saying one cannot open /dev/video0 twice.

There is a tool called "v4l2loopback" that seemed promising but this did not help much in the end.

Any idea how this can be achieved?

BR, MC 

0 Kudos
5 Replies

661 Views
malik_cisse
Senior Contributor I

In my application, I preview camera on an LCD screen.

Upon request, I capture single snapshot images or stream a video over network.

In order to capture single snapshot images or stream a video over network I need to stop camera preview on LCD screen first.

I would like to continue to preview camera on an LCD screen while doing snapshot or streaming.

This is not possible in my current QT application.

BR, MC

0 Kudos

651 Views
joanxie
NXP TechSupport
NXP TechSupport

how do you stop the camera? if you don't release the camera totally, should show the error that you couldn't open it twice

0 Kudos

643 Views
malik_cisse
Senior Contributor I

>>if you don't release the camera totally, should show the error that you couldn't open it twice

yes, this is why I need to unload (really stop) the camera in QT before I can do snapshots.

However the whole process takes way too long and display is not showing camera preview during this time.

This is the reason, why I try to find a way to access to images in 2 different threads.

0 Kudos

593 Views
joanxie
NXP TechSupport
NXP TechSupport

yes, you couldn't access one device in the same time

0 Kudos

668 Views
joanxie
NXP TechSupport
NXP TechSupport

"However I want to access video in different process."

> what do you mean?

could you give me detailed information of your operation

0 Kudos