Message format for signal gate node

Choubey, Gaurav 6 Reputation points
2021-05-08T06:25:35.307+00:00

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
Azure IoT
A category of Azure services for internet of things devices.
399 questions
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
574 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,666 Reputation points Microsoft Employee
    2021-05-10T16:02:00.993+00:00

    Hello @Choubey, Gaurav ,
    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:

    1. 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."

    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

    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.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.