obs-ffmpeg: Do not use CBR by default for FFmpeg

The FFmpeg output source will now mostly be used for file output, so
using CBR by default makes no real sense.
master
jp9000 2015-01-18 07:22:33 -08:00
parent 8ffd7ec16c
commit f091f062f0
1 changed files with 1 additions and 3 deletions

View File

@ -114,10 +114,8 @@ static bool open_video_codec(struct ffmpeg_data *data)
AVCodecContext *context = data->video->codec;
int ret;
if (data->vcodec->id == AV_CODEC_ID_H264) {
if (data->vcodec->id == AV_CODEC_ID_H264)
av_opt_set(context->priv_data, "preset", "veryfast", 0);
av_opt_set(context->priv_data, "x264-params", "nal-hrd=cbr", 0);
}
ret = avcodec_open2(context, data->vcodec, NULL);
if (ret < 0) {