I am trying to draw some shapes on top of the video output from sample_test1 source code.
I thought of using cairo overlayhttps://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-cairooverlay.html Gstreamer plugin to do this.
Following the example provided herehttps://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/cairo/cairo_overlay.c, I tried adding the overlay (and the adaptors) between the nvosd and the sink.
However after adding the plugin, the video doesn’t come up and after running the for a couple of seconds the program stops.
What am I doing wrong here? Are there any other options to do this?