Add option to switch between Libav and FFmpeg.