make sure to use correct encode if ffmpeg is not installed