this is the code i once use in the past to batch add a secondary audio to a tv show, however i can not remember or find the videohelp post i used to help me do it and also the script was a little messy because i needed to rename all episode to sequential order 1,2,3 etc, also mkvs needed to be on folder A and audios needed to be on folder B and end result on folder "output", my question is it possible to do this on a more efficient way?
* 1) do i have to rename episodes and audios files to sequential order or can it be done so it scan the folder for mkv, audios files, etc or idk?
* 2) can it be automated so that it replaces or delete original mkv files?
thank you in advance.
code here:
Code:@echo off setlocal enabledelayedexpansion cd /D %~dp0 cd A attrib -h *.* set i=0 for %%a in (*.*) do set /A i+=1 & set alpha[!i!]=%%a & set gamma[!i!]=%%~na cd .. cd B attrib -h *.* set i=0 for %%b in (*.*) do set /A i+=1 & set beta[!i!]=%%b cd .. set n=%i% for /L %%i in (1,1,%n%) do "D:\Users\aniel\Documents\portable programs\mkvtoolnix\mkvtoolnix\mkvmerge.exe" -o "output\!gamma[%%i]!.mkv" "A\!alpha[%%i]!" --no-video "B\!beta[%%i]!" pause
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
Closed Thread
Results 1 to 2 of 2
Thread
-
-
Please do post any more threads on the same subject,one thread is enough,this thread is closed.Continue here-
https://forum.videohelp.com/threads/395568-any-batch-scrip-guru-around-here#post2569721I think,therefore i am a hamster.
Similar Threads
-
Batch adding AAC audio track to MKV
By Binnus in forum EditingReplies: 39Last Post: 2nd Feb 2020, 23:16 -
batch Mkvmerge to select only the AC3 audio and ignore any AAC audio
By olpdog in forum EditingReplies: 3Last Post: 11th Aug 2019, 04:00 -
Batch Adding Chapters to Multiple MKV Files
By Shady in forum Newbie / General discussionsReplies: 15Last Post: 2nd Jun 2018, 09:34 -
Batch script for removing/adding mkv covers
By piratikxd in forum ProgrammingReplies: 1Last Post: 6th Jun 2017, 08:47 -
Needed Adding Intro in batch
By bravelighter in forum Video ConversionReplies: 6Last Post: 18th May 2016, 01:30