How can I customize the output msg and image/video from gst-nvinfer?

Question 1:

For example, if the Primary GIE has detected a car in the frame, how can I send a message(like bbox etc.) with a encoded jpeg to a server? I guess it can be done by NvDsBatchMeta with nvmsgconv?

Question 2:

How can we save the part of video when a car was detected by Primary GIE, and send to a server with a message attached?



1. You can design your own metadata message.
Please check this sample for the information:

2. Are you trying to save the output of Deepstream into a video?
If yes, you can just update the sink component with type=3.