I have an auto it script for converting video files to x264. Part of the script does an auto crop on the source video. How I currently accomplish this is by making a avs script that uses AutoCrop and then I use avsutil.exe to "play" (not sure of the best term here) the avs file. The avs script is written to print the crop values to a log file. Here is an example script:
LoadPlugin("C:\Program Files\meguiNewest\AutoCrop.dll")
SOURCE
numFrames = FrameCount
startFrame = Round(numFrames/10)
endFrame = Round(numFrames*9/10)
AutoCrop(2,4,2,0,0,0,0,30,50,startFrame,endFrame,0 )
WriteFile("SIZE_LOG", "Width")
WriteFile("SIZE_LOG", "Height")
This works most of the time, but every once an a while when I run avsutil.exe, my computer reboots and I find the avs file has been replaced with all 0 bytes.
Does anyone know of a replacement for avsutil.exe? Or another way of determining crop values without using a GUI?
Thanks
+ Reply to Thread
Results 1 to 7 of 7
-
-
I regularly use MPC-HC to preview AVS scripts without any problem. If memory serves me correctly AVS scripts aren't in the list of MPC-HC's supported file types, however you can open them using the File/Open menu. Or alternatively, place a shortcut for MPC-HC in the Windows SendTo folder, then you can preview scripts by right clicking on them and selecting SendTo/MPC-HC.
-
He said he's using the command line so file associations and SendTo may not be an issue.
Similar Threads
-
Player with the command line.
By Belini in forum ProgrammingReplies: 2Last Post: 29th Mar 2012, 06:29 -
Command-line command for fixing AVI?
By timur in forum ffmpegX general discussionReplies: 1Last Post: 23rd Sep 2009, 02:23 -
In the Beginning was the Command Line
By ahhaa in forum ComputerReplies: 2Last Post: 9th Oct 2008, 11:04 -
command line
By exekutive in forum ffmpegX general discussionReplies: 22Last Post: 1st Jun 2008, 23:44 -
Need A Software Video Player that can accept a command line argument
By SCDVD in forum Software PlayingReplies: 7Last Post: 14th Aug 2007, 12:38