VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Hello

    I was trying to do a batch edit with mkvpropedit to set the Subtitle track 1 as default for multiple files;

    The script I used:

    for %%a in ("*.mkv") do mkvpropedit "%%a" ^
    --edit track:s1 --set flag-default=1 --set flag-forced=0 ^

    call
    pause

    This however returns the error "More than one file name has been given"; I've tried to take a command from another script so the output files are renamed, and so I tried next this one:

    for %%y in (*.mkv) do mkvpropedit -o "%%~dpny_edit.mkv" "%%~fy" ^
    --edit track:s1 --set flag-default=1 --set flag-forced=0 ^

    call
    pause

    I had a similar script for swapping audio tracks using mkvmerge instead of mkvpropedit - that script did renamed the output files into "Filename_edit" so I thought I'd borrow it and change mkvmerge to mkvpropedit but apparently this too, doesn't work for the same reason "More than one file name has been given"

    I've tried to mess around with the script for about 30 minutes now and I'am pretty sure I came pretty close to cause my PC a stroke... I'd really appreciate some help :(
    Quote Quote  
  2. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Code:
    for %%a in (*.mkv) do mkvmerge.exe -o "%%~dpna_edit.mkv" --default-track-flag 2:yes "%%a" --track-order 0:0,0:1,0:2
    Track order video, audio, subs.

    May need to be enhanced for more subs?
    Quote Quote  
  3. Thanks - that worked
    Quote Quote  



Similar Threads

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