[FFmpeg-devel] [PATCH 2/3] Optimize nvenc parameters, add 3 more presets: fast, medium, slow

Agatha Hu ahu at nvidia.com
Mon Sep 14 05:21:54 CEST 2015


在 2015/9/12 11:18, Philip Langdale 写道:
> On Fri, 11 Sep 2015 17:32:06 +0800
> Agatha Hu <ahu at nvidia.com> wrote:
>
>> From: ahu <ahu at ubuntu.(none)>
>>
>> ---
>>   libavcodec/nvenc.c |   59
>> +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed,
>> 54 insertions(+), 5 deletions(-)
>>
>> diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
>> index 3174b01..fd90f7b 100644
>> --- a/libavcodec/nvenc.c
>> +++ b/libavcodec/nvenc.c
>> @@ -610,8 +610,17 @@ static av_cold int
>> nvenc_encode_init(AVCodecContext *avctx) if (ctx->preset) {
>>           if (!strcmp(ctx->preset, "hp")) {
>>               encoder_preset = NV_ENC_PRESET_HP_GUID;
>> +        } else if (!strcmp(ctx->preset, "fast")) {
>> +            ctx->twopass = 0;
>> +            encoder_preset = NV_ENC_PRESET_HQ_GUID;
>
> Should this be HP_GUID?
>
> Your updated help text below says fast == hp.
>
>
> Rest is fine.
>
> --phil
>

Yes you're right, another typo.
Fix by attached patch (Based on Timo's branch, others seem fine to me).

Agatha Hu


-----------------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcode-nvenc-fix-fast-preset.patch
Type: text/x-patch
Size: 906 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150914/e0496b69/attachment.bin>


More information about the ffmpeg-devel mailing list