szTheory / exifcleaner

Cross-platform desktop GUI app to clean image metadata
https://exifcleaner.com
MIT License
1.92k stars 120 forks source link

Replace Metadata for MKV Files #182

Open ghost opened 3 years ago

ghost commented 3 years ago

@szTheory As we discussed in #163 Exifcleaner do not support removing Metadata of Files in .MKV Format. But When I was looking into this. I found a Program called MKVToolNix GUI, an Open Source Tool which allows the Editing of MKV Files.

For a Test, I put an .mkv Filen in MKVToolNix and it repack and realigns the Video and Audio Streams into MKV even if the input is .avi or .mp4.

After that I found the metadata it contains using Exifcleaner. Here's What I found. MKV Metadata in MKV Toolnix GUI

It reduced much more Metadata than removing using its Generic one like an email Signature.

But If I use Shutter Encoder, an Open Source Tool which acts as a Great alternative to Wondershare Uniconverter.

In Shutter Encoder if I drop the same File (A Copy, not the Output of MKVToolnix I made above) and use .mkv to .mkv Conversion it also uses a Generic one but without revelaing the Software used. Thus Much More Privacy. MKV Metadata in Shutter Encoder

So, I think that you can fork any of the particular thing from both the Projects above and can be used to remove/replace Metadata in .mkv Files.

I think that this is Possible as ExifCleaner creates a Copy of the File in Memory Cache and Removes the Metadata by replacing or Deleting the Original file with the one from Memory Cache.

I am making this issue as the author of Exiftool is not interested in making Write Access for .mkv. You can see it here : https://github.com/exiftool/exiftool/issues/94

szTheory commented 3 years ago

If there is a Node JS library for removing metadata from .mkv I could add it. Otherwise it's probably a bit too much work for me in the forseable future. I do agree mkv is an important file type to handle though, so long term it should be on the roadmap for proper handling alongside other important file types like PDF.