Is there a plugin that do the same thing with clockoverlay

Hi all.
Is there a plugin that do the same thing with clockoverlay.
Now If I want to use the clockoverlay, I have to add two nvvideoconvert. And the clockoverlay costs over 10 ms on TX2,it’s unacceptable.

nvvideoconvert ! "video/x-raw,format=I420" ! clockoverlay ! nvvideoconvert ! "video/x-raw(memory:NVMM),format=I420" !

Some functions are implemented in nvdsosd plugin. Please check Development Guide

Hi DaneLLL.

When I set the display-clock of nvdsosd to 1, I got a time info like “1970-01-01 00:00:00”,How can I change it to “1970-01-01 00:00:00.000” , I also want to add latitude 、longitude and speed on the video frame,and do not want to add the bounding boxes on the video frame.

another nvdsosd plugin downstream will be usd to overlay the bounding boxes on the video frame.

The existing implementation may not precisely fit your usecase. You may try NvOSD APIs defined in
Demonstration of using the APIs is in
Please look at README and give it a try.

Hi, DaneLLL.
Is there any examples for the api?
With the code as bellow. I can find the text on the frame, but can’t found any rectangle…

NvOSD_TextParams text_params;
NvOSD_FrameTextParams frame_text_params;
frame_text_params.buf_ptr = surface->surfaceList;
frame_text_params.num_strings = 1;
text_params.display_text = text;
text_params.x_offset = left;
text_params.y_offset = top - 10;
text_params.set_bg_clr = 1;
text_params.text_bg_clr = (NvOSD_ColorParams)
	0, 0, 0, 1
text_params.font_params.font_name = g_strdup("Serif");
text_params.font_params.font_size = 11;
text_params.font_params.font_color = (NvOSD_ColorParams)
	1, 1, 1, 1
frame_text_params.text_params_list = &text_params;
if(nvll_osd_put_text(dsexample->nvosd_ctx, &frame_text_params))
    printf("failure to draw text");

NvOSD_RectParams rect_params;
NvOSD_FrameRectParams frame_rect_params;
frame_rect_params.buf_ptr = surface->surfaceList;
frame_rect_params.num_rects = 1;
rect_params.left = left; = top;
rect_params.width = width;
rect_params.height = height;
rect_params.has_bg_color = 0;
rect_params.bg_color = (NvOSD_ColorParams)
	0, 0, 0, 1
rect_params.border_width = 10;
rect_params.border_color = (NvOSD_ColorParams)
	1, 0, 0, 1
frame_rect_params.rect_params_list = &rect_params;
if(nvll_osd_draw_rectangles(dsexample->nvosd_ctx, &frame_rect_params))
    printf("failure to draw rectangle");

Please set NvOSD_Mode to MODE_HW and try again.


I had got a deadlock. and must reboot to run the piplepline:
v4l2src -> videoconvert -> nvvideoconvert -> nvoverlaysink

Please enable dsexample by referring to:


And share a patch that we can apply to gstdsexample.cpp to reproduce the deadlock.