I have found questions on rotating videos with mencoder and ffmpeg however I am after a fully automated solution.
Can anybody help with this.
I want to
- Detect the video orientation
- Rotate if needed
- Reset the meta data on the video (otherwise watching on a iOS device will cause unwanted rotation)
- Save video in desired format
The reason for this is a wish to use the processed videos in a HTML5 video player. If I rotate without resetting the meta data iOS devices will read the meta and further rotate causing the video to be out by another 90 degrees.