首页 > 解决方案 > 在 Linux 上从 mp4 视频文件中更改或删除“AutoRotation”标签

问题描述

我的一个视频是颠倒的。事实证明AutoRotation元数据设置错误,Down而它应该是Up根据我的其他视频:

$ exiftool -s input.mp4 | grep AutoRotation
AutoRotation                    : Down

我尝试exiftool从命令行使用来更改标签:

$ exiftool -AutoRotation=Up input.mp4
Warning: Sorry, AutoRotation is not writable
Nothing to do.

如何更改(或删除)Linux 上的特定 mp4 标签?

标签: videometadataexiftool

解决方案


The AutoRotation tag is a GoPro specific tag and is unlikely to be editable unless GoPro has a program that edits the metadata it embeds.

Using exiftool, a better option would be to edit the Rotation tag (e.g. -Rotation=90/180/270), which is actually not a single tag but a case of exiftool manipulating multiple tags in order to achieve the rotation desired (see the entry on the Composite tag page).


推荐阅读