Browse Source

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.
jp9000 10 years ago
parent
commit
f091f062f0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      plugins/obs-ffmpeg/obs-ffmpeg-output.c

+ 1 - 3
plugins/obs-ffmpeg/obs-ffmpeg-output.c

@@ -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) {