Log in

View Full Version : LoadPlugin: unable to load "autocrop.dll"


Darkwhisperer
8th February 2010, 14:29
I'm using x264 CLI to convert a file. The AVS file Im using for input is as follows:


LoadPlugin("autocrop.dll")
AVISource("C:\file1.avi", audio=false)
AutoCrop(0,16,16,0,0,0,0,30,10,200)


x264 reports the error:
avs [error]: LoadPlugin: unable to load "autocrop.dll"

This makes no sense, as "autocrop.dll" is sitting in the Avisynth plugins directory. Im wondering if this is a 32-bit/64-bit issue. Avisynth is 32-bit, Im assuming the plugin will be as well, and Im running 64-bit x264 on x64 Windows Vista. Could that be causing this issue? If not, then any other ideas? Please help!

Guest
8th February 2010, 14:35
If it's in the plugins directory then remove the loadplugin() line. Only use that when it is NOT in the plugins directory, and then you should use a full path to the DLL.

Gavino
8th February 2010, 14:37
avs [error]: LoadPlugin: unable to load "autocrop.dll"

This makes no sense, as "autocrop.dll" is sitting in the Avisynth plugins directory.
If it's in the plugins directory, you don't need to use LoadPlugin - it will be loaded automatically. If not, you need to use the full pathname.

EDIT: neuron2 beat me to it. Nice to see we both agree on the answer. :)

Darkwhisperer
8th February 2010, 14:38
Awesome, such a noob mistake :)

Thanks folks!

Darkwhisperer
9th February 2010, 09:01
Well, I'm not out the woods yet, it seems.

I ran into an AVISource error, searching suggested something about trying to run it too many times, or too many at once, something like that. So I figured AviSynth was a bit buggered (DirectShowSource also not working, but that's another issue). I rebooted my machine, uninstalled my AviSynth, downloaded the latest version, and installed. AVISource is now working, but the AutoCrop is still broken. The dll is in the plugins folder. I'm not using LoadPlugin. My script is simply and AviSource, followed by the AutoCrop. Please help.

stax76
9th February 2010, 09:50
Are you sure it's broken and not rather problem sits between keyboard and chair? ;)

Darkwhisperer
9th February 2010, 10:06
very funny stax :P

I'm still learning here. I aint no expert. So naturally problem is between keyboard and chair.

Keiyakusha
9th February 2010, 10:11
but the AutoCrop is still broken
So what it says now? Because it shouldn't show the same error if you removed that loadplugin line.

Darkwhisperer
9th February 2010, 10:22
What can I say, Keiyakusha. I know it shouldnt show that same error, but sadly it does. I cant make any sense of it.

Taurus
9th February 2010, 10:50
Where did you get the autocrop.dll?
Maybe it's broken.
Did you get it from here?http://avisynth.org/warpenterprises/
Redownload and try again.
(version 1.2 produced by len0x should be fine)

Darkwhisperer
9th February 2010, 11:32
Well, Taurus, I downloaded a newer version from the link supplied. Deleted the previous one, and dropped the new one into the "plugins" folder. Unfortunately, it didn't help.

Script:

AVISource("c:\file1.avi", audio=false)
AutoCrop(0,16,16,0,0,0,0,30,10,200)

Error (from x264.exe):
avs [error]: Script error: there is no function named "AutoCrop"
(C:\file1.avs, line 2)

Darkwhisperer
9th February 2010, 12:05
I put the dll in my root folder and tried the following:


LoadPlugin("c:\AutoCrop.dll")
AVISource("C:\file1.avi", audio=false)
AutoCrop(0,16,16,0,0,0,0,30,10,200)


Got the error:
avs [error]: LoadPlugin: unable to load "c:\AutoCrop.dll"

stax76
9th February 2010, 13:02
Something don't make sense here, you could try StaxRip which uses autocrop.dll by default. StaxRip performs very strict verifications everything being in place and working, you just have to follow instructions if gives carefully.

Darkwhisperer
9th February 2010, 14:04
Good idea stax :)

I'm running Staxrip now, and it encodes fine. I've seen the autocrop avs script, and updated my script to say ConvertToYV12().AutoCrop(0,16,16,0,0,0,0,30,10,200). Didn't help in the least. Same error from x264 executable. Are my parameters for Autocrop correct?

Here's my first pass command-line for x264 (just in case):

C:\Hatish\Conv_App\new\ConvertApp_2008\ConvApp\bin\Debug\Apps\x264.exe --threads 2 --profile high --preset veryslow --tune film --pass 1 --stats "C:\Hatish\Conv_App\new\ConvertApp_2008\ConvApp\bin\Debug\Temp\file1.avi.stats" --bitrate 892 -o NUL "C:\Hatish\Conv_App\new\ConvertApp_2008\ConvApp\bin\Debug\Temp\file1.avi.avs"

I still suspect that this is a 32-bit/64-bit issue. Downloading 32-bit x264, and trying that now. You never know, it might work :D

Darkwhisperer
9th February 2010, 15:17
Well, turns out it was a 32-bit/64-bit issue. I used the 32-bit version of x264, and it worked like a charm.

Thanks to all you guys who have helped :)

If your'll know of an CLI-app that allows me to use 32-bit Avisynth, and push it into 64-bit x264, and doesn't slow it down such that there's no gain, please let me know.

For the record, the 32-bit is running about 3 times as fast as the 64-bit. Go figure!

MuLTiTaSK
9th February 2010, 18:26
@Darkwhisperer

Download ->avs4x264.exe (bit.ly/8D2vRi)
rename avs4x264.exe to x264.exe
rename the 64-bit x264.exe your using to x264_64.exe
place them in the same folder
continue using 64-bit builds of x264 with 32-bit AviSynth;)
hope this helps