carykh / jumpcutter

Automatically edits vidx. Explanation here: https://www.youtube.com/watch?v=DQ8orIurGxw
MIT License
3.07k stars 544 forks source link

Line 133: ZeroDivisionError: float division by zero #164

Open Duncluck opened 4 years ago

Duncluck commented 4 years ago

(I am new to python.)After getting everything installed from the requirements list, removing the TEMP folder, downloading and moving the 3 FFmpeg files into one folder, and encoding the selected video, I still had this problem.

There is another post about this matter but it didn't give me anything helpful. (github.com/carykh/jumpcutter/issues/110)<--talks about re-encoding which didn't help.

I would be grateful for any response. --OS:Windows 10 (64-bit)-- Full code (if helpful): https://pastebin.com/Z3WR93Bd Main Issue:

size= 1980kB time=00:00:11.49 bitrate=1411.3kbits/s speed= 167x video:0kB audio:1980kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.003847% Traceback (most recent call last): File "jumpcutter.py", line 133, in maxchunksVolume = float(getMaxVolume(audiochunks))/maxAudioVolume ZeroDivisionError: float division by zero

callmedougan commented 4 years ago

im curious about the MKV file - what was the original video size ?

(im in a similar category as yourself - just getting started with pythin coding)

Duncluck commented 4 years ago

only a few megabytes because I didn't want long tests just to find out they didn't work

callmedougan commented 4 years ago

would you be happy sending a drop box link (or similar) see if there is anything obvious

(i know you put up a pastebin post)