Custom REST API requests handling for nvmultiurisrcbin

• GPU
• DeepStream 8.0
580.95.05
• Questions

Is it possible to add probe on nvmultiurisrcbin for handling REST API requests? If so, how do I do it on Python?

Do you mean you want to add probe on the src pad of nvmultiurisrcbin?

I wanted to access the request content. For instance, if I get the following request for the built-in REST server:
{
“key”: “sensor”,
“value”: {
“camera_id”: “uniqueSensorID1”,
“camera_name”: “front_door”,
“camera_url”: “file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4”,
“change”: “camera_add”,
“metadata”: {
“resolution”: “1920 x1080”,
“codec”: “h264”,
“framerate”: 30
}
},
“headers”: {
“source”: “vst”,
“created_at”: “2021-06-01T14:34:13.417Z”
}
}
I want to be able to access metadata and camera_id inside of probe.

The metadata is always available in the pipeline. It has nothing to do with the REST request/response. I don’t understand your purpose.

I need to access the request data before adding/removing new source, because I need to synchronize internal variables with DeepStream pipeline.

The REST API is implemented inside nvmultiurisrcbin, it is open source. You may customized the API if needed.

You can find the source code in /opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvmultiurisrcbin.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.