I've been wanting this ever since I found out about AviSynth. I've found most of the answer in the form of a batch file:
This batch file automatically creates an AviSynth script for every file ending in .mkv in the same folder as the batch file. The only problem is, the name of the resulting AviSynth script file will be, for example, The Golden Girls s03e25.mkv.avs. This, of course, means once processing the script in VirtualDub, the resulting filename would then be The Golden Girls s03e25.mkv.avi. I'd like to drop the .mkv from the name of the AVS script, if at all possible.Code:for %%n in (*.mkv*) do ( echo setmtmode(5,4^) > "%%n.avs" echo ffmpegsource2("F:\New folder\%%n"^) >> "%%n.avs" echo setmtmode(2^) >> "%%n.avs" echo qtgmc(edithreads=2^) >> "%%n.avs" echo selecteven(^) >> "%%n.avs" )
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
-
Code:
for %%a in (*.mkv*) do ( echo setmtmode(5,4^) > "%%~na.avs" echo ffmpegsource2("F:\New folder\%%n"^) >> "%%~na.avs" echo setmtmode(2^) >> "%%~na.avs" echo qtgmc(edithreads=2^) >> "%%~na.avs" echo selecteven(^) >> "%%~na.avs" )
-
I tried videobruger's first. You almost got it... there was no .mkv extension in the script. However, I mucked around a bit, and got it! Now this process is almost entirely automated. This is the working code:
Code:for %%a in (*.mkv) do ( echo setmtmode(5,4^) > "%%~na.avs" echo ffmpegsource2("F:\New folder\%%a"^) >> "%%~na.avs" echo setmtmode(2^) >> "%%~na.avs" echo qtgmc(edithreads=2^) >> "%%~na.avs" echo selecteven(^) >> "%%~na.avs" )
Last edited by Downgraded286; 26th Feb 2016 at 11:23.
-
-
-
Look at Variable with modifier here
https://technet.microsoft.com/en-us/library/bb490909.aspx -
Similar Threads
-
Automatic chapter creation
By medwatt in forum Newbie / General discussionsReplies: 6Last Post: 4th Jun 2014, 20:41 -
Help with the AVISynth script
By Tri P in forum Newbie / General discussionsReplies: 0Last Post: 24th May 2014, 06:22 -
avisynth - How to write avisynth script for rgba overlay
By moelover in forum EditingReplies: 3Last Post: 13th Apr 2014, 12:24 -
How can i Use VDub Script[.vcf] into Avisynth Script[.avs] ( Megui )
By Maskoff in forum EditingReplies: 1Last Post: 25th Jun 2013, 15:30 -
avisynth script
By mmbwdpnz in forum Newbie / General discussionsReplies: 6Last Post: 24th Feb 2013, 00:01