Replace source file while keeping config?

I have a bunch of Episodes of a show which are merged from a bunch of files. I would like to use the GUI to replace the source files (for example replace E01.m2ts with E02.m2ts) while keeping config for the tracks like delay, metadata and so on. Thanks in Advance for the Help :smiley:

Welcome!

You cannot do that with the GUI. Sorry.

Could I just replace the file paths in the command or in the config? Or is the mapping like uid specific or something like that

No, you cannot, and you’re close with the guess. Track IDs and track order are potentially different in each file, even if they seem identical between some or even most of them. If they are, options will be applied to the wrong tracks.

You can do all that with MKVToolNix’ command-line tool mkvmerge, though, as that is fully scriptable. Very abbreviated & overly generic plan:

  1. Determine the types of track & their IDs in the file with mkvmerge -J yoursourcefile.mp4
  2. Parse the JSON generated by step 1 & assign CLI options based on track types & track IDs
  3. Build full command line including the options from step 2, the destination file & potentially other global options
  4. Run mkvmerge with the options gathered in step 3
  5. Do steps 1–4 over all relevant files

If you’re interested in doing that, there are tons of resources/scripts people have whipped up over time out there. My own short examples are here.