Basic hailonet pipeline failing

I have written as bare minimum gstreamer pipeline to detect faces

gst-launch-1.0 \
        hailomuxer name=hmux filesrc location=output.mp4 name=src_0 ! \
        queue name=hailo_preprocess_q_0 leaky=no max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! \
        decodebin ! \
        videoconvert ! \
        videoscale qos=false ! \
        queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! \
        hailonet hef-path=/home/pi/hailo-ai/models/retinaface_mobilenet_v1.hef ! \
        queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! \
        hailofilter so-path=/usr/lib/aarch64-linux-gnu/post_processes/libface_detection_post.so name=face_detection_hailofilter qos=false function_name=retinaface ! \
        queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! \
        hailooverlay name=hailo_overlay qos=false show-confidence=false line-thickness=5 font-thickness=2 !\
        autovideosink

Any clue why does it fail/getstuck with following output

Setting pipeline to PAUSED ...
Config file doesn't exist, using default parameters
Pipeline is PREROLLING ...
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
HailoNet Error: gst_pad_push failed with status = -4

Hi @sanjoyg,
Try adding a videoconvert element before the autovideosink, it should work.
Besides that, the Hailomuxer might be unnecessary at this time. You can find more information about the Hailomuxer here, and an example piplene using Hailomuxer here

1 Like

Thank you, adding the videoconvert made it work.

1 Like