If I use:
ffmpeg -i in.mov -vf "transpose=1" out.mov
.mov files are getting rotated, but what I need is to automatically detect just the rotated videos and change orientation for just those videos.
How can I automatically detect the rotation or orientation of the video during upload and rotate if needed, so that all
.mov files play in the correct orientation? How can I get that metadata of current degree rotation of my video?