Log in

View Full Version : JMkvpropedit v1.4.3 - Batch GUI for mkvpropedit


[ReX]
8th January 2012, 12:53
Okay, I rewrote this thing and it's now a batch GUI for mkvpropedit, so it may be actually useful now.

For now you can:
-Set title; default, forced, track name and language of video, audio and subtitle tracks (it was compiled for maximum of 30 tracks of each kind, I don't think it's needed, but can be changed easily on the source).
-For title and track names there's a basic numbering function, where you specify the starting number and the padding.
-You can set the path for mkvtoolnix now.
-It's possible to just get the command line instead of actually editing the files.
-You can add extra command line parameters for general and each track.

Screenshots:
http://i.imgur.com/xAxhf.png

http://i.imgur.com/EOlUu.png

http://i.imgur.com/I5zv1.png

http://i.imgur.com/FswTE.png


JMkvpropedit 1.4.3
-Add missing "add folder" button to the GUI (drag & drop already had that feature but I forgot to add it to the GUI)
-Also added tooltips to the buttons because why not.

JMkvpropedit 1.4.2
Fix chapter removal

JMkvpropedit 1.4.1
Fixed typo that made the {file_name} param behave incorrectly

JMkvpropedit 1.4
-Updated to work with latest MKVToolnix version (v21.0.0)
-Updated MKV Strings (language/MIME types)
-Changed the maximum number of streams to 100 because why not

Updated some libraries
-ini4j from v0.5.2 to v0.5.4
-Apache Commons IO from v2.4 to v2.6
-Launch4j from v3.4 to v3.11

JMkvpropedit 1.3.4 (pre-release)
Add "{file_name}" parameters for titles

JMkvpropedit 1.3.3.1
Made folder wildcard filter case insensitive.

JMkvpropedit 1.3.3
Now it's also possible to add folders to the file list.

JMkvpropedit 1.3.2
Added drag & drop targets for attachments' file fields.

JMkvpropedit 1.3.1
Corrected typo on command to delete attachments using its ID.

JMkvpropedit 1.3
Added support for adding, replacing and deleting attachments.

JMkvpropedit 1.2
-Use double quotes for file names in command line generation for non-Windows, now (hopefully) only double quotes need to be escaped;
-Open dialog now refuses to open non-existent files (i.e. typed paths);
-Chapters/tags files now have the *.txt filter, in both open dialog and the option to match file names;

JMkvpropedit 1.1.1
-Default value for mkvpropedit executable is now "mkvpropedit", meaning it can be executed if it's included in the system path;
-Value of INI file won't be checked for existence anymore, now that's done when the button "Process files" is clicked and will only display an error if the specified executable can't be run;
-Fixed small bug in detection of mkvpropedit path from registry;
-Buttons to browse chapters/tags files weren't implemented.

JMkvpropedit 1.1
-Interface redesigned, now it uses flexible layouts, meaning ugly hacks for different platforms aren't needed anymore, and the window is now resizable;
-Now the suffix for chapters/tags file can be specified.

JMkvpropedit 1.0.9.1
Changed the option to select chapters/tags that match the file so now it works this way: "example.mkv", chapters will be "example.xml" (no change) and tags will be "example-tags.xml", as it didn't really make sense to use to same file for both.

JMkvpropedit 1.0.9
Added option to select chapters/tags that match the file (for example: if you have a file named "example.mkv", then the chapters/tags file will be "example.xml").

JMkvpropedit 1.0.8
-Added right-click menus to text fields and text area;
-Backslashes will now be escaped for extra command line fields (options file only, of course);
-Now it's also possible to specify a file with tags.

JMkvpropedit 1.0.7
-Fixed bottom button behavior when item at the bottom was selected along with other items;
-Escape backslashes for extra command line;
-Added option to specify chapter file in addition to removing it.

JMkvpropedit 1.0.6
-Removed border and background from buttons with images;
-Added button to remove tracks (will remove the last track).

JMkvpropedit 1.0.5.1
Controls should not get cut off on Mac anymore.

JMkvpropedit 1.0.5
-Check for duplicate files when adding from command line;
-Option file will be saved as UTF-8.

JMkvpropedit 1.0.4
Files can now be added on startup as command line arguments

JMkvpropedit 1.0.3.1
Added more character escaping for *nix.

JMkvpropedit 1.0.3
-Now it uses an option file to pass arguments to mkvpropedit (to bypass the Windows command line character limit);
-It should also work in Linux now (tested with Lubuntu);
-Fixed a very stupid bug, the code didn't actually check if "Edit this track" was checked for video/audio/subtitle command line generation;
-It'll now escape double quotes for command line generation; and escape spaces if not on Windows ;
-Added option to remove tags.

JMkvpropedit 1.0.2
Added option to remove chapters.

JMkvpropedit 1.0.1
-Added registry check for mkvtoolnix path if no INI file exists;
-Added drag and drop support for file list.

Download (https://github.com/BrunoReX/jmkvpropedit/releases) | Source (https://github.com/BrunoReX/jmkvpropedit)

sneaker_ger
8th January 2012, 13:07
You do know that mkvmerge GUI already comes with its own graphical header editor, don't you?

[ReX]
8th January 2012, 13:19
Yes, I do know.
I made this more to see if I could do it, this is my second GUI attempt.

Anyway, I fixed it so it'll store the new values after changing them, it's less stupid now.

Download updated.

sneaker_ger
8th January 2012, 13:32
It doesn't work here, throws an error at start: "Could not find the main class: JMkvpropedit. Program will exit."
Using Win 7 x64, Java 6 u30 32bit

[ReX]
8th January 2012, 14:04
I see what happened now, it was compiled using javac from JRE 7, give me a second.

Edit:
Download updated, now it should work.
Sorry about that. :rolleyes:

sneaker_ger
8th January 2012, 14:12
No, same error.

sneaker_ger
8th January 2012, 14:55
Now it starts, but retrieving the info with MediaInfo.exe does not really work. It will start, but of the four times I tried opening a file, each time MediaInfo showed different results, strange windows, empty captions, an error etc. Does it rely on MediaInfo being pre-configured with certain settings (like language)?

VirusTotal complains, though only two scanners, btw.:
http://www.virustotal.com/file-scan/report.html?id=4c607044dceb8ba21d5a548b93c0bdad6be4f737b6e8b1c221f0910300e908b0-1326030103

[ReX]
8th January 2012, 16:18
Use the MediaInfo CLI.

sneaker_ger
8th January 2012, 16:41
Ah, my bad. Had both the CLI and GUI packages in the same folder and extracted the wrong package by accident. Working now.

Mosu
11th February 2012, 18:32
I've added a link on the MKVToolNix links page (http://bunkus.org/videotools/mkvtoolnix/links.html) to this thread.

[ReX]
11th February 2012, 19:12
Wow, I feel honored! :D

If anyone is interested, I'm updating the code to pass everything but the extra arguments to an option file (or maybe everything, if I find a good way to do it). It made sense after I saw Mosu talking about the Windows command line character limit.

[ReX]
15th February 2012, 16:25
Version 1.0.3 released.

eidolen
1st March 2012, 23:05
I just wanted to let you know how much your work is appreciated! I have literally scoured the net and reached the end looking for this program that didn't exist until now. I've made pleas to the dev of mkvpropedit, as well as the devs of mp3tag and puddletag respectively in the hopes that someone would take up the cause.

Making it cross-platform was another win for me as I'm running xubuntu, and was just sure that if anyone would make this program it would be native to windows.

**End Gushing**

The one question I would ask, is if it's possible to pass a group of files to the program using a file manager. (Thunar in my case) Thunar lets you create custom actions and I've tried everything I could think of but with no joy.

exec java -jar "~/.bin/JMkvpropedit.jar" "%F"

Thunar uses these substitutions:
%f — The path to the first selected file.
%F — The paths to all selected files.
%d — Directory containing the file passed in %f.
%D — Directories containing the files passed in %F.
%n — The first selected file name (no path.)
%N — the selected file names (without paths.)

Even without this functionality I'm still ecstatic, but if this is possible it would really shine.

Many Thanks,
E

[ReX]
3rd March 2012, 12:25
It's possible, but it didn't work because there's no command line parameter parsing as of now, I have to add it.
You can compile the JAR to a Linux binary using Launch4j, then you don't have to call it using "java -jar".

Edit: Launch4j is only for creating Windows executables, I didn't actually test it, sorry. :rolleyes:

[ReX]
4th March 2012, 05:17
Done.
Just one thing, you should use %F, not "%F".

eidolen
4th March 2012, 14:26
Outstanding!:thanks:

Works like a charm. Tagging my collection won't be such a daunting task now. You have my gratitude.

E

P.S. Thanks for clarifying Launch4j. I checked it out but just figured I was missing something. It doesn't matter anyway as I am able to just dbl-click the .jar to launch if I want but I prefer to call it from the file manager with the files I want selected.

Da_maniaC
16th June 2012, 22:41
I would like to use this tool so i can easily change properties of my mkv files (default subtitle flags mostly).
For some reason when i load a file, nothing seems to be recognised or analysed though.

For example... a mkv file i loaded has 7 different subtitles, but this tool is not showing any of them,

Am i doing something wrong? :confused:

[ReX]
18th June 2012, 14:22
I would like to use this tool so i can easily change properties of my mkv files (default subtitle flags mostly).
For some reason when i load a file, nothing seems to be recognised or analysed though.

For example... a mkv file i loaded has 7 different subtitles, but this tool is not showing any of them,

Am i doing something wrong? :confused:

When I wrote this for just one file, it used to read the properties of it (in a very bad way), but that doesn't make sense in a batch program, does it? It's used to change a lot of files.

To change all 7 subtitles tracks, go the the subtitle tab and click the plus button until you have all 7 tracks there.
Don't worry, only the things that are checked are changed; if you don't want to change the track name, for example, don't check it and it won't be touched at all.

As was said in this thread, if you want something to change just one file that shows the current properties, just use mkvmerge GUI's header editor (File -> Header editor).

Da_maniaC
18th June 2012, 18:22
To be frank i think your tool has a better user interface than the MKVMergeGUI header editor.
Suffice to say it looks like i get an error message on the output tab once i try to process your suggestion (go to the right track number and edit the 'default' flag).

For some silly reason the command line seems to automatically adjust to my windows language but translated it says something like:
"Warning: The properties 'track:s4' and 'track:s4' lead to the same track with UID ######".

After that it still states "Changes are being written to file. Done."
But after that when i check the mkv file, nothing has changed.

--

The MKVMergeGUI header editor has a few major turn-offs... opening as well as writing to a file make the window 'not responding' there's no progress bar or anything.
Editing the subtitle track properties is bothersome to say the least since you have to collapse the right headers and scroll up and down the window while that seems to work rather limited.

[Edit]:
Looks like your tool is working regardless of the output message!
The track properties are being changed...i just had to un-default the other ones for the changes to become visible (must have slipped me somehow). :)

[ReX]
28th June 2012, 03:24
JMkvpropedit 1.0.9.1
-Changed the option to select chapters/tags that match the file so now it works this way: "example.mkv", chapters will be "example.xml" (no change) and tags will be "example-tags.xml", as it didn't really make sense to use to same file for both.

JMkvpropedit 1.0.9
-Added option to select chapters/tags that match the file (for example: if you have a file named "example.mkv", then the chapters/tags file will be "example.xml").

Had to update quickly, good thing I noticed that fast.

[ReX]
3rd December 2012, 08:49
JMkvpropedit 1.3
Added support for adding, replacing and deleting attachments.

I wanted to add support for this way earlier but was overwhelmed with college.

amsgwp
29th December 2012, 17:15
Hey Rex, The app is super easy to use and I like that you can process multiple files.

I have a question/suggestion.

1. Is it possible to add logic to only change a setting if something is true? For example, I ripped all my DVD's with the wrong audiotrack is track #1. So I need to change the default audio track to track 2. This is easy enough, but I don't want to just blindly do it for all my MKV's. I'd like to say, if audiotrack1 = 2 channels and audiotrack2 = 6 channels then make audio track 2 default.
2. Suggestion: Allow you to add entire directory and scan subfolders for MKV's and add them to the input list. Right now you have to go into each folder and pull out the MKV to be processed.

I guess I could try scripting this using AutoHotKey or VBS.

[ReX]
30th December 2012, 08:11
Suggestion 1 is not possible since I don't read any information from the files.
Suggestion 2 should have been implemented since the beginning, I guess I forgot it or got lazy. Anyway, it's there now.

kilobytes
30th November 2013, 13:57
Very nice program, is there the way that I can insert file names to tittle like:

C:\Program Files (x86)\MKVToolNix\mkvpropedit" "%%m" -e info -s title="%%~nm


Thanks
John

[ReX]
30th November 2013, 19:29
Very nice program, is there the way that I can insert file names to tittle like:

C:\Program Files (x86)\MKVToolNix\mkvpropedit" "%%m" -e info -s title="%%~nm


Thanks
John

Added {file_name} parameter as requested, I won't release a new version yet, as I need to document that somewhere, but you can use this build (https://github.com/BrunoReX/jmkvpropedit/releases/tag/v1.3.4pre) for now.

kilobytes
30th November 2013, 20:34
;1656036']Added {file_name} parameter as requested, I won't release a new version yet, as I need to document that somewhere, but you can use this build (https://github.com/BrunoReX/jmkvpropedit/releases/tag/v1.3.4pre) for now.

Awesome, thanks ;-)

davidtuning
18th August 2014, 13:03
Help the program does not run, I use java 8

AZMedia
20th October 2015, 03:47
This app is awesome but...I'm an older guy, could use some help.

Is there a way to save settings so I don't have to configure the app each time I open it? I clean MKV files but when I use the app I have to go through and tick all the appropriate boxes, add JPG criteria to "Delete Attachments", etc.

The app does create command line info, but it's specific to each file name.
"mkvpropedit" "My_File_Location.mkv" --tags all: --edit info --set title="" --delete-attachment "mime-type:image/jpeg"

I have a folder with a few MKV's and would like to clean each file with the same settings. Every few days I get new MKV's and I need to repeat the process.....which requires setting up this app features again. Any help or insight would be appreciated.

FYI - I have a BAT file that inserts my movie title into the "File Title" of the MKV's metadata. I just drag/drop the file onto the bat icon. A process like this would be perfect for cleaning the files.

[ReX]
3rd March 2018, 17:41
I finally decided to try and fix this project after many years, details and changes are at the original post, it should work with the latest MKVToolnix now.
Please report bugs and request features at https://github.com/BrunoReX/jmkvpropedit/issues ;)

chinobino
5th March 2018, 18:45
Working great here with MKVToolnix v21 on Win 10 x64.

Thank you for coming back to this project and updating jmkvpropedit to work with latest MKVToolnix.

This program saves me a lot of time!

Tylerr
18th April 2018, 01:24
love this program, is it possible for you to add a way to save settings?

i am mostly using it for the same thing everytime so it'd be nice not having to redo it everytime i open it up.

wiak
7th July 2018, 17:39
You do know that mkvmerge GUI already comes with its own graphical header editor, don't you?
always better to have altenatives and this seems pretty nice and useful

TitanFan
28th December 2018, 09:05
Very cool program!! Just updated a bunch of mkv files to set the proper subtitles language. Sure beats a remux with mkvmerge or gui of mkvtoolnix header editor.

I must say it's a bit concerning to edit a whole directory of files and hoping the program doesn't fail since it does the operation on the original files without backup. But, of course I always have my backups, but still a bit concerning. After more use, I'm sure I'll trust this program without any concerns.

Thanks again!

Tetsujin
3rd September 2019, 13:03
One small problem.
On Mac, you can't persuade the file picker to see 'inside' the app container to point it at mkvpropedit itself.

Unsubtle 'fix' was to copy it out into the regular Apps folder, where it could be seen. All is good.

Ref: https://apple.stackexchange.com/questions/367737/batch-remove-mkv-titles-only-no-re-encode

Waxmania
11th March 2020, 20:00
Hi,

This tool looks like exactly what I've been needing, but I can't get it to work at all. No matter what I enter for settings, I get the following error (varying by input filename and command line, but nothing else):

File: K:\Videos\Kaleidoscope1.mkv
Command line: "C:\Program Files\MKVToolNix\mkvpropedit.exe" "K:\Videos\Kaleidoscope1.mkv" --edit info --set title=""

Error: More than one file name has been given ('[' and '"K:\Videos\Kaleidoscope1.mkv",').

I created and muxed a whole bunch of videos some years back with a tool that inserted spam as the title, and I want to clear that metadata on all files. Since there are well over a hundred files in this project, handling each individually with mkvtoolnix or the mkvmerge GUI seems impractical. But I can't figure out what this error means— the "'['" as a second "file name" doesn't seem to come from any setting I've entered in jmkvpropedit, and doesn't appear in the command line output returned to me.

Currently the only setting I'm using is selecting the "Title" checkbox in the General tab. I get the same error when I try other variations (I'm not 100% this syntax would have been correct, but I also tried just using the "Extra Parameters" field with "--tags all:" and got the same result).

Could this be an issue with my OS (I'm using Windows 8)? Any idea? Thanks if anyone has any insight.

Ripmann
13th August 2022, 21:05
No idea how I missed this little gem for so long, but I just want to express my appreciation to the author. It does exactly what I need and does it in style, toggling flags and renaming subtitle tracks of more than a hundred of MKV files in just a second. The only functionality it seems to be missing is the ability to reorder the tracks, but other than that, it's pretty much perfect. Thank you very much.

P.S. The opening post hasn't been updated since 2018, but the utility is at currently at v1.5.2 (Dec 05, 2021).