In libx264 wrapper, detect default settings and use medium profile to avoid failure.