Hi everyone,
I would like to know if anyone can fix my error with the following code:
Error:
Error: Invaild track ID '-d C:Users\admin\Desktop\encord\test\Test.mkv
Code:
It would really help if anyone knows the answer to fix this. I have been debugging this code for a while now.Code:@echo off setlocal FOR /f "delims=" %%i IN ('dir /b *.mkv') DO call :recode "%%i" goto :done :recode set oldfile=%1 echo %oldfile% | find /i "[8bit]" > nul: if not errorlevel 1 goto :eof set newfile=%oldfile:.mkv= [8bit].mkv% echo Newfile: %newfile% if exist %newfile% goto :eof echo Oldfile: %oldfile% set tmpfile=%oldfile:.mkv=.tmp.mkv% echo Tempfile: %tmpfile% pause if exist %tmpfile% del /f /q %tmpfile% x264 --preset veryfast --tune animation --crf 17 -o %tmpfile% %oldfile% cd C:\Program Files (x86)\MKVToolNix pause mkvmerge -o %newfile% -d %~dp0\%oldfile% %~dp0\%tmpfile% echo Newfile: %~dp0\%newfile% echo Oldfile: %~dp0\%oldfile% echo Tempfile: %~dp0\%tmpfile% pause if exist %tmpfile% del /f /q %tmpfile% goto :eof :done endlocal
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Encoding x264 file from .avs file using .bat file
By Dr.Who in forum Newbie / General discussionsReplies: 11Last Post: 14th Aug 2013, 15:06 -
Making a bat file for both Avisynth and x264
By Kyousuke in forum Newbie / General discussionsReplies: 7Last Post: 20th Jul 2013, 05:59 -
Bat file not looping?
By sambat in forum ComputerReplies: 5Last Post: 26th Feb 2011, 14:58 -
Need a .bat file to join avi files
By aat666 in forum Newbie / General discussionsReplies: 2Last Post: 7th Oct 2010, 06:46 -
MKVMerge produces smaller file
By Bung in forum Newbie / General discussionsReplies: 1Last Post: 20th Apr 2010, 02:23