在 2015/9/12 11:18, Philip Langdale 写道:
On Fri, 11 Sep 2015 17:32:06 +0800
Agatha Hu <a...@nvidia.com> wrote:
From: ahu <ahu@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.
-----------------------------------------------------------------------------------
>From c8dc71d311989b536ba63c9a7381d0aefd6c7bf9 Mon Sep 17 00:00:00 2001
From: Agatha Hu <a...@nvidia.com>
Date: Mon, 14 Sep 2015 11:15:19 +0800
Subject: [PATCH] avcode nvenc fix fast preset
X-NVConfidentiality: public
---
libavcodec/nvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 4c387fe..18bcd96 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -616,7 +616,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
encoder_preset = NV_ENC_PRESET_HQ_GUID;
ctx->twopass = 0;
} else if (!strcmp(ctx->preset, "fast")) {
- encoder_preset = NV_ENC_PRESET_HQ_GUID;
+ encoder_preset = NV_ENC_PRESET_HP_GUID;
ctx->twopass = 0;
} else if (!strcmp(ctx->preset, "hq")) {
encoder_preset = NV_ENC_PRESET_HQ_GUID;
--
1.9.5.github.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel