Camera doesn't work in embeded tab

More
25 Jun 2021 12:27 - 25 Jun 2021 12:39 #212896 by BigDo
hello guys i'm trying to integrate my camera in an embeded tab but it doesn't work properly

i am on Axis 2.9.0 pre
linux kernel 4.19.0-16-rt-amd64

this is my configuration:
EMBED_TAB_NAME = Camera
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND = mpv /dev/video0 --wid {XID} --vf-add=drawbox=-1:2:-1:240:t=1 --vf-add=drawbox=2:-1:240:-1::t=1 --no-border


without parameter --wid {XID} it works fine but not embeded.
does someone know what is wrong with this --wid {XID} parameter?
Last edit: 25 Jun 2021 12:39 by BigDo.

Please Log in or Create an account to join the conversation.

More
28 Jun 2021 15:42 - 28 Jun 2021 15:47 #213153 by andypugh
I wonder if it is getting a valid XID in {XID}
Is your camera command in the POSTGUI file? It won't be able to embed it in Axis if Axis isn't loaded at the time.


Assuming that you are using code in the [DISPLAY] section then Axis should load it. 

But, the docs seem to suggest -x {XID} not -wid {XID}. Where did you get -wid from? Presumably the mpv (what is that?) docs. 
 
Last edit: 28 Jun 2021 15:47 by andypugh.

Please Log in or Create an account to join the conversation.

More
28 Jun 2021 15:56 #213154 by andypugh
I wonder where {XID} substitution occurs? And whether it is working properly.

Maybe try --wid={XID} and even --wid=3 (I doubt that _guessing_ a window ID is a good long-term solution)

Please Log in or Create an account to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum