I’m using an imx8mp on a variscite dart board and a basler camera and I’m trying to display a full graphic overlay on top of the video. When I use the overlay on the video with the imxcompositor_g2d the framerate drops significantly. This issue can be seen with the following 2 commands.
gst-launch-1.0 imxcompositor_g2d background=3 name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::keep-ratio=true sink_1::xpos=160 sink_1::ypos=120 ! waylandsink sync=true v4l2src device=/dev/video2 ! video/x-raw, width=320, height=240, framerate=60/1 ! queue ! comp.sink_0 videotestsrc ! video/x-raw,format=BGRA,width=320,height=240 ! queue ! comp.sink_1
The previous command creates a testsrc over the video and the framerate is 60fps which is desired but when I increase the size of the testsrc in the following command the framerate drops:
gst-launch-1.0 imxcompositor_g2d background=3 name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::keep-ratio=true sink_1::xpos=160 sink_1::ypos=120 ! waylandsink sync=true v4l2src device=/dev/video2 ! video/x-raw, width=1920, height=1080, framerate=60/1 ! queue ! comp.sink_0 videotestsrc ! video/x-raw,format=BGRA,
width=1920,height=1080
! queue ! comp.sink_1
Is there any way to display a full graphic overlay over the video without making the frameate drop?