使用exiftool编辑MP4元数据 [英] Edit MP4 Metadata with exiftool

查看:437
本文介绍了使用exiftool编辑MP4元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有Title元数据的MP4文件:

I have an MP4 file with Title metadata:

exiftool movie.mp4

哪个给:

Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Title                           : Movie Title

我想完全删除此Title元数据.我尝试覆盖标题:

I want to completely remove this Title metadata. I have tried overwriting the title:

exiftool -Title="" movie.mp4
exiftool -Title= movie.mp4
exiftool -Title="" -overwrite_original movie.mp4

该命令需要一段时间才能执行,但是会退出:

The command takes awhile to execute, but exits with:

0 image files updated
1 image files unchanged

我做错了什么?如何查看exiftool错误是什么?如何删除Title属性?根据手册页,MP4似乎是受支持的文件类型.

What am I doing incorrectly? How can I view what the exiftool error is? How can I remove the Title attribute? According to the man page, MP4 seems to be a supported file type.

非常感谢您的帮助!

推荐答案

自最初提出问题以来,exiftool(自11.39版开始)就具有创建/编辑更大范围的MP4/MOV元数据标签的能力.要从视频中删除Title标签,@ James Taylor使用的原始命令将起作用:
exiftool -Title= movie.mp4

Since the time of the original question, exiftool, as of ver 11.39, has gained the ability to create/edit a larger range of MP4/MOV metadata tags. To remove the Title tag from a video the original commands that @James Taylor used will work:
exiftool -Title= movie.mp4

不幸的是,除了XMP标签之外,exiftool仅对编写视频文件提供了有限的支持.运行此命令exiftool -G1 -a -s -title movie.mp4.我猜标题将在Quicktime组中.而且Exiftool无法写入大多数 Quicktime标记.

Unfortunately, exiftool only has limited support for writing video files other than XMP tags. Run this command exiftool -G1 -a -s -title movie.mp4. I'm guessing that the title will field will be in the Quicktime group. And Exiftool cannot write to the majority of Quicktime tags.

一些快速的研究,我认为ffmpeg可以为您完成.您应该做更多研究以再次检查,但我认为此命令会起作用:
ffmpeg -i InputFile -c copy -metadata title= OutputFile

Some quick research and I think ffmpeg can do it for you. You should do some more research to double check but I think this command would work:
ffmpeg -i InputFile -c copy -metadata title= OutputFile

我相信-c copy将复制流而无需重新编码,并且-metadata title=将清除标题字段.
有关更多信息,请参见 multimedia.cx .

I believe that -c copy will copy the streams without re-encoding and -metadata title= will clear the title field.
See multimedia.cx for more info.

这篇关于使用exiftool编辑MP4元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆