How to edit or add video metadata of "rotation" in mp4?

Seoul picture Seoul · Apr 19, 2012 · Viewed 13.5k times · Source

I want put rotation information into my mp4 video file but I have no idea about this.

Is there any program that I can add "rotation" metadata? It would be OK if there's the way to edit video content with hexa editor.

Answer

declension picture declension · Jul 22, 2015

+1 for FFMpeg. More specifically, I had good results correcting orientation metadata with

ffmpeg -i input.mp4 -metadata:s:v rotate=90 -vcodec copy -acodec copy output.mp4