VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Hello everyone,

    I'm looking for some help with the creation of a batch file for mkvtoolnix gui.

    I have a folder with a lot of mkv files that I want the Header info cleared.
    I usually do this manually, by using the header editor in mkvtoolnix gui and select Remove element under the Segment information > title type.
    As you can imagine this takes such a long time and is tedious to do for a lot of files.
    I am hoping someone can create a batch file to automate this process.

    I have a windows laptop and assume video folder is in d drive and mkvtoolnix is installed in default location.
    Any help is greatly appreciated as I have no skills in coding for something like this.

    Image
    [Attachment 58501 - Click to enlarge]
    Quote Quote  
  2. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Hi.
    I'm not sure where you're going with this.
    I use ffmpeg to clear the metadata of MP4 & MKV files.
    Perhaps this will be what you need.

    Code:
    echo off
    :: Clear all metadata
    if not exist NEW\*.* md NEW
    
    for %%a in ("*.mp4", "*.mkv") do call :process "%%a"
    goto :end
    
    :process
    ffmpeg.exe -i "%~1" -map_chapters -1 -map_metadata -1 -metadata title="" -metadata comment="" -c:v copy -c:a copy -y "NEW\%~1"
    goto :eof
    
    :end
    Cheers.
    Quote Quote  



Similar Threads

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