Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division By 0 #9

Open
Kyvski opened this issue Nov 3, 2019 · 1 comment
Open

Division By 0 #9

Kyvski opened this issue Nov 3, 2019 · 1 comment

Comments

@Kyvski
Copy link

Kyvski commented Nov 3, 2019

Sometimes changing the threshold level prevents this, but waiting 10+ min just for it to fail is getting annoying. It already takes forever, I don't want to run the program 2 or 3 times just for one video. If you could fix this, it would be much appreciated!

Traceback (most recent call last): 65536kB time=00:50:13.13 bitrate= 178.2kbits/s speed=7.55x
File "C:\Users\kylep\Documents\jumpcutter-master\Alt\video-remove-silence", line 288, in
out_wav.writeframes(compress_audio(args, wav, audio_start_frame, audio_end_frame, audio_result_frames))
File "C:\Users\kylep\Documents\jumpcutter-master\Alt\video-remove-silence", line 250, in compress_audio
r = i / (crossfade_length - 1)
ZeroDivisionError: division by zero

Kyvski added a commit to Kyvski/video-remove-silence that referenced this issue Nov 12, 2019
@Kyvski
Copy link
Author

Kyvski commented Nov 12, 2019

In case anyone else has this issue, I have a fixed version on my fork. Not sure if it's efficient or whatever, so I'm not going to submit a pull request. Sound seems unaffected by my edit, so I think it's ok. It works at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant