I currently have my Zero 3W setup on the latest official Debian desktop image for my Zero 3W. I followed the guide successfully on ROCK 3A Camera streaming with RTSP, and I can have a running RTSP server with:
sudo ./test-launch "( v4l2src device=/dev/video0 io-mode=dmabuf ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! mpph264enc ! rtph264pay name=pay0 pt=96 )"
My question is, how can I rotate the camera image 90 degrees? My setup requires me to have the sensor rotated 90 degrees counter-clockwise, so I want to counter this by applying a 90-degree clockwise rotation to the image. I found many ways to do this on a Raspberry Pi – and have done it on my pi, but I’m replacing it with a zero 3w – but none for the Radxa Zero 3w.
I’ve tried using gstreamer videoflip and gstreamer rotate but have had no luck. I would assume they would rotate the 1920x1080 stream, but that would produce a 1080x1920 stream, which is not what I’m looking for. I could be wrong on this front since I haven’t gotten videoflip or rotate to work.
I did see something about rotating the image directly on the mpph264enc, located here: https://github.com/rockchip-linux/mpp/issues/183, but I haven’t been able to successfully apply those given rotations.
I scoured the internet and couldn’t find anyone having rotation issues; I can’t be the only one, can I? Any help would be much appreciated! I will add anything I find further to this thread to help anyone who comes across this issue in the future.