[FFmpeg-devel] [PATCH] nvenc set slice number to 1 to improve encoding quality

Agatha Hu ahu at nvidia.com
Mon Dec 7 06:22:27 CET 2015


在 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 at 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
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the ffmpeg-devel mailing list