question

ChoubeyGaurav-6238 avatar image
0 Votes"
ChoubeyGaurav-6238 asked asergaz edited

Message format for signal gate node

Hi everyone,
I have scenario where i need to store the video based particular event. So i planned to used signal gate node.
from example, its start storing the video when motion detect , but did not give more detail about what message send to signal gate nodes.
As per theory need to send some event message to gate node in order activate and i want to send the that event message from my inference AI module which is implemented as http extension.
I have two question as

  1. I am planning to add this event message in inference message and send to signal gate node as well as iot hub sink, signal gate node get trigger and start storing video, what is format of event message for signal gate node

  2. i have different situation for start recording and stop recording, but with gate node , i can start video recording and but dont have control over stop recording, so how do I achieve it ?

Please anyone know answer ,let me know

Thanks in advance






azure-iot-edgeazure-iot
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

asergaz avatar image
0 Votes"
asergaz answered asergaz edited

Hello @ChoubeyGaurav-6238 ,
Could you please confirm that you are following this How-To Guide?

On that how-to guide you can see the answer to your second question, you can define the duration of the recording:

i have different situation for start recording and stop recording, but with gate node , i can start video recording and but dont have control over stop recording, so how do I achieve it ?

"When it's triggered, the gate opens and lets media flow through for a specified duration. In the absence of events to trigger the gate, the gate closes, and media stops flowing."

I am planning to add this event message in inference message and send to signal gate node as well as iot hub sink, signal gate node get trigger and start storing video, what is format of event message for signal gate node

For that you would need to define Media graph topologies and instances:

"A graph topology enables you to define the blueprint of a graph, with parameters as placeholders for values. The topology defines what nodes are used in the media graph, and how they are connected within the media graph."

See for example Video recording based on events from other sources - The JSON representation of the graph topology below can be seen here: https://github.com/Azure/live-video-analytics/blob/master/MediaGraph/topologies/evr-hubMessage-files/topology.json

95289-image.png

Hope I could help.

Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.




image.png (7.7 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
Thanks for reply.
I have gone through the mentioned document as well as quick start guide and designed and created their instance.

As per my question, I need to send some event message to trigger signal gate node but i want to know about message format which trigger to gate node to start recording

As per your answer, i need to keep sending message to gate node in order recording continuously and as soon as i stopped sending message ,recording will stop

Do i understood correctly ?
please clarify me

1 Vote 1 ·
asergaz avatar image asergaz ChoubeyGaurav-6238 ·

Hi @ChoubeyGaurav-6238

Let me research internally if there is any alternative for continuously record and if we have an example of message format.

Thanks

1 Vote 1 ·

hey , i tried to given feed directly from http extension module to signal gate node as inference data and getting generated event based recording but facing issue that it seem media connection establishing again and again. That mean video get restarted after 30-40 sec and storing the same again.

I used two asset sink one for continuous recording and other for event based.
But when used for continuous recording, its work fine and stored properly.
when i tried with both , media established multiple time and video unable started over again.

DO you know why is it happening?

0 Votes 0 ·
Show more comments