用封面图片标记mkv文件? [英] Tagging mkv files with cover images?

查看:1141
本文介绍了用封面图片标记mkv文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现此屏幕截图显示您可以使用 Shark007 + icaros


但是这些工具以非常糟糕的方式搞乱了系统。很多人都遇到了问题,我也很遗憾我已经安装了它。我很高兴我的Windows再次启动...



无论如何,我怎样才能以编程方式将封面图像添加到mkv文件中?

我是否需要在注册表中更改某些内容以使Windows显示它们?



我不是在寻找代码,我更需要寻找封面需要的格式以及我必须注入/插入的字节/附加图像文件,也许是一个注册表项,可能会导致标记的图像显示等。

解决方案

你可以使用






程序化方法:




  • 我们用于附加或替换封面艺术的ffmpeg C库

  • 编写自定义 Shell Extension 阅读 MKV 格式化并将图像附件显示为缩略图。


I found this screenshot which shows that you can add a cover image to an mkv file in a way that it is displayed as the icon of the file in the Windows explorer using Shark007+icaros.
But these tools are messing with the system in a really bad way. A lot of people are having problems with it and I too very much regret that I've installed it. I'm really glad I got my Windows to boot again...

Anyway, how could I programmatically add a cover image to an mkv file?
And would I need to change something in the registry to make Windows display them?

I'm not neccessarely looking for code, I'm more looking for something like the format the cover needs to have and the byte at which I have to inject/insert/attach the image file and maybe a registry entry that would cause the tagged images to be displayed etc.

解决方案

You can use the FFmpeg multimedia framework to attach an image as MKV metadata. More Windows builds can be found at Zeranoe.

Example CLI usage:

ffmpeg -i input.mkv -c copy -attach image.jpg -metadata:s:t \
mimetype=image/jpeg output.mkv

  • -c copy copy all streams in the source file without re-encoding
  • -attach image.jpg attach a JPEG image
  • -metadata:s:t mimetype=image/jpeg set the attachement MIME type

On *nix the same can be accomplished with MKVToolNix.

Ubuntu demo:


Programmatic approach:

  • use the ffmpeg C libraries to attach or replace the cover art
  • write a custom Shell Extension to read the MKV format and display the image attachement as thumbnail.

这篇关于用封面图片标记mkv文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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