Skip to content

Commit 0d49f7d

Browse files
committed
avcodec/nvenc: interlaced encoding needs picture timing SEI
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
1 parent 9aa2469 commit 0d49f7d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libavcodec/nvenc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,10 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx)
882882
h264->outputPictureTimingSEI = 1;
883883
}
884884

885+
if (avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT) {
886+
h264->outputPictureTimingSEI = 1;
887+
}
888+
885889
if (cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ ||
886890
cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_HQ ||
887891
cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_VBR_HQ) {
@@ -969,6 +973,10 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
969973
hevc->outputPictureTimingSEI = 1;
970974
}
971975

976+
if (avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT) {
977+
hevc->outputPictureTimingSEI = 1;
978+
}
979+
972980
switch (ctx->profile) {
973981
case NV_ENC_HEVC_PROFILE_MAIN:
974982
cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID;

0 commit comments

Comments
 (0)