Relative Content

Tag Archive for pythonbashffmpeg

Why does my script return 0 when it fails? Bash, Whisper, ffmpeg

I have a bash script that executes whisper on all sound files in a directory. Whisper uses ffmpeg to decode sound files to a format it can handle. One of the files in the directory was corrupt and caused ffmpeg to fail. The first time I executed my script it returned 1 when it hit that file but when I try to reproduce the error it always returns 0.