Use ffmpeg return codes for error detection