Log in

View Full Version : HELP. There is no function named, FFMpegSource2


BlockABoots
26th March 2016, 19:41
I have used FFMpegSoruce2 command fine in the past but have just tried it today and im getting a script error...


There is no function named, FFMpegSource2,

Im using AvsPmod, and this is the script im using....

video=FFMpegSource2("G:\Video Captures\2016-03-20-1344-48.mp4",atrack=-1)
video1=tweak(video,sat=1.1,bright=-10,cont=1.2)
video2=trim(video1,2440,9200) +trim(video1,49910,65700)
video3=fadein(video2,50).fadeout(150)
return video3


In the plugins folder in avisynth i have the following file...

FFMS2.avsi
ffms2.dll
ffms2.lib
ffmsindex.exe

any ideas why im getting this error message?

kuchikirukia
26th March 2016, 21:05
And when you use LoadPlugin and Import...?

If it works when you manually load them then something probably happened to your autoload settings. (Perhaps avisynth wasn't even autoloading from the folder you thought it was and you deleted that)

BlockABoots
26th March 2016, 22:12
And when you use LoadPlugin and Import...?

If it works when you manually load them then something probably happened to your autoload settings. (Perhaps avisynth wasn't even autoloading from the folder you thought it was and you deleted that)

If i add the line...

LoadPlugin(ffms2.dll)

at the top of my script i get the error message, "I dont know what ffms2.dll means'

StainlessS
26th March 2016, 23:55
There are both C and C++ version knocking about (C versions need LoadCPlugin)

If it were the CPP version, (and your plugins directory does not have some problem) then it would auto load from plugins.

Add the path to the dll, it cant find it, also use LoadCPlugin("Path\...\ffms2.dll")

I dont know what ffms2.dll means

You forgot the quotes around filename.

BlockABoots
27th March 2016, 00:23
Yep using, Loadplugin("C:\Program Files (x86)\AviSynth\plugins\ffms2.dll") wprked, thanks!!

Any now it seem to autoload when i removed the above script also, very odd.

Thanks for the help!!