VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Dec 2007
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  2. I want to edit MKV subtitle flags in a large number of files using mkvpropedit.
    mkvpropedit comes in the package mkvtoolnix ..

    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
    Quote Quote  
  3. Member
    Join Date
    Dec 2007
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  4. App Paths only affect Windows Explorer/"Run ..", not the cmd. Use %PATH% or hardcode the full paths into the .bat file.
    Quote Quote  
  5. Member
    Join Date
    Dec 2007
    Location
    Canada
    Search Comp PM
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!