Gstreamer user defined stream ID

once running in on multi-stream application it is required to be able to distinguish between frames coming from different sources.
In order to accomplish the above a user stream id can be assign to each stream.

it can be done by adding an ‘hailofilter’ element to any relevant source stream.
for example:

gst-launch-1.0 filesrc location=apps/h8/gstreamer/general/face_recognition/resources/face_recognition.mp4 name=src_0 ! qtdemux ! h264parse ! avdec_h264 ! queue name=hailo_pre_id_0 leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailofilter name=set_id_0 so-path=apps/h8/gstreamer/libs/post_processes/libstream_id_tool.so function-name=set_stream_id config-path=test_0 qos=false ! ...

so-path: set with the libstream_id_tool.so path, this lib file handles the stream_id assignment.
function-name: libstream_id_tool includes 2 functions, set_stream_id (default) which assign the stream id, and print_stream_id which prints the stream id to the terminal.
config-path: the requested stream name