more pythonic way of handling ffmpeg failure