File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -796,6 +796,11 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
796796 if (avctx -> codec -> id == AV_CODEC_ID_H264 ) {
797797 ctx -> encode_config .encodeCodecConfig .h264Config .adaptiveTransformMode = NV_ENC_H264_ADAPTIVE_TRANSFORM_ENABLE ;
798798 ctx -> encode_config .encodeCodecConfig .h264Config .fmoMode = NV_ENC_H264_FMO_DISABLE ;
799+ ctx -> encode_config .encodeCodecConfig .h264Config .outputBufferingPeriodSEI = 1 ;
800+ ctx -> encode_config .encodeCodecConfig .h264Config .outputPictureTimingSEI = 1 ;
801+ } else if (avctx -> codec -> id == AV_CODEC_ID_H265 ) {
802+ ctx -> encode_config .encodeCodecConfig .hevcConfig .outputBufferingPeriodSEI = 1 ;
803+ ctx -> encode_config .encodeCodecConfig .hevcConfig .outputPictureTimingSEI = 1 ;
799804 }
800805 }
801806 } else if (avctx -> global_quality > 0 ) {
You can’t perform that action at this time.
0 commit comments