Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

multimedia

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.

like image 231
Seoul Avatar asked Apr 19 '12 04:04

Seoul


People also ask

How do I change the orientation of an MP4 video?

Press Ctrl + R keys to rotate the MP4 video 90 degrees clockwise or just click the rotate button from the lower-right side to rotate the video in Photos.

How do I flip an MP4 horizontally?

Open the video you want to flip using Quicktime player. Go to the “edit” menu in the app's menu bar and select Flip Horizontal or Flip Vertical from the drop down menu. Save the flipped video by hitting Command + S or go to the file menu in the menu bar and select Save from the dropdown menu.


1 Answers

+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
like image 176
declension Avatar answered Sep 16 '22 12:09

declension