DarkTrick / python-video-silence-cutter

Python script, that uses ffmpeg and ffprobe to cut silences away from videos
Creative Commons Zero v1.0 Universal
43 stars 16 forks source link

windows incompatible #7

Closed kubinka0505 closed 1 year ago

kubinka0505 commented 1 year ago
  File "C:\Users\Jakub\python-video-silence-cutter\silence_cutter.py", line 26, in findSilences
    for i in range (len(words)):
                            ^^^^^
ValueError: could not convert string to float: '-2.08333e-05\\r'

cba

DarkTrick commented 1 year ago

Thank you very much for reporting! Can you possibly provide a video file?

I will need a while to fix this, as I'm too busy at the moment.

sbayrakli commented 1 year ago

do not leave optional parameters blank when starting...

DarkTrick commented 1 year ago

@kubinka0505

Can you please check if the script in branch fix/windows_cutting will fix your problem? You can get the file via git clone -b fix/windows_cutting https://github.com/DarkTrick/python-video-silence-cutter.git

Otherwise: I'd like to analyze the problem. Could you please do the following:

  1. Open silence_cutter.py, search for log_level = logging.ERROR and set it to log_level = logging.DEBUG.
  2. Run the script on the video file inside testdata: python3 silence_cutter.py ./testdata/simple_video.mkv. In case the error does not occur with this file, could you use the file you had the error with?
  3. Please share the silence_cutter.log file, that will be created
DarkTrick commented 1 year ago

possibly related: https://github.com/DarkTrick/python-video-silence-cutter/issues/6