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.
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 too... Stack Overflow About Products
On the main interface, click the Tools tab and from the drop-down menu select Media Information. A new window will appear to show the media information. Use General and Extra Metadata tabs in order to edit the tags of the MKV files. Finally, enter the location where you wish to save the edited file and click Save Metadata.
Select the most appropriate image and download it. Now go back to Mp3Tag and right click in the cover art window (towards the bottom left) and select Add cover… as shown. This will open a file selection window that will let you choose the image that you just downloaded, as shown here. Simply double click on the image you want.
The MKV format has become popular lately but, it doesn’t support cover art in meta-data in a way that is useful. Technically it is supported but the process of adding it is long winded and nothing I’ve found can read and display the artwork so it might as well not be there. I’m going to add artwork to the excellent British film Brassed Off.
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 typeOn *nix the same can be accomplished with MKVToolNix.
Ubuntu demo:
Programmatic approach:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With