Merge branch 'nvcodec-fix-missing-IDR-data-for-nvh264enc-and-nvh265enc' into 'main'

nvcodec: fix missing IDR data for nvh264enc and nvh265enc

See merge request gstreamer/gstreamer!3044
This commit is contained in:
Paul GOULPIÉ 2024-05-03 19:07:03 +00:00
commit 929fd0ebbf
2 changed files with 2 additions and 0 deletions

View file

@ -513,6 +513,7 @@ gst_nv_h264_enc_set_encoder_config (GstNvBaseEnc * nvenc,
h264_config->chromaFormatIDC = 3;
}
h264_config->repeatSPSPPS = 1;
h264_config->idrPeriod = config->gopLength;
h264_config->outputAUD = h264enc->aud;

View file

@ -556,6 +556,7 @@ gst_nv_h265_enc_set_encoder_config (GstNvBaseEnc * nvenc,
GST_LOG_OBJECT (h265enc, "setting parameters");
config->profileGUID = selected_profile;
hevc_config->level = level_idc;
hevc_config->repeatSPSPPS = 1;
hevc_config->idrPeriod = config->gopLength;
config->encodeCodecConfig.hevcConfig.chromaFormatIDC = 1;