How to flip video stream from camera in the Deepstream-test5 example

Please provide complete information as applicable to your setup.

• Jetson Nano
• DeepStream Version 5.0
• JetPack Version 4.4
• TensorRT 7.0

I am using a setup with a V4L2 camera and a pipeline of plugins based on the Deepstream-test5 example.
The camera is mounted on the wall so that I can only get inverted video stream . As a result the detector is not working properly since the detected objects are inverted. Please let me know how I can flip the video before the detection (before the nvinfer sink).
Thank you

Hi,
Please refer to the patch:

It demonstrates how to add prob function and utilize NvBufSurface APIs to rotate the frame. You may apply the same to src pad of nvvideoconvert.