gfx: Catch ffmpeg exceptions