编辑 mkv 文件的元注释标签
我使用 mkvpropedit 编辑一些 mkv 文件的元标记标题,效果很好。
find . -type f -name '*.mkv' -exec sh -c 'mkvpropedit --set "title=$(basename "$1")" "$1"' sh '{}' \;
但我也想编辑评论标签,但无论我尝试什么,我总是得到:
Error: The name 'comment' is not a valid property name for the current edit specification in '--set comment= '
mkvpropedit 的手册页仅解释说 --set is followerd by name=value 这也是我在网上可以找到的所有内容,没有描述可能的内容名字是
I use mkvpropedit to edit the meta tag title of some mkv files which works great.
find . -type f -name '*.mkv' -exec sh -c 'mkvpropedit --set "title=$(basename "$1")" "$1"' sh '{}' \;
but I also want to edit the comment tag, but whatever I try I always get:
Error: The name 'comment' is not a valid property name for the current edit specification in '--set comment= '
the man page of mkvpropedit explains only that --set is followerd by name=value and that's also everything I could find online, no decription of what the possible names are
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道已经有两年了,但是我最近遇到了这个错误,并且能够找到解决方案。
问题是这个命令专门用于编辑属性,而不是标签,因为注释是标签,您需要使用 XML 文件来添加注释属性。
首先,您需要使用以下信息设置 XML 文件:
接下来,您需要运行以下命令,
我建议使用 mkvextract 提取现有标签并添加您想要添加的标签,否则很多标签可能会被删除。
I know it has been like 2 years but, I recently had this error and was able to find its solution.
The thing is this command is specifically to edit properties, but not tags, as comments are tags, you need to use an XML file to add the comment attribute.
First, you need to set up the XML file with the following information:
Next you need to run the following command
I recommend using mkvextract to extract the existing tags and adding the ones you wish to add, otherwise a lot of them might be deleted.
运行 mkvpropedit -l 将显示可以使用 mkvpropedit 编辑的所有属性的列表。如果您需要添加不在此列表中的自定义标签,那么您应该查看 ExifTool
Running
mkvpropedit -l
will show you a list of all the properties you can edit using mkvpropedit. If you need to add custom tags which are not in this list then you should look at ExifTool