Purfview / whisper-standalone-win

Whisper & Faster-Whisper standalone executables for those who don't want to bother with Python.
1.35k stars 66 forks source link

Crash when batch processing reaches video file without Audio #280

Closed Echo51 closed 4 months ago

Echo51 commented 4 months ago

Hi,

I process a large amount of short .mp4 videos downloaded from the internet, via the *.mp4 wildcard for inputting many files. However when this reaches an .mp4 with no audio track, it crashes

Output: `Starting work on: .\videos\BoY9gBFAJYm, 2018-10-01.mp4

Traceback (most recent call last): File "D:\whisper-fast_XXL__main.py", line 1668, in File "D:\whisper-fast_XXL__main__.py", line 1552, in cli File "faster_whisper\transcribe.py", line 319, in transcribe File "faster_whisper\audio.py", line 52, in decode_audio File "faster_whisper\audio.py", line 103, in _resample_frames File "faster_whisper\audio.py", line 90, in _group_frames File "faster_whisper\audio.py", line 80, in _ignore_invalid_frames File "av\container\input.pyx", line 211, in decode File "av\container\input.pyx", line 142, in demux File "av\container\streams.pyx", line 117, in av.container.streams.StreamContainer.get IndexError: tuple index out of range [3292] Failed to execute script 'main__' due to unhandled exception!`

Thanks for an amazing piece of software otherwise!

Purfview commented 4 months ago

Try --check_files

Echo51 commented 4 months ago

Thanks, that did it! Didn't think to look through the commandlist first, sorry!