Log in

View Full Version : wierdo error using bicubicresize served to tmpg


fisix
14th June 2002, 12:32
i have an avs file with the following line in it:

BicubicResize(352,576,0.33,0.33,8,4,620,460)

tmpg barfs and throws a devide by zero.
if instead i use the folloing in place of the earlier line:

BicubicResize(480,576)

tmpg opens it up just fine.

i am using avisynth 1.0b7d (dividee latest, as far as i know) and the latest tmpg 2.55. my source is a capture from vhs to 640x480ntsc, and the full script that doesn't work is:

LoadPlugin("c:\tools\divtools\virdub\decomb.dll")
LoadPlugin("c:\tools\divtools\virdub\AVISynth_Spatial.dll")
LoadPlugin("c:\tools\divtools\virdub\SimpleResize.dll")
LoadPlugin("c:\tools\divtools\virdub\Tweak.dll")
AVISource("e:\capit\capture.avi")
Trim(380,130126)
Crop(14,10,620,460)
Tweak(hue=0,sat=1.1,bright=0,cont=1.0)
#FieldDeinterlace(blend=false,chroma=true)
Telecide()
Decimate(cycle=5)
BicubicResize(480,576,0.33,0.33,8,4,620,460)
#BicubicResize(480,576)
TemporalSoften(1,1,1)


if i instead use virtualdub to read the avs then framserve an avi to tmpg, it works fine.

anyideas?

-fisix

hakko504
14th June 2002, 12:46
You are cropping twice, first a direct crop call and then again in the resize. The second crop will try to get a frame that is 620 wide from a frame that is only 612 wide. Skip the second crop (and possibly adjust the values in the first).

fisix
15th June 2002, 01:14
hmm.. ok. bleaugh. silly mistake. i'll have to wait till i see my proc computer again (monday) before i can test the serve to tmpg.

-f

fisix
18th June 2002, 00:45
the fix worked, though i went with the second crop line (the one included in the bicubicresize) because i read on the videotools.net page that this way is faster. who knows by how much.

thx

-fisix

HomR
27th June 2002, 23:06
A little OT but Tmpgenc is up to version 2.6 now.