imx8mp simultaneous video access

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8mp simultaneous video access

1,069件の閲覧回数
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,042件の閲覧回数
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,032件の閲覧回数
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,024件の閲覧回数
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 件の賞賛
返信

974件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

1,049件の閲覧回数
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 件の賞賛
返信