How do I run multiple gstreamer pipeline in parallel?

In the gstreamer pipeline, you need to add a few more parameters to hailonet

hailonet hef-path=$hef_path $device_id_prop batch-size=$batch_size multi-process-service=true device-count=1 vdevice-key=1 !

Note that it requires Hailo-RT multi-process service to be running in the background. If you have installed Hailo-RT on a Ubuntu distribution, the debian installation package would have asked you if you wanted to install with Hailo-RT service. If you are installing using Yocto, please refer to: GStreamer parallel inference - #3 by lieberwirth

If you don’t want to use Hailo-RT multi-process service, there is also a way to run multiple gstreamer pipelines in parallel: you just need to add device-count=1 vdevice-key=1 to the options of hailonet and run all the gstreamer pipelines under the same gst-launch-1.0 command. Note that since these pipelines are independent from each other, there is no delimiter ‘!’ between them.

2 Likes

Hi, i try to run two gstreamer pipelines in parallel, i followed this article by adding **multi-process-service=true device-count=1 vdevice-key=1 parameters to hailonet element and i’m getting this error: gst_parse_error: no property “vdevice-key” in element “hailonet”. could you please suggest solution ?

Hi, in the latest version of hailonet vdevice-key is replaced with vdevice-group-id . You can run the command gst-inspect-1.0 hailonet to see the meaning of each field. The previous version of hailonet is still available and is renamed to synchailonet .

1 Like

Hi @user67, It works. Thanks !