I've searched the internet and haven't found a solution. I hope this question does not come off as a duplicate.
I have the following files in the same folder:
- ffmpeg.exe (32-bit version)
- IN.mp4 (video codec - AVC , audio codec - PCM)
- RUN_FILE.bat and RUN_AVS.bat batch files
- SCRIPT.avs (avisynth script file)
- MSharpen.dll (sharpening filter for avisynth)
The text within RUN_FILE.bat
:
ffmpeg -i "IN.mp4" -c:v libx264 -crf 24 -c:a libmp3lame -aq 2 OUT.mp4
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 SCRIPT.avs
(3 lines):
LoadPlugin("D:\MSharpen.dll")
DirectShowSource("D:\IN.MP4")
MSharpen(15,150)
If I try loading the avisynth script with an external program such as media player classic it works fine (and sharpens the video frames).
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):
I find this confusing as ffmpeg is configured with --enable-avisynth
.
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).