mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/nvenc: always output picture timing SEI
Interlaced encoding profits from it, or might even need it in some players. No harm in enabling it unconditionally. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
9aa2469930
commit
4e6638abb4
|
@ -879,9 +879,10 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx)
|
||||||
|
|
||||||
if (IS_CBR(cc->rcParams.rateControlMode)) {
|
if (IS_CBR(cc->rcParams.rateControlMode)) {
|
||||||
h264->outputBufferingPeriodSEI = 1;
|
h264->outputBufferingPeriodSEI = 1;
|
||||||
h264->outputPictureTimingSEI = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h264->outputPictureTimingSEI = 1;
|
||||||
|
|
||||||
if (cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ ||
|
if (cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ ||
|
||||||
cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_HQ ||
|
cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_HQ ||
|
||||||
cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_VBR_HQ) {
|
cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_VBR_HQ) {
|
||||||
|
@ -966,9 +967,10 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
|
||||||
|
|
||||||
if (IS_CBR(cc->rcParams.rateControlMode)) {
|
if (IS_CBR(cc->rcParams.rateControlMode)) {
|
||||||
hevc->outputBufferingPeriodSEI = 1;
|
hevc->outputBufferingPeriodSEI = 1;
|
||||||
hevc->outputPictureTimingSEI = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hevc->outputPictureTimingSEI = 1;
|
||||||
|
|
||||||
switch (ctx->profile) {
|
switch (ctx->profile) {
|
||||||
case NV_ENC_HEVC_PROFILE_MAIN:
|
case NV_ENC_HEVC_PROFILE_MAIN:
|
||||||
cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID;
|
cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID;
|
||||||
|
|
Loading…
Reference in New Issue