Type Error: Failed to convert string to float 'N/'
JagjitBhatia opened this issue · 2 comments
JagjitBhatia commented
Get an error: [Error] could not convert string to float: 'N/' every time I try to run it. Might be due to a different FFMPEG version.
PR for fix: #11
CrypticSignal commented
Please upgrade to v2.1.1
with pip3 install better-ffmpeg-progress --upgrade
and let me know if you ever run into this issue. For now, I will close this issue.
F-park commented
better-ffmpeg-progress/better_ffmpeg_progress/better_ffmpeg_progress.py
Lines 101 to 105 in 54be3c4
The TypeError
caused by this code.
- value will be
22.3x
orN/A
, and speed_str will be22.3
orN/
(line 102) - so
bool(speed_str != "0" and "N/A" not in speed_str) == True
(line 104) float("N/")
willraise TypeError()
(line 105)