Create batch AVISynth scripts using command line

766 Views Asked by At

I have researched for a long time for AViSynth batch create using CMD AVISynth example :

> DirectShowSource("C:\Users\...\conan848.mkv", fps=23.976, audio=false,
> convertfps=true).AssumeFPS(24000,1001)
> #deinterlace
> #crop LanczosResize(1280,720) # Lanczos (Sharp)
> #denoise

With this Avisynth template, only the file path, "fps" and "AssumeFPS" change each file, so i use mediainfo to get those info (Folder "NHU" has 13 mkv files: Vandread 1st Stage 01, Vandread 1st Stage 02,...) - Use mediainfo in CMD

mediaInfo "C:\Users...\NHU*.mkv" --Inform=file://mau.txt > framerate.txt

With mau.txt:

General;%FileName%
Video;%BFrameRate_Modeg%:%FrameRate/String% \r\n

Result in file framerate.txt

Vandread 1st Stage 01 :23.976 (24000/1001) FPS
Vandread 1st Stage 02 :23.976 (24000/1001) FPS
.....
Vandread 1st Stage 12 :23.976 (23976/1000) FPS
Vandread 1st Stage 13 :23.976 FPS

After that, i don't know how to create batch Avisynth scripts like: Vandread 1st Stage 01.avs , Vandread 1st Stage 02.avs,...

0

There are 0 best solutions below