Log in

View Full Version : AutoCrop/Perl Automation


Jeff Mott
27th March 2004, 18:46
I've been writing a Perl script to automate some encoding tasks. And I get a strange effect with AutoCrop (http://www.avisynth.org/warpenterprises/files/autocrop_25_dll_20030617.zip). I set autocrop to mode 2 so it writes a log of the crop numbers that I can read in with Perl. Now, if I open this AVS script file in some media player myself (i.e., double click) then I might get e.g., Crop(0,0,720,480). But if I open the AVS script file in some media player via the Perl script (e.g., system(q`"c:/program files/windows media player/mplayer2.exe" "c:/path/to/script.avs"`)) then the autocrop log file will always remove 2 extra pixels off the left and the right. Same AVS script. Same media player. Different results. I don't understand why. Any ideas?