Video streams dynamic record and playback

Please provide complete information as applicable to your setup.

• Hardware Platform: Jetson Nano Developer Kit
• DeepStream Version: 5.0
• JetPack Version: 4.4
• TensorRT Version: 7.1.0

Problem description:
Hi Sir/Madam: Just one question of how to store video dynamically by using Deepstream (python bindings). I tried to search on the Internet for a long time but still cannot find direct answers.
For example, I want to store my RTSP video streams for 3 past days, and if I want, I could watch the playback video.
Does Deepstream or Gstreamer support this function?
Thanks a lot for your help :)

@zyctimes You can store your video in many format with filesink in gstreamer pipeline. The Deepstream sample apps has some sample of how to use filesink in different situation.

You can use the splitmuxsink element which is able to save video in MP4 or any other video container.