VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. 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
    Quote Quote  
  2. Some media players can play AVS scripts. MPCHC for example.
    Quote Quote  
  3. 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.
    Quote Quote  
  4. He said he's using the command line so file associations and SendTo may not be an issue.
    Quote Quote  
  5. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Command line AVISynth player
    Mplayer
    Quote Quote  
  6. It looks like MPlayer will work, if I pass in the command line parameters "-vo null -ao null". This will use the null video/audio driver and thus will not have any GUI pop up (which is what I really want).

    Thanks everyone for the help.
    Quote Quote  
  7. AVSMeter might also be worth a try to playback avs files for log generation,..
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!