Seoul
Seoul

Reputation: 171

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

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.

Upvotes: 16

Views: 17060

Answers (3)

wgrant
wgrant

Reputation: 175

See my more in depth answer to same question here

In summary:

exiftool -Rotation=90 your_file.mp4

Set the value to whatever you need. Eg, if you are removing unwanted rotation, set to 0.

More info on the fantastic exiftool can be found here: https://exiftool.org

Upvotes: 1

declension
declension

Reputation: 4185

+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

Upvotes: 22

danielmhanover
danielmhanover

Reputation: 3124

Check out the software FFMpeg, use ffprobe to give you the rotation metadata of any video file if it has it.

Check out this answer for functions allowing your to rotate videos.

Upvotes: 1

Related Questions