imx8mp simultaneous video access

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx8mp simultaneous video access

1,125 次查看
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 项奖励
回复
5 回复数

1,098 次查看
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 项奖励
回复

1,088 次查看
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 项奖励
回复

1,080 次查看
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 项奖励
回复

1,030 次查看
joanxie
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

1,105 次查看
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 项奖励
回复