digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   tmpgenc error? Evaluate: Division by zero at line 25? (http://www.digitalfaq.com/archives/encode/5894-tmpgenc-error-evaluate.html)

Whacko 09-30-2003 03:43 PM

tmpgenc error? Evaluate: Division by zero at line 25?
 
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

rendalunit 09-30-2003 04:43 PM

remove sampler(length=24)

Whacko 09-30-2003 05:00 PM

hmm seems to work... but using ToK i still get the error 2 times before it starts encoding(closes TMPEGenc, and restarts 2 times) is this normal?


All times are GMT -5. The time now is 11:34 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.