[FFmpeg-devel] unsubscribe

2019-01-17 Thread 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

[FFmpeg-devel] [PATCH] Fix H264 and HEVC vui info update

2016-03-03 Thread Agatha Hu
--- libavcodec/nvenc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index a3b02fa..5694f17 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -867,15 +867,22 @@ static av_cold int

Re: [FFmpeg-devel] [PATCH] nvenc.c Fix H264 and HEVC vui info update

2016-03-03 Thread Agatha Hu
Yes. That's stange, let me try again On 2016/3/4 14:50, Timothy Gu wrote: On Fri, Mar 04, 2016 at 12:45:47PM +0800, Agatha Hu wrote: --- libavcodec/nvenc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) This patched is corrupted by your mail client

[FFmpeg-devel] [PATCH] nvenc.c Fix H264 and HEVC vui info update

2016-03-03 Thread Agatha Hu
--- libavcodec/nvenc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index a3b02fa..5694f17 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -867,15 +867,22 @@ static av_cold int

[FFmpeg-devel] [PATCH] Fix H264 and HEVC vui info update

2016-03-03 Thread Agatha Hu
--- libavcodec/nvenc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index a3b02fa..5694f17 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -867,15 +867,22 @@ static av_cold int

Re: [FFmpeg-devel] [PATCH] nvenc set slice number to 1 to improve encoding quality and clamp initial qp value to [1, 51]

2015-12-13 Thread Agatha Hu
performance that impacts some higher resolutions which can't be encoded in realtime anymore. If that's not the case, this LGTM. No, it won't affect performance, we did lots of internal tests, mainly focused on quality improvement. But if it makes performance worse we won't apply it anyway. Agatha Hu

[FFmpeg-devel] [PATCH] nvenc set slice number to 1 to improve encoding quality and clamp initial qp value to [1, 51]

2015-12-10 Thread Agatha Hu
--- libavcodec/nvenc.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 43b8e78..6365434 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -762,6 +762,17 @@ static av_cold int

[FFmpeg-devel] [PATCH] nvenc set slice number to 1 to improve encoding quality and clamp initial qp value to [1, 51]

2015-12-10 Thread Agatha Hu
--- libavcodec/nvenc.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 43b8e78..6365434 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -762,6 +762,17 @@ static av_cold int

Re: [FFmpeg-devel] [PATCH] nvenc set slice number to 1 to improve encoding quality and clamp initial qp value to [1, 51]

2015-12-10 Thread Agatha Hu
On 2015/12/11 11:10, Agatha Hu wrote: --- libavcodec/nvenc.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 43b8e78..6365434 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -762,6 +762,17

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

2015-12-06 Thread Agatha Hu
--- libavcodec/nvenc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 43b8e78..f0e5a19 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -762,6 +762,17 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)

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

2015-12-06 Thread Agatha Hu
在 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

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

2015-12-06 Thread Agatha Hu
heck 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

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

2015-12-06 Thread Agatha Hu
--- libavcodec/nvenc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 43b8e78..f0e5a19 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -762,6 +762,17 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)

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

2015-12-03 Thread Agatha Hu
--- 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) }

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

2015-12-03 Thread Agatha Hu
--- 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) } }

[FFmpeg-devel] have some major changes for nvenc support

2015-11-05 Thread Agatha Hu
venc_h264 -preset slow -profile:v main -async 1 -b:v 25M -bufsize 25M -maxrate 25M -refs 1 -bf 2 $1_wvga.mp4 \ -map [out4] -an -vcodec nvenc_h264 -preset slow -profile:v main -async 1 -b:v 10M -bufsize 10M -maxrate 10M -refs 1 -bf 2 $1_cif.mp4 Thanks Agatha Hu >From 4bb843a47cbc

Re: [FFmpeg-devel] have some major changes for nvenc support

2015-11-05 Thread Agatha Hu
在 2015/11/5 18:31, wm4 写道: On Thu, 5 Nov 2015 16:23:04 +0800 Agatha Hu <a...@nvidia.com> wrote: 2) We use AVFrame::opaque field to store a customized ffnvinfo struture to prevent expensive CPU<->GPU transferration. Without it, the workflow will be like CPU AVFrame input-->copy t

[FFmpeg-devel] [PATCH] fix nvenc potential profile error when encoding yuv444p

2015-10-28 Thread Agatha Hu
--- libavcodec/nvenc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 0e6ef43..083e494 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -912,6 +912,11 @@ static av_cold int nvenc_encode_init(AVCodecContext

[FFmpeg-devel] [PATCH] fix nvenc potential profile error when encoding yuv444p

2015-10-28 Thread Agatha Hu
--- libavcodec/nvenc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 0e6ef43..083e494 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -912,6 +912,11 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)

Re: [FFmpeg-devel] [PATCH] fix nvenc potential profile error when encoding yuv444p

2015-10-28 Thread Agatha Hu
在 2015/10/28 14:53, Agatha Hu 写道: --- libavcodec/nvenc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 0e6ef43..083e494 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -912,6 +912,11 @@ static av_cold int

Re: [FFmpeg-devel] [PATCH] fix b frame n_quant_offset

2015-10-15 Thread Agatha Hu
在 2015/10/9 17:38, Agatha Hu 写道: --- libavcodec/nvenc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 18bcd96..0e6ef43 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -742,8 +742,6 @@ static av_cold int

[FFmpeg-devel] [PATCH] fix b frame n_quant_offset

2015-10-09 Thread Agatha Hu
--- libavcodec/nvenc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 18bcd96..0e6ef43 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -742,8 +742,6 @@ static av_cold int nvenc_encode_init(AVCodecContext

[FFmpeg-devel] [PATCH] fix b frame n_quant_offset for nvenc

2015-10-07 Thread Agatha Hu
--- libavcodec/nvenc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 18bcd96..0e6ef43 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -742,8 +742,6 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)

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

2015-09-13 Thread Agatha Hu
在 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(-)

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

2015-09-11 Thread Agatha Hu
he log output. 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.

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

2015-09-11 Thread Agatha Hu
From: ahu --- 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

[FFmpeg-devel] [PATCH 1/3] change cuda ctx creation flag

2015-09-11 Thread Agatha Hu
From: agathah --- libavcodec/nvenc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 5490652..3174b01 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -580,7 +580,7 @@ static av_cold int

[FFmpeg-devel] [PATCH 3/3] merge compute initialQP sections

2015-09-11 Thread Agatha Hu
--- libavcodec/nvenc.c | 101 ++-- 1 file changed, 42 insertions(+), 59 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index fd90f7b..57aae33 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -800,69 +800,52 @@ static

[FFmpeg-devel] [PATCH] change flag of cuCtxCreate to avoid CPU spins

2015-09-10 Thread Agatha Hu
--- libavcodec/nvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 7c683ea..a20356f 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -580,7 +580,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)

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

2015-09-10 Thread Agatha Hu
doesn't seem right at all, what is it supposed to do? Keep in mind that twopass is a tristate, with the default beeing -1, which means autoselect. Sorry I made a mistake +if (!ctx->twopass < 1) { It should be +if (ctx->twopass < 1) { No wonder it doesn't s

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

2015-09-10 Thread Agatha Hu
ays frame output by the given amount of frames.", OFFSET(buffer_delay), AV_OPT_TYPE_INT, { .i64 = INT_MAX }, 0, INT_MAX, VE }, { NULL } * Unknown Key * 0xA6DA5D0F ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel I'll give you answer later. But there's a more urgent fix, I've sent the patch, only one-line changed. It's the creation flag of cuCtxCreate, currently is 0(default) which will cause CPU thread spins when waiting for GPU to return thus decrease the CPU performance. Change it to 4(CU_CTX_SCHED_BLOCKING_SYNC) could solve it. Agatha Hu ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] Optimized parameters for NVENC

2015-09-09 Thread Agatha Hu
My colleagues recently optimized some initial parameter settings for nvenc extension, it improves the PSNR result by approximately 0.5dB. The main idea is assign some optimized initialQPs. I'll send the patch after integrate his improvement to nvenc.c

Re: [FFmpeg-devel] [PATCH] nvenc: Compensate for hardware trying to mess with aspect ratio of DVD content.

2015-01-21 Thread Agatha Hu
在 2015/1/22 12:29, Philip Langdale 写道: On Thu, 22 Jan 2015 12:15:44 +0800 Agatha Hu a...@nvidia.com wrote: We will fix the issue in driver, overscan compensation will be applied to input DAR *only* if the DAR is 4:3 or 16:9, otherwise won't unnecessarily modify the aspect ratio for resolutions

Re: [FFmpeg-devel] [PATCH] nvenc: Compensate for hardware trying to mess with aspect ratio of DVD content.

2015-01-21 Thread Agatha Hu
On 2015/1/21 16:00, Reimar Döffinger wrote: On 21.01.2015, at 07:17, Agatha Hu a...@nvidia.com wrote: On 2015/1/18 4:01, Philip Langdale wrote: Here's the reply from NVENC engineers It is not same thing as SAR. It is the display aspect ratio i.e width/height = DAR/SAR The calculation

[FFmpeg-devel] [PATCH] avcodec/nvenc: add repeatSPSPPS flag for streaming

2015-01-20 Thread Agatha Hu
Still using attachment to prevent word-wrapping. For video streaming, repeatSPSPPS flag should be set as 1 besides disableSPSPPS=0, elsewise if running ffmpeg before vlc/ffmpeg, there will be no video header, decoder can't work properly. Agatha Hu From 526f4f37f1fbd8214a2866dad1d6c2ea480ffd9a

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: fix dtspts when b frame = 1

2015-01-13 Thread Agatha Hu
account to send it. Agatha Hu From cd62a0c47eb77f16efae25966b729c0f30852263 Mon Sep 17 00:00:00 2001 From: agathah a...@nvidia.com Date: Wed, 7 Jan 2015 17:19:32 +0800 Subject: [PATCH] fix b frame settings --- libavcodec/nvenc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff

[FFmpeg-devel] [PATCH] avcodec/nvenc: fix dtspts when b frame = 1

2015-01-07 Thread Agatha Hu
When B frames = 1, there'll be a invalid dts/pts warning during encoding like: [mp4 @ 0034cba0] Invalid DTS: 1024 PTS: 512 in output stream 0:0, replacing by guess [mp4 @ 0034cba0] Invalid DTS: 1536 PTS: 1024 in output stream 0:0, replacing by guess Set a -1 offset to dts to

Re: [FFmpeg-devel] [PATCH 4/4] nvenc: Try and do interlaced encoding.

2015-01-06 Thread Agatha Hu
On 2015/1/6 15:36, Philip Langdale wrote: Doesn't work. Signed-off-by: Philip Langdale phil...@overt.org --- libavcodec/libnvenc.c | 7 +++ libavcodec/libnvenc.h | 3 +++ libavcodec/nvencoder.c | 6 -- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git

Re: [FFmpeg-devel] ffmpeg nvenc

2014-12-31 Thread Agatha Hu
unused options to make it compatible with a libx264 command line. This is messy; private options mean what they are, specific to the encoder. - Coding style is broken, you have many tabs, trailing whitespaces, ... Agatha Hu Regards

Re: [FFmpeg-devel] ffmpeg nvenc

2014-12-17 Thread Agatha Hu
Repost -Original Message- From: Agatha Hu Sent: 2014年12月17日 15:49 To: 'Philip Langdale'; 'ffmpeg-devel@ffmpeg.org' Cc: Abhijit Patait; Eric Young; Jaime Ieong; Andrew Fear; Stephen Warren; Andy Ritger Subject: RE: ffmpeg nvenc Hi Phil, We've almost finished the license part in our