Best and fast ways to save frames

**• Hardware Platform --------> L4
**• DeepStream Version ---------> 7.0
• TensorRT Version -----------> 8.5
**• NVIDIA GPU Driver Version -----> 550.67

Can you please provide us some different ways of saving frames and best way out of it and also provide some sample codes to implement them.

Thanks.