How to implement screenshot in Deepstream?

I want to realize an automatic screenshot function in deepstream. Can you only modify the configuration file to achieve the related function?

No. But you can try to add some code by refering the deepstream_image_meta_test.c code pgie_src_pad_buffer_probe to save the picture when you want to do screenshot.

Can you provide more details,please?I’m not very good at C++.

First, you need to know some basic knowledge about Gstreamer.
Then you need to know some basic knowledge of DeepStream.
The API I attached is the process to save picture to jpeg format.


Also, you can refer our python code: