Re: [FFmpeg-devel] [PATCH] ffmpeg_qsv.c: Init an hwframes_context for decoder instead of encoder

2017-01-21 Thread Huang, Zhengxu
在 2017/1/20 18:05, wm4 写道: On Fri, 20 Jan 2017 17:41:01 +0800 "Huang, Zhengxu" wrote: From 2149f87637ab941be14828f7ae2c224908784c7d Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Wed, 4 Jan 2017 16:43:43 +0800 Subject: [PATCH] ffmpeg_qsv.c: Init an hwframes_context for decoder

Re: [FFmpeg-devel] [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx

2017-01-21 Thread Huang, Zhengxu
在 2017/1/20 17:56, wm4 写道: On Fri, 20 Jan 2017 17:35:33 +0800 Chao Liu wrote: Have you ever used valgrind? Please just run the command below: valgrind --leak-check=full --log-file=out.log ffmpeg -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i a.h264 -c:v h264_qsv -b:v 2M -y out

[FFmpeg-devel] [PATCH] ffmpeg_qsv.c: Init an hwframes_context for decoder instead of encoder

2017-01-20 Thread Huang, Zhengxu
, they get hwframes_context from their inputs. Likewise, encoder should get hwframes_context from its input instead creating a new faker one. Encoder can get acuurate parameters by doing so. Signed-off-by: ChaoX A Liu Signed-off-by: Huang, Zhengxu Signed-off-by: Andrew, Zhang --- ffmpeg_qsv.c

[FFmpeg-devel] [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx

2017-01-19 Thread Huang, Zhengxu
From 9ceb2ac6a89246f2e686eb3ad3448fbaff5328f7 Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Fri, 13 Jan 2017 10:33:05 +0800 Subject: [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx is not released. Signed-off-by: ChaoX A Liu Signed-off-by: Huang, Zhengxu Signed-

Re: [FFmpeg-devel] [PATCH 1/2 V2] libavcodec/qsvdec: Fix the QSV decoder can't work when using system memory

2017-01-16 Thread Huang, Zhengxu
在 2017/1/12 5:00, Mark Thompson 写道: On 09/01/17 02:05, Huang, Zhengxu wrote: From 37629f14294125c7396e5e12970d75e895b1caba Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Mon, 19 Dec 2016 01:27:06 -0500 Subject: [PATCH 1/2] libavcodec/qsvdec: Fix the QSV decoder can't work when using s

Re: [FFmpeg-devel] [PATCH 2/2 V2] libavcodec/qsvenc: Fix the encode part hwaccle issue when using system memory

2017-01-16 Thread Huang, Zhengxu
在 2017/1/9 10:10, Huang, Zhengxu 写道: From 8466186d4622f760194edd62f7779a0ab8a230d2 Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Mon, 19 Dec 2016 03:39:39 -0500 Subject: [PATCH 2/2] libavcodec/qsvenc: Fix the encode part hwaccle issue when using system memory Description: when using system

Re: [FFmpeg-devel] [PATCH] libavutil/hwcontext_qsv: Command line using hwaccel 'QSV' doesn't work

2017-01-08 Thread Huang, Zhengxu
在 2017/1/8 7:36, Mark Thompson 写道: On 06/01/17 06:37, Huang, Zhengxu wrote: Hi According to the suggestion update the patch. thanks. From 4beadd3c84c797a56c4f375458d0a1e9d9b233c8 Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Thu, 5 Jan 2017 14:48:06 +0800 Subject: [PATCH] ffmpeg_qsv: Add

[FFmpeg-devel] [PATCH 2/2] libavcodec/qsvenc: Fix the encode part hwaccle issue when using system memory

2017-01-08 Thread Huang, Zhengxu
Signed-off-by: ChaoX A Liu Signed-off-by: Huang, Zhengxu Signed-off-by: Andrew, Zhang --- libavcodec/qsvenc.c | 55 +++-- libavcodec/qsvenc.h | 2 +- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/libavcodec/qsvenc.c b

[FFmpeg-devel] [PATCH 1/2] libavcodec/qsvdec: Fix the QSV decoder can't work when using system memory

2017-01-08 Thread Huang, Zhengxu
n and release all resource when close the decoder. Signed-off-by: ChaoX A Liu Signed-off-by: Huang, Zhengxu Signed-off-by: Andrew, Zhang --- libavcodec/qsv.c | 6 ++--- libavcodec/qsv_internal.h | 5 libavcodec/qsvdec.c

Re: [FFmpeg-devel] [PATCH] libavutil/hwcontext_qsv: Command line using hwaccel 'QSV' doesn't work

2017-01-05 Thread Huang, Zhengxu
Hi According to the suggestion update the patch. thanks. 在 2017/1/3 21:14, Mark Thompson 写道: On 03/01/17 07:13, Huang, Zhengxu wrote: From 687ce9c804b2618f021100235c46a33b48fa522c Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Wed, 14 Dec 2016 11:55:31 +0800 Subject: [PATCH] libavutil

Re: [FFmpeg-devel] [PATCH] libavutil/hwcontext_qsv: Fix bug that the QSV encoded frames'width and height are 32-aligned

2017-01-04 Thread Huang, Zhengxu
03/01/17 06:35, Huang, Zhengxu wrote: From 8b1bcc0634f6ce36acfbd2bfdd26690a6323d09c Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Fri, 16 Dec 2016 11:10:34 +0800 Subject: [PATCH] libavutil/hwcontext_qsv: Fix bug that the QSV encoded frames' width and height are 32-aligned. Description: If an

Re: [FFmpeg-devel] [PATCH] libavutil/hwcontext_qsv: Command line using hwaccel 'QSV' doesn't work

2017-01-04 Thread Huang, Zhengxu
在 2017/1/3 21:14, Mark Thompson 写道: On 03/01/17 07:13, Huang, Zhengxu wrote: From 687ce9c804b2618f021100235c46a33b48fa522c Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Wed, 14 Dec 2016 11:55:31 +0800 Subject: [PATCH] libavutil/hwcontext_qsv: Command line using hwaccel 'QSV' do

[FFmpeg-devel] [PATCH] libavutil/hwcontext_qsv: Command line using hwaccel 'QSV' doesn't work

2017-01-02 Thread Huang, Zhengxu
device nodes under '/dev/dri/'. Signed-off-by: ChaoX A Liu Signed-off-by: Huang, Zhengxu Signed-off-by: Andrew, Zhang --- libavutil/hwcontext_qsv.c | 44 +++- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/libavutil/hwcontext

[FFmpeg-devel] [PATCH] libavutil/hwcontext_qsv: Fix bug that the QSV encoded frames'width and height are 32-aligned

2017-01-02 Thread Huang, Zhengxu
SVFramesContext with origin width and height and AVFramesContext will align the width and height when being initiallized. Signed-off-by: ChaoX A Liu Signed-off-by: Huang, Zhengxu Signed-off-by: Andrew, Zhang --- ffmpeg_qsv.c | 8 libavutil/hwcontext_qsv.c | 8 ++-- 2 fi