The file BatchConvert.bat has the following text:įor %%a in ("Source*.*") do DirectShowSource("%%a") > "batchScript.avs" & MSharpen(10,120) > "batchScript.avs" & ffmpeg -i "batchScript.avs" -n -c:v libx264 -crf 24 -c:a libmp3lame -b:a 192k "Target\%%~na.mp4" & del "batchScript.avs"
The folder and file layout is as following: Maybe I should have stated that in the OP.
In my case the plugin folder is C:\Program Files (x86)\AviSynth 2.5\plugins.īTW I'm running Windows 7 Ultimate with SP1 (64 bit) with an Intel i5-3570K, 16GB ram etc. Make sure you copied MSharpen.dll to the avisynth plugin folder beforehand and restarted your computer. MSharpen plugin for avisynth (downloaded from MSharpen official link).
I gave his answer +1 but I think an answer should be such that it is a full solution for the question, so I'm writing my own answer.Īnyway, here's the combination that worked for me (I hope posting URLs is OK):įFMPEG 32-bit version 2.5.2 (downloaded from )Īvisynth 2.5.8 (downloaded from official build) Rogerdpack's remark is what made me systematically try old versions of ffmpeg etc. it seems it was a matter of versions after all.
I'd appreciate help with this - This is part of a larger and very important project (automatically scanning a folder with hundreds of video files, sharpening and re-encoding them to another folder with the same filenames). I find this confusing as ffmpeg is configured with -enable-avisynth. Going to the command line and running RUN_FILE.bat works as expected, however running RUN_AVS.bat I get the following error (see screenshot): If I try loading the avisynth script with an external program such as media player classic it works fine (and sharpens the video frames). The text within SCRIPT.avs (3 lines): LoadPlugin("D:\MSharpen.dll") The text within RUN_AVS.bat: ffmpeg -i "SCRIPT.avs" -c:v libx264 -crf 24 -c:a libmp3lame -aq 2 OUT.mp4 The text within RUN_FILE.bat: ffmpeg -i "IN.mp4" -c:v libx264 -crf 24 -c:a libmp3lame -aq 2 OUT.mp4