Textoverlay plugin in a video after nvcompositor

Hello. I am using nvcompositor and I have questions.

How do I use the textoverlay plugin in a video after nvcompositor.

(sensor-id = 0 and sensor-id = 1) —> nvcompositor —> textoverlay —> nvoverlaysink.

I ran this pipeline:

nvarguscamerasrc sensor-id=0 sensor-mode=2 ! nvvidconv ! textoverlay text=“sensor-id=0” ! nvvidconv ! queue ! comp. nvarguscamerasrc sensor-id=1 sensor-mode=2 ! nvvidconv ! textoverlay text=“sensor-id=1” ! nvvidconv ! queue ! comp. nvarguscamerasrc sensor-id=2 sensor-mode=2 ! nvvidconv ! textoverlay text=“sensor-id=2” ! nvvidconv ! queue ! comp. nvarguscamerasrc sensor-id=3 sensor-mode=2 ! nvvidconv ! textoverlay text=“sensor-id=3” ! nvvidconv ! queue ! comp. v4l2src device=“/dev/video12” ! “video/x-raw, width=1280, height=720, format=(string)YUY2, framerate=30/1” ! nvvidconv ! comp. v4l2src device=“/dev/video13” ! “video/x-raw, width=1280, height=720, format=(string)YUY2, framerate=30/1” ! nvvidconv ! queue ! comp. v4l2src device=/dev/video4 norm=NTSC ! “video/x-raw, format=(string)YUY2, width=640, height=480” ! nvvidconv ! queue ! comp.

it works but how to overlay text not in every video stream but in one after nvcompositor?

Hi,
Please refer to

$ gst-launch-1.0 nvcompositor name=mix sink_0::xpos=0 sink_0::ypos=0 sink_1::xpos=0 sink_1::ypos=240  ! 'video/x-raw(memory:NVMM)' ! nvvidconv ! video/x-raw ! textoverlay text="hello" ! nvvidconv ! 'video/x-raw(memory:NVMM)' ! nvoverlaysink videotestsrc ! nvvidconv ! mix.sink_0 videotestsrc ! nvvidconv ! mix.sink_1
1 Like

thanks!! its works.