I want to take A screenshot from the original video

in deepstream5.0
I want to take A screenshot from the original video, in thedeepstream_test5_app_main.c file generate_event_msg_meta method, please give me a code.

Screenshot (generally this means to capture all things on the screen including icons, desktop, bars,…) is not a function of deepstream. You need to refer to your operation system API to know how to capture screenshot.

If you just want to capture a image from the video, there is no such implementation inside deepstream-test5 sample. There is open source jpeg encoder plugin in Gstreamer project, you use them to capture picture as you like. jpegenc: GStreamer Good Plugins 1.0 Plugins Reference Manual

thanks
i want to capture a image from the original video ,can you give me a code?

This is basic gstreamer application development. You can google for the samples. Your first application (gstreamer.freedesktop.org)

It is required to be familiar with gstreamer before you start with DeepStream SDK.

thanks