Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
avcodec/nvenc: interlaced encoding needs picture timing SEI
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
- Loading branch information
Showing
with
8 additions
and
0 deletions.
-
+8
−0
libavcodec/nvenc.c
|
|
@@ -882,6 +882,10 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx) |
|
|
h264->outputPictureTimingSEI = 1; |
|
|
} |
|
|
|
|
|
if (avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT) { |
|
|
h264->outputPictureTimingSEI = 1; |
|
|
} |
|
|
|
|
|
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_VBR_HQ) { |
|
|
@@ -969,6 +973,10 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx) |
|
|
hevc->outputPictureTimingSEI = 1; |
|
|
} |
|
|
|
|
|
if (avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT) { |
|
|
hevc->outputPictureTimingSEI = 1; |
|
|
} |
|
|
|
|
|
switch (ctx->profile) { |
|
|
case NV_ENC_HEVC_PROFILE_MAIN: |
|
|
cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID; |
|
|
|