PDA

View Full Version : Log (Message): Attempted to divide by zero


SacredCultivator
5th July 2007, 01:25
Dear Readers,

Just recently been doing a few test encodes on a few videos and one is giving me a problem, as everything loads/ encodes okay except that I run into a problem after completion..

The video seems to have had some 'duration' added onto it...
Orig: 1h 8Min
Encode: 1h 21Min

The below is the message I get in the Log:

Exception when trying to update status while a job is running. Text: Attempted to divide by zero. stacktrace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at MeGUI.core.details.JobControl.UpdateGUIStatus(StatusUpdate su)Exception when trying to update status while a job is running. Text: Attempted to divide by zero. stacktrace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at MeGUI.core.details.JobControl.UpdateGUIStatus(StatusUpdate su)

And then I read a little about the Mod-## which can be the cause although other videos don't seem to have this problem..

The info on the Vid(RAW) I am using..
Res: 720x480
And I want to resize it to 640x480
Cropped 4 on both the left and right side, which gives me 712x480(Mod 8, Mod 32)

So maybe that could be the problem, but yeah the cropping was to remove excess 'black border on the left/right side...

Any help would be appreciated, thank you.

Dunno if it matters but my code that I use under AviSynth is:
Tomsmocomp(-1,1,1)
Crop(4,0,-4,-0,align=true)
Spline36Resize(640,480)
Removegrain(2)

There is a line for the MPEG2Source, but don't think it matters to show it.

mitsubishi
5th July 2007, 01:36
I wouldn't worry about that error, it has nothing to with the encode and won't affect it.

Looking at the times, you may have changed frame rate from 30 to 25. Can you post the avs script, it may help.

SacredCultivator
5th July 2007, 02:46
Hmm I did post up the script... just that I didn't post up the MPEG2Source as I dont' think that matters much...

EDIT: Checked teh Encode and yeah it is at 25frames... original is 29.97fps
And hmmm for the Frames... not too sure which settings in my profile causes the change.

EDIT: Should I post the Info of the settings listed when I click on 'config' or just upload the profile?

3rd EDIT: Dunno if it matters but hmmm I use this same script except change the Deinterlacer depending on the video and get no 'duration-added' with other videos so it confused me a bit when this happened...

SacredCultivator
5th July 2007, 15:09
Sorry for the Double Post but just realized that this only happens when I do xVid encodes, when I do h.264 it works fine... and actually this applies to ALL video's befor ei thought just that one project...

Here is the description given under my Profile:

-i "C:\Documents and Settings\Chris La\Desktop\asdf\Eri & Aika - Haru Beautiful Everyday (~Sexy 8 Beat '07~)\Eri & Aika - Haru Beautiful Everyday (~Sexy 8 Beat '07~).avs" -single -cq 0 -smoother 0 -max_key_interval 240 -vhqmode 4 -qpel -gmc -qmatrix "D:\Keepers\Subbing\eqm_v3lr.xcm" -closed_gop -lumimasking -max_bframes 3 -bvhq -threads 1 -avi "C:\Documents and Settings\Chris La\Desktop\asdf\Eri & Aika - Haru Beautiful Everyday (~Sexy 8 Beat '07~)\Eri & Aika - Haru Beautiful Everyday (~Sexy 8 Beat '07~).avi"

buzzqw
5th July 2007, 15:27
just fyi & and ~ are special character in dos encoding.. i will not use it (also.. a shorter path could help)

BHH

SacredCultivator
5th July 2007, 15:30
@Buzzqw: Well... My other files don't have those symbols and still getting wrong fps/duration...

Another example would be:
Alo Hello - Risa Niigaki

As for Filepaths all of mine in the past have been long as well and had no problems then... I am thinking maybe after those updates meGUI had a few days back might have done something to my xVid Codec as yeah before I had np's and now I do, although my h.264 encodes still work like normal...

ANy other info you may need?

buzzqw
5th July 2007, 15:36
... ehmm i have re-read your post :o

xvid_encraw will encode at 25 fps if in command line isn't specified a different fps...

it's a know bug of megui (iirc)

BHH

EDIT: squid80 build of xvid_encraw doesn't have this bug (you can grab it searching on this forum or in automkv \exe\encoder folder)

SacredCultivator
5th July 2007, 15:45
@buzzqw: Sorry for the dumb question but if I locate that on the forums and dl it.. do I put it in the directory that xvid_encraw is or... somewhere else?

EDIT: Searched and got to 'xvid_encraw - Patched with AviSynth' but the links are expired.
2nd EDIT: Sorry, could you by chance link me =X

buzzqw
5th July 2007, 15:55
here la latest post http://forum.doom9.org/showthread.php?p=948622#post948622 (and link to download)

put it where is old xvid_encraw..BUT i am not an expert of megui.. so i cannot say if will be all ok.. or not

BHH

SacredCultivator
5th July 2007, 16:00
So in a sense overwrite the files?

EDIT: Doing a test encode now.

buzzqw
5th July 2007, 16:04
rename the old files... just in case..

BHH

SacredCultivator
5th July 2007, 16:13
Well so far it seems no change as those messages still show up... but another 12 minutes and then file will finish... Bah really not sure what went wrong...


EDIT: Thank you very much for your assistance that seemed to have been the problem.. I appreciate your help and just in the nick of time to. Guess I must not keep the link you gave me bookmarked so I can stay up to date on it.

buzzqw
5th July 2007, 16:30
http://img249.imageshack.us/img249/6637/clipboard01af6.png (http://imageshack.us)

as you can see i haven't passed the -fps instruction but fps reported is 29.976

BHH

SacredCultivator
5th July 2007, 16:38
Going to test on a few other files to make sure it is working and I didn't just get lucky.

~bT~
5th July 2007, 17:05
^ the celtic druid build is the prob. using the squid80 build WILL solve it.

SacredCultivator
5th July 2007, 17:08
@bengali thug: Oh... I see.. yeah shall keep up with Squid80 then, thanks for the help.