tp7/Sushi

ZeroDivisionError: Weights sum to zero, can't be normalized

shinchiro opened this issue · 8 comments

Encountered this error when testing a file:
http://www.datafilehost.com/d/d0cb08e1

Running in Sushi 0.4.3..

tp7 commented

I'll also need the chapters. Sushi doesn't extract them to a separate file automatically, you can do this with mkvextract(gui).

thanks for fixing this problem. Anyhow when can I expect new release with this bug fixed

tp7 commented

You can try this build, I won't be releasing a new official version for every minor update.

thx, but I still getting the same error when trying other video:

Traceback (most recent call last):
File "sushi.py", line 730, in
File "sushi.py", line 723, in parse_args_and_run
File "sushi.py", line 603, in run
File "sushi.py", line 314, in average_shifts
File "numpy\lib\function_base.pyo", line 539, in average
ZeroDivisionError: Weights sum to zero, can't be normalized

tp7 commented

You get same error every time one of the chapter groups ended up empty (all evens in there are linked to others). I'd have to look at your other sample to determine if it's the same kind of error or a completely different one.

tp7 commented

It was a completely different error - this one happened because your script had a chapter group with a single comment it in. Fixed in this build.