Skip to content

Instantly share code, notes, and snippets.

@uahim
Created November 4, 2017 21:36
Show Gist options
  • Save uahim/310346f1d3aa1f08cee650de2c4451d6 to your computer and use it in GitHub Desktop.
Save uahim/310346f1d3aa1f08cee650de2c4451d6 to your computer and use it in GitHub Desktop.
@echo off
for /F "tokens=*" %%A in ('dir /b *.mp4') do call :mvkitnow %%A
goto :EOF
:mvkitnow <bookid>
SET ofilex=%ofile:.mp4=%
echo.
"C:\Program Files\MKVToolNix\mkvmerge.exe" --ui-language en --output "%ofilex%.mkv" --language 0:und --language 1:und ^"^(^" ^"%1^" ^"^)^" --track-order 0:0,0:1
"C:\Program Files\MKVToolNix\mkvalidator.exe" %ofilex%.mkv
goto :EOF
:EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment