View Single Post
Old 15th September 2003, 15:35   #6  |  Link
tylo
Author of D2SRoBa
 
tylo's Avatar
 
Join Date: Mar 2003
Posts: 483
@r6d2

I've played around with the AutoCrop C++ code, and made a new version of the AutoCrop avisynth plugin. It enables AutoCrop itself to fill in the detected Top and Width for you, making it independent from D2SRoBa. This will make FACAR very much alike RB's AutoFitCD plugin in functionality (only it will not switch to the FACAR template autmatically after preview).

If you're interested, I will make it available to you (incl source code), so you can include it with your FACAR distribution.

Six new optional parameters:
- outFile : ini file name to write back cropping information
- outSection : ini section name
- outKeyLeft : ini key name for detected left
- outKeyTop : ini key name for detected top
- outKeyWidth : ini key name for detected width
- outKeyHeight : ini key name for detected height

When the outFile + outSection are specified, AutoCrop will write the output in preview mode(=1) only. I.e. it will no longer be neccesary with the extra call with mode=2. The new AutoCrop version is fully backward compatible with v1.1.

[AVISYNTH_FACAR DetectBorders]
..
2=AutoCrop(mode=1, ..., outFile=!ThisFile.ini, outSection="AVISYNTH_FACAR", outKeyTop="^DetectedTop.", outKeyHeight="^DetectedHeight")
..
!ThisFile.ini=C:\Program Files\DVD2SVCD\AVISYNTH.INI
tylo is offline   Reply With Quote