Get current title

MKV playback, recompression, remuxing, codec packs, players, howtos, etc.
Post Reply
ldoodle
Posts: 69
Joined: Sun Sep 20, 2009 5:09 pm

Get current title

Post by ldoodle »

Hey,

I'm writing a batch file that loops through a given directory, updating any MKV files title tag to match the file name, minus the extension.

I'm using mkvpropedit to set the title. I'd like to only update files where the title is not currently the same as the file name, so I need to get the current title and compare it.

How/can I do that? Shame mkvpropedit doesn't have a 'get' option.

Thanks
Woodstock
Posts: 10332
Joined: Sun Jul 24, 2011 11:21 pm

Re: Get current title

Post by Woodstock »

mkvinfo from the mkvtoolnix programs?
ldoodle
Posts: 69
Joined: Sun Sep 20, 2009 5:09 pm

Re: Get current title

Post by ldoodle »

Thanks, sorted it.

Was a bit of a faff as there's no argument for mkvinfo.exe to get just the required tag, in my case the title. Had to return the whole lot then extract the line with title in, then format it to get rid of the '| + ' prefix!
Post Reply