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
ZeroDivisionError #28
Comments
@AndreLYL I was checking the code and I found this line
|
I have the same video, seems that cv2 can't get the FPS so it takes 0 as FPS, when I try setting the FPS manually it only echoes ' |
Same here, still not fixed |
Same error here. I hope the following helps with your debug research: 1. System info
2. Installations performed:$ sudo apt install python3-pip
$ pip3 install video-to-ascii
$ pip3 install opencv-python Because I had the same module error scenario, I installed 3. Command execution:$ video-to-ascii -f 300-remix.mp4 4. Error dump:Traceback (most recent call last):
File "/home/user/.local/bin/video-to-ascii", line 10, in <module>
sys.exit(main())
File "/home/user/.local/lib/python3.7/site-packages/video_to_ascii/cli.py", line 21, in main
player.play(ARGS.file, strategy=ARGS.strategy, output=ARGS.output, play_audio=ARGS.with_audio)
File "/home/user/.local/lib/python3.7/site-packages/video_to_ascii/player.py", line 23, in play
engine.play(output)
File "/home/user/.local/lib/python3.7/site-packages/video_to_ascii/video_engine.py", line 38, in play
with_audio=self.with_audio)
File "/home/user/.local/lib/python3.7/site-packages/video_to_ascii/render_strategy/ascii_strategy.py", line 113, in render
time_delta = 1./fps
ZeroDivisionError: float division by zero 5. ffprobe dump of used video file
|
Solved with b089c5f |
How to solve this Problem?
i used pip not pip3 to install opencv-python and video-to-ascii because it is not work
Traceback (most recent call last):
File "/home/andre/anaconda3/bin/video-to-ascii", line 10, in
sys.exit(main())
File "/home/andre/anaconda3/lib/python3.7/site-packages/video_to_ascii/cli.py", line 21, in main
player.play(ARGS.file, strategy=ARGS.strategy, output=ARGS.output, play_audio=ARGS.with_audio)
File "/home/andre/anaconda3/lib/python3.7/site-packages/video_to_ascii/player.py", line 23, in play
engine.play(output)
File "/home/andre/anaconda3/lib/python3.7/site-packages/video_to_ascii/video_engine.py", line 38, in play
with_audio=self.with_audio)
File "/home/andre/anaconda3/lib/python3.7/site-packages/video_to_ascii/render_strategy/ascii_strategy.py", line 113, in render
time_delta = 1./fps
ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered: