how to flip the image or video stream from CSI camera on jetson

Hello ,i use the jetson AGX Xavier,when i use deepstream 4.0.1 to run demo, i get the image or video stream is fliped to 180,that is,it is upside down

because,my camera is onboard CSIcamera, it is installed upside down!
so how to flip the video stream and i can get the normal orientation image!

thank you!!!

Hi,
Please check the sample in:
https://devtalk.nvidia.com/default/topic/1063571/jetson-nano/jetson-nano-csi-raspberry-pi-camera-v2-upside-down-video-when-run-an-example-with-deepstream-app/post/5389956/#5389956