Fix for ffmpeg 6 (nvenc hevc doesn't support b frames)

This commit is contained in:
dec05eba 2023-03-10 10:16:09 +01:00
parent 8ca1ac70e8
commit 689419a782

View File

@ -413,6 +413,8 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt,
codec_context->bit_rate = 0;
#endif
av_opt_set_int(codec_context->priv_data, "b_ref_mode", 0, 0);
//codec_context->rc_max_rate = codec_context->bit_rate;
//codec_context->rc_min_rate = codec_context->bit_rate;
//codec_context->rc_buffer_size = codec_context->bit_rate / 10;