You may have come across the need to remove the metadata, or extended title information from an mkv file downloaded from the internet.
Not all files are equal – in the case of regular files, for example .jpg and .mp4 files, you can simply right click in Windows, select Properties, and happily click away at the Details Tab, then “Remove Properties and Personal Information” – provided you have the right permissions, it’ll all work fine. MKV files will give you a permissions error, which is a lie, a dirty stinking filthy lie – don’t believe the lie.
Windows just doesn’t know how to deal with an MKV file title.
You need a 3rd party tool, and a small amount of knowledge.
The tool you need is MKVToolNix (Backup link to 64 bit installer, since their site seems to be down a lot). Go download and install. It’s free, and doesn’t nag.
Then you need to understand how to use the command line.
The basic command you need is: “C:\Program Files\MKVToolNix\mkvpropedit.exe” *mkv file name* -d title
When run, it will simply empty the metadata title from the file, no fuss, and it’ll only take a second.
Update: A number of people have asked me how to automate this to make it recursive, i.e. start at the top of a specified directory (Folder), and go through all sub-directories, processing all files.
This is how:
@echo off
c:
cd \users\USERNAME\downloads\*.mkv
for /r %%i in (*.mkv) do (
echo processing "%%i"
"C:\Program Files\MKVToolNix\mkvpropedit.exe" "%%i" -d title
)
The For loop goes through every file in the folder structure (Given the *.mkv spec), and executes the mkvpropedit command on every file found in the list. Simples.
Feel free to nick the code above, and use it for your own purposes, but remember to change the relevant path names to those on your own system.
If you would like to know more about batch files, and how they (Plus the command line) work in Windows, please visit the excellent Wikibook: Windows Batch Scripting which should get you started, or go Google it 🙂
Batch scripting (Or otherwise known as Batch Files) enable simple yet powerful processing of almost anything in the DOS or Windows environments, however the batch-language is largely superseded by the more powerful Windows Powershell; but in my opinion it is still very much a valid and ultimately useful tool, for it’s ease of use and simplicity.
This article (Click here) shows you how to add this to the right click context menu in Windows – even easier!”
Thanks for the explanation, solution, and going the extra mile with sharing those scripts. Very useful!
You’re welcome, Matt 🙂
I’m attempting to use your scripts but appears that cannot see into nested folders. When I run the command line works like a charm but would like to scan against all MKV as don’t recall which files have titles and which do not. Files would be two layers deep of folders.
Thanks for any help or ideas.
You could modify and call recursively, something like on this web posting
Good luck 🙂
Hi Sean,
The article has been amended with a method for using sub-folders as well 🙂
This information is great and very useful, thank you! However do you know how to remove ALL metadata from .mkv files? Your method posted will remove the title information from a file, but when viewing the file in VLC Media Player and selecting “Tools > Codec Information > Metadata” there are stiil several remaining categories of information. Any way to clear out all of this information?
Hihi…
Sorry, your comment went into spam, as you didn’t use a real e-mail address – never mind though… If you run (From the command line) “C:\Program Files\MKVToolNix>mkvpropedit.exe –help”, then it will list the help for the MKVToolNix program, which allows removals – just adjust your command line in the batch file for what you need.
🙂
Hi, I’m asking here, because I can’t contact you through contact formulare, it’s not working.
just bumped into your article about Logitech z533 and how to fix it’s annoying standby sleep problems.
I am thinking about buying Logitech Z333 (https://www.logitech.com/en-us/product/z333-2-1-pc-speaker-system-with-subwoofer) which also has this automatic sleeping problem. Do you think your method will work on them as well?
I always watch movies at evening at very low volume, so this would make radical decision not to buy them if it didn’t work.
Thank you!
Hi John,
If you’re going to be using these late at night for quiet listening, then no, but not because of the sleep issue – I’m assuming you don’t wanna wake other people up? The subwoofer will do that even on low volume levels, try a “Dolby 2.0” (As opposed to 2.1 which always include a subwoofer) set of speakers which will do “quiet” better, such as the Z200 series (https://www.logitech.com/en-us/product/multimedia-speakers-z200?crid=47) – you’ll actually be able to have them on a greater volume level without waking people up – not entirely sure if they suffer with the sleep issue.
The simplest solution to the sleep issue in general is to turn the PC / laptop volume up, and the speakers down.
Good luck with whatever you purchase 🙂
… And John, thanks for pointing out the error with the contact form – all fixed now!
First, a huge THANK YOU for this information! I have been searching all over the internet for a solution to the problem of removing titles and other metadata from MKV files. Yours is the only solution I’ve found that works!
Second, I wanted to point out that there is a GUI for MKVToolNix that makes it easy to remove properties from MKV files. The interface is a little cryptic in that you have to sort of figure out things for yourself, but it works. So, for those who are not so comfortable with using the command line, this is a very useful addition.
Again, THANK YOU for your invaluable help!
Hi Nick,
Thanks for your kind comments and the additional info 🙂
You almost saved my life!! Thank you!
“Windows just doesn’t know how to deal with an MKV file title.”
It used to, this bug was not present in Windows 7. You could even use File Explorer in earlier builds of Windows 10.
The inability to remove file properties from .mkv files seems deliberate to me as it’s a common format for video torrents.
Worked perfectly.
Thank you so very, very much!
Thanks Nick – You’re welcome 🙂
This is such a life saver. Don’t know how I didn’t come across this sooner. Thank you.