Improve encode video config.