i'm trying to set up a batch script that will auto-write .avs files for encoding video.
.avs is an avisynth script. it's used for (among other things) overlaying subtitles onto video for hardsubbing.
here's what i have right now.
this creates a .avs file for every .mkv in the folder, then adds the lines.
the problem is, it completely misses the "loadplugin..." line. i dont get it. every other line works.
i tried before to just use \n to denote a new line, and it wouldnt work either. that would have been preferable... but i'm having difficulty setting absolute path names without breaking it up into different lines.
but i have to have the loadplugin line there...
any ideas?
.avs is an avisynth script. it's used for (among other things) overlaying subtitles onto video for hardsubbing.
here's what i have right now.
Code:
FORFILES -m *.mkv -c "CMD /C echo DirectShowSource("@PATH", fps=23.976, audio=false, convertfps=true) >> @FNAME.avs"
FORFILES -m *.avs -c "CMD /C echo LanczosResize(480,272) # Lanczos (Sharp) >> @FILE"
FORFILES -m *.avs -c "CMD /C echo LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\VSFilter.dll") >> @FILE"
FORFILES -m *.ass -c "CMD /C echo TextSub("@PATH", 1) >> @FNAME.avs
this creates a .avs file for every .mkv in the folder, then adds the lines.
the problem is, it completely misses the "loadplugin..." line. i dont get it. every other line works.
i tried before to just use \n to denote a new line, and it wouldnt work either. that would have been preferable... but i'm having difficulty setting absolute path names without breaking it up into different lines.
but i have to have the loadplugin line there...
any ideas?
Last edited: