Rotate a video with ffmpeg
Tested (with .mv4 files). Works. 90 rotates the video 90 degrees clockwise.
ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4
Read more: Link - Can I set rotation field for a video stream with FFmpeg? - Stack Overflow