Author Topic: Batch Muxer  (Read 1091 times)

Offline Sakura90

  • Member
  • Posts: 523
  • Got panties? ♥
Batch Muxer
« on: August 26, 2010, 03:29:38 AM »
Hi!

I have to remux 70 MKVs. Basically, I have a MKV with 2 tracks (video and audio), an ASS file and a font file. I need to put all that together, along with setting the track names, languages, and default track flag. That for 70 files ;D. Doing that by hand will take forever, and patience is not one of my virtues (I had enough alredy editing 70 subs xD). The thing is: the process is always the same, same tracks, same names, languages, font and default flag. Only changes the episode numer (for eg. Ep01.mkv/Ep01.ass, Ep02.mkv/Ep02.ass, etc). Is there any way to set up Ep1 for muxing and then, changing the name of the input files, repeat that for the rest of the episodes?

That, or any other easy way for batch muxing :-*


Thx n.n
Quote from: Youko@TF
What does "[sic]" mean? I don't think anyone got sick in the article so why is it in there? Should I start writing and post "[dump]" when I leave to go take a shit then return?

Offline kureshii

  • Former Staff
  • Member
  • Posts: 4485
  • May typeset edited light novels if asked nicely.
Re: Batch Muxer
« Reply #1 on: August 26, 2010, 05:57:20 AM »
Batch scripting.

Offline Temuthril

  • Member
  • Posts: 1140
Re: Batch Muxer
« Reply #2 on: August 27, 2010, 09:43:28 AM »
Code: [Select]
for %%a in (*.ass) do mkvmerge.exe -o %%a_muxed.mkv -a %%~na.mkv -d %%~na.mkv -attachment font.ttf

That's assuming the video files are named the same as subtitles files. Check mkvmerge documentation for track names and stuff.
Correct me if I'm wrong, I didn't test that.
« Last Edit: August 27, 2010, 09:46:36 AM by Temuthril »

Offline Sakura90

  • Member
  • Posts: 523
  • Got panties? ♥
Re: Batch Muxer
« Reply #3 on: September 01, 2010, 04:39:03 PM »
Thanks! But I already did it. What I did was arrange everything for muxing one episode in mkvmerge GUI, saved the command line as a .bat and edited it repeating the command for the 70 episodes (changing the ep. number). I'm not at home now, but it was similar to what you posted, except it was repeated 70 times, lol ;D

Now I have another problem, but it has nothing to do with batches :(
Quote from: Youko@TF
What does "[sic]" mean? I don't think anyone got sick in the article so why is it in there? Should I start writing and post "[dump]" when I leave to go take a shit then return?