im using the following script in ToK:
Code:
LoadPlugin("F:\!!!!!!!!!\Ripping\KVCD\MovieStacker\Filters\MPEG2Dec.dll")
LoadPlugin("F:\!!!!!!!!!\Ripping\KVCD\MovieStacker\Filters\FluxSmooth.dll")
LoadPlugin("F:\!!!!!!!!!\Ripping\KVCD\MovieStacker\Filters\LegalClip.dll")
LoadPlugin("F:\!!!!!!!!!\Ripping\KVCD\MovieStacker\Filters\Sampler.dll")
AviSource("F:\!!!!!!!!!\Ripping\KVCD\VIDEO\yeah2.avi")
LegalClip()
BilinearResize(352, 286, 4, 0, 504, 384)
FluxSmooth(7, 7)
TemporalSmoother(1, 2)
AddBorders(0, 1, 0, 1)
LegalClip()
Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##
AssumeFPS(29.970)
LoadPlugin("F:\!!!!!!!!!\Ripping\KVCD\MovieStacker\Filters\Sampler.dll")
oldfps = framerate
interval = round((FrameCount/30)/59.940)/10
nFrames = round(30)
SelectRangeEvery( (round(framecount/interval)),nFrames)
TMPEGenc starts to encode but it shows "Evaluate: Division by zero at line 25" in red text in the preview. the resulting mpg also contains that text.
line 25 is the SelectRangeEvery() function. Im guessing interval is zero here?
the avi is an XviD encoded avi. anyone have an idea what might be wrong.
please note im kinda new to KVCD stuff :P