I want to edit MKV subtitle flags in a large number of files using mkvpropedit.
Using win10 regedit the registry key
"Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wi ndows\CurrentVersion\App Paths\mkvpropedit.exe" was created with data "C:\Program Files\mkvpropedit.exe" and the system restarted.
mkvpropedit does not have a path as it is not found if entered as a command, why?
In the MKV folder a cmd window was opened and "for %a in (*.mkv) do mkvpropedit "%a" --edit track1 --set flag-default=1" run.
Nothing happens.
I clearly have done something wrong, but what?
Any help will be much appreciated.
+ Reply to Thread
Results 1 to 5 of 5
-
-
I want to edit MKV subtitle flags in a large number of files using mkvpropedit.
you can create a batch file with the following:
Code:@echo off for %%a in (*.mkv) do mkvpropedit --edit track:s1 --set flag-default=1 "%%~na.mkv" pause
責任者-MDX -
Thanks for your help sekininsha. I put the bat file in the same folder as the mkvs. When run mkvpropedit is not recognized as a command etc. I notice that the errors are written back to the bat file replacing the commands. How to avoid this?
The path to mkvpropedit is the problem. The path to MKVToolNnix GUI and MKVCleaver 64 bit are in the path and execute fine. mkvextract, mkvinfo, mkvmerge, and mkvpropedit are all in the same folder as MKVToolNnix GUI. I don't understadn why they are not found. I have read that it is better to edit the registry rather than environment variables. What is generally recommended and why doesn't the key given above provide the path?
Thanks again.Last edited by hibbs; 14th Apr 2020 at 19:52.
-
App Paths only affect Windows Explorer/"Run ..", not the cmd. Use %PATH% or hardcode the full paths into the .bat file.
-
Thanks for your help. I ran this "for %%a in (*.mkv) do mkvpropedit --edit track:s1 --set flag-default=1 "%%" in a batch file placed in the folder of MKVs.
Solved.Last edited by hibbs; 16th Apr 2020 at 20:46. Reason: url erroneously placed in text line
Similar Threads
-
about MKVToolNix
By ujang in forum Newbie / General discussionsReplies: 8Last Post: 16th Nov 2018, 22:32 -
MKVToolNix Help!
By Alekos65 in forum Newbie / General discussionsReplies: 6Last Post: 12th Jul 2017, 00:26 -
MKVToolNix 9.7.1 help
By zcool2016 in forum Newbie / General discussionsReplies: 5Last Post: 2nd Jan 2017, 01:07 -
Need help using MKVtoolnix
By Larold in forum SubtitleReplies: 8Last Post: 6th Apr 2016, 07:00 -
AVIDemux: Trouble initializing audio device (WinFF trouble too)
By Joker41NAM in forum Newbie / General discussionsReplies: 1Last Post: 1st Nov 2015, 04:12