在 2015/12/5 3:26, Timo Rothenpieler 写道:
--- libavcodec/nvenc.c | 3 +++ 1 file changed, 3 insertions(+)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index
43b8e78..b8f7f91 100644 --- a/libavcodec/nvenc.c +++
b/libavcodec/nvenc.c @@ -762,6 +762,9 @@ static av_cold int
nvenc_encode_init(AVCodecContext *avctx) } }

+    ctx->encode_config.encodeCodecConfig.h264Config.sliceMode =
3; +
ctx->encode_config.encodeCodecConfig.h264Config.sliceModeData = 1;

It's missing a check if we are encoding h264 or hevc.
Does it have any negative sideeffects, or does it just increase the
image quality?

/* when there're b frames, set dts offset */ if
(ctx->encode_config.frameIntervalP >= 2) ctx->last_dts = -2;
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Yes, need add a check
Just aimed to increase image quality. Nvidia are doing some interal tests to tune the quality

Agatha Hu
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to