Log in

View Full Version : Autocrop.dll usage


juGGaKNot
12th August 2009, 18:04
I just want autocrop to crop the the nearest x16 resolution, not to cut anything else

right now i use

AutoCrop(3,16,16)

But if the clip is too dark it will cut too much

for ex : 1184x666 ( what i use ) mod16 must be cropped to 1184x656 ( nearest resolution ) but if the frame is too dark it will cut way more

how can i fix this, reading the documentation i think

AutoCrop(3,16,16,0,0,0,0,10,25,50,500,-0)

might do it but i am not sure, what should i use ?

Gavino
12th August 2009, 18:47
The purpose of AutoCrop is to detect 'black bars' and crop accordingly. If you already know that you want to crop to 1184x656, why not just use Crop?

Or to save yourself the calculation, write a simple function that works out the nearest multiple of 16 (f(x) = x/16*16) and use that with Crop.

Using AutoCrop for this is an unnecessary overhead, but if you really want to, it might work (I haven't tried it) with
AutoCrop(3, 16, 16, threshold=0, samples=1)

juGGaKNot
12th August 2009, 19:11
people will use it with other resolutions

k i will try and post, thnx

i should try on a complete black sample right ?

juGGaKNot
12th August 2009, 20:05
yes setting the threshold to 0 makes it cut only what is needed, in my case mod 16

AVIsource("C:\x264\movie.avi")
ConvertToYV12(matrix="PC.601")
LoadPlugin("C:\x264\bin\autocrop.dll")
AutoCrop(0, 16, 16, threshold=0)

uncompressed full black avi

rack04
12th August 2009, 20:56
Have you put any thought into resizing to the nearest mod16 resolution vs cropping?

spline64resize(16*(width/16),16*(height/16))

I just need to figure out how to automate addborders() to get to Blu-ray resolutions, i.e. 1280x720 and 1920x1080.

juGGaKNot
12th August 2009, 21:04
no way resize.

see avchd coder

rack04
12th August 2009, 21:06
no way resize.

see avchd coder

Sorry this makes no sense to me.

juGGaKNot
12th August 2009, 21:12
the avchd coder maker has his own app for this, see avchd coder.