Re: [FFmpeg-devel] [PATCH 4/4] avfilter: add a generic filter for rgb proccessing with dnn networks

2019-10-16 Thread Guo, Yejun
> -Original Message- > From: Paul B Mahol [mailto:one...@gmail.com] > Sent: Wednesday, October 16, 2019 7:30 PM > To: Guo, Yejun > Cc: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 4/4] avfilter: add a generic filter for rgb >

Re: [FFmpeg-devel] [PATCH 4/4] avfilter: add a generic filter for rgb proccessing with dnn networks

2019-10-16 Thread Guo, Yejun
> -Original Message- > From: Paul B Mahol [mailto:one...@gmail.com] > Sent: Wednesday, October 16, 2019 5:17 PM > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH 4/4] avfilter: add a generic filter for rgb >

Re: [FFmpeg-devel] [PATCH 4/4] avfilter: add a generic filter for rgb proccessing with dnn networks

2019-10-16 Thread Guo, Yejun
-Original Message- From: Paul B Mahol Sent: Wednesday, October 16, 2019 5:17 PM To: FFmpeg development discussions and patches Cc: Guo, Yejun Subject: Re: [FFmpeg-devel] [PATCH 4/4] avfilter: add a generic filter for rgb proccessing with dnn networks There should be only one

[FFmpeg-devel] [PATCH 2/4] avfilter/dnn: get the data type of network output from dnn execution result

2019-10-15 Thread Guo, Yejun
so, we can make a filter more general to accept different network models, by adding a data type convertion after getting data from network. After we add dt field into struct DNNData, it becomes the same as DNNInputData, so merge them with one struct: DNNData. Signed-off-by: Guo, Yejun

[FFmpeg-devel] [PATCH 4/4] avfilter: add a generic filter for rgb proccessing with dnn networks

2019-10-15 Thread Guo, Yejun
sing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:fmt=rgb24:dnn_backend=native -y out.native.png ./ffmpeg -i input.jpg -vf dnn_rgb_processing=model=halve_first_channel.pb:input=dnn_in:output=dnn_out:fmt=rgb24:dnn_backend=tensorflow -y out.tf.png Signed-off-by: Guo, Yejun ---

[FFmpeg-devel] [PATCH 1/4] dnn: add tf.nn.conv2d support for native model

2019-10-15 Thread Guo, Yejun
named has_bias is added, so change the version number. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 2 +- libavfilter/dnn/dnn_backend_native_layer_conv2d.c | 37 +++- libavfilter/dnn/dnn_backend_native_layer_conv2d.h | 1 + tests/dnn/dnn-layer-conv2d

[FFmpeg-devel] [PATCH 3/4] avfilter/dnn: add a new interface to query dnn model's input info

2019-10-15 Thread Guo, Yejun
to support dnn networks more general, we need to know the input info of the dnn model. background: The data type of dnn model's input could be float32, uint8 or fp16, etc. And the w/h of input image could be fixed or variable. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c

Re: [FFmpeg-devel] [PATCH 2/2] FATE/dnn: add .gitignore

2019-10-15 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Zhao Zhili > Sent: Wednesday, October 16, 2019 12:21 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Zhao Zhili > Subject: [FFmpeg-devel] [PATCH 2/2] FATE/dnn: add .gitignore > > --- >

Re: [FFmpeg-devel] [PATCH V3 3/3] avfilter/dnn: unify the layer load function in native mode

2019-10-15 Thread Guo, Yejun
ify the layer load > function in native mode > > Em ter, 15 de out de 2019 às 02:29, Guo, Yejun > escreveu: > > > > > > > > -Original Message- > > > From: Guo, Yejun > > > Sent: Wednesday, October 09, 2019 10:08 PM > > > To: ffm

Re: [FFmpeg-devel] [PATCH V3 3/3] avfilter/dnn: unify the layer load function in native mode

2019-10-14 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Wednesday, October 09, 2019 10:08 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V3 3/3] avfilter/dnn: unify the layer load function in native > mode > > Signed-off-by: Guo, Yeju

[FFmpeg-devel] [PATCH V3 3/3] avfilter/dnn: unify the layer load function in native mode

2019-10-09 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 114 +++-- libavfilter/dnn/dnn_backend_native.h | 2 +- libavfilter/dnn/dnn_backend_native_layer_conv2d.c | 46 + libavfilter/dnn/dnn_backend_native_layer_conv2d.h | 1

[FFmpeg-devel] [PATCH V3 2/3] avfilter/dnn: unify the layer execution function in native mode

2019-10-09 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 1 + libavfilter/dnn/dnn_backend_native.c | 34 -- libavfilter/dnn/dnn_backend_native.h | 4 ++- libavfilter/dnn/dnn_backend_native_layer_conv2d.c | 4

[FFmpeg-devel] [PATCH V3 1/3] avfilter/dnn: add DLT prefix for enum DNNLayerType to avoid potential conflicts

2019-10-09 Thread Guo, Yejun
and also change CONV to DLT_CONV2D for better description Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 25 +++-- libavfilter/dnn/dnn_backend_native.h | 12 +++- libavfilter/dnn/dnn_backend_tf.c | 10 +- 3 files changed, 27

Re: [FFmpeg-devel] [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-10-08 Thread Guo, Yejun
n: unify the layer > execution function in native mode > > Hi, > > Em sex, 4 de out de 2019 às 09:59, Guo, Yejun > escreveu: > > > > > > > > -Original Message- > > > From: Guo, Yejun > > > Sent: Tuesday, September 24, 2019 1:34 PM > &

Re: [FFmpeg-devel] [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-10-04 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Tuesday, September 24, 2019 1:34 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in > native > mode > > with this change, the

Re: [FFmpeg-devel] [PATCH] FATE/dnn: fix stack buffer overflow

2019-10-04 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > quinkbl...@foxmail.com > Sent: Tuesday, October 01, 2019 2:37 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Zhao Zhili > Subject: [FFmpeg-devel] [PATCH] FATE/dnn: fix stack buffer overflow > >

[FFmpeg-devel] [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-09-23 Thread Guo, Yejun
with this change, the code will be simpler when more layers supported. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 38 -- libavfilter/dnn/dnn_backend_native_layer_conv2d.c | 4 ++- libavfilter/dnn/dnn_backend_native_layer_conv2d.h

[FFmpeg-devel] [PATCH V2 1/2] avfilter/dnn: add DLT prefix for enum DNNLayerType to avoid potential conflicts

2019-09-23 Thread Guo, Yejun
and also change CONV to DLT_CONV2D for better description Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 25 +++-- libavfilter/dnn/dnn_backend_native.h | 12 +++- libavfilter/dnn/dnn_backend_tf.c | 10 +- 3 files changed, 27

Re: [FFmpeg-devel] [PATCH 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-09-23 Thread Guo, Yejun
please ignore this patch set, there is an issue found in this patch, I'll fix and send v2 patch. > -Original Message- > From: Guo, Yejun > Sent: Tuesday, September 24, 2019 8:56 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 2/2] avfilter/dn

[FFmpeg-devel] [PATCH 1/2] avfilter/dnn: add DLT prefix for enum DNNLayerType to avoid potential conflicts

2019-09-23 Thread Guo, Yejun
and also change CONV to DLT_CONV2D for better description Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 25 +++-- libavfilter/dnn/dnn_backend_native.h | 12 +++- libavfilter/dnn/dnn_backend_tf.c | 10 +- 3 files changed, 27

[FFmpeg-devel] [PATCH 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-09-23 Thread Guo, Yejun
with this change, the code will be simpler when more layers supported. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 38 -- libavfilter/dnn/dnn_backend_native_layer_conv2d.c | 4 ++- libavfilter/dnn/dnn_backend_native_layer_conv2d.h

[FFmpeg-devel] [PATCH V2] libavcodec/libx264 and libx265: add a flag to output ROI warnings only once.

2019-09-22 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavcodec/libx264.c | 16 ++-- libavcodec/libx265.c | 11 ++- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 86e3530..8788286 100644 --- a/libavcodec/libx264.c +++ b/libavcodec

Re: [FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: add layer maximum for native mode.

2019-09-21 Thread Guo, Yejun
add layer maximum for > native mode. > > Em sex, 20 de set de 2019 às 11:50, Guo, Yejun > escreveu: > > > > > > > > > -Original Message- > > > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of > > > Pedro Arthu

Re: [FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: add layer maximum for native mode.

2019-09-20 Thread Guo, Yejun
add layer maximum for > native mode. > > Hi, > > Em sex, 20 de set de 2019 às 01:00, Guo, Yejun > escreveu: > > > > The reason to add this layer is that it is used by srcnn in vf_sr. > > This layer is currently ignored in native mode. After this patch, > > we c

[FFmpeg-devel] [PATCH 4/4] libavfilter/dnn: support multiple outputs for native mode

2019-09-19 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 43 +++- libavfilter/dnn/dnn_backend_native.h | 2 ++ 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_native.c b/libavfilter/dnn

[FFmpeg-devel] [PATCH 3/4] libavfilter/dnn/dnn_backend_native: find the input operand according to input name

2019-09-19 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 39 +--- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_native.c b/libavfilter/dnn/dnn_backend_native.c index 22a9a33..1b0aea2 100644

[FFmpeg-devel] [PATCH 2/4] FATE/dnn: add unit test for layer maximum

2019-09-19 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- tests/dnn/Makefile | 1 + tests/dnn/dnn-layer-maximum-test.c | 71 ++ tests/fate/dnn.mak | 5 +++ 3 files changed, 77 insertions(+) create mode 100644 tests/dnn/dnn-layer-maximum-test.c diff

[FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: add layer maximum for native mode.

2019-09-19 Thread Guo, Yejun
The reason to add this layer is that it is used by srcnn in vf_sr. This layer is currently ignored in native mode. After this patch, we can add multiple outputs support for native mode. Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 1 + libavfilter/dnn

Re: [FFmpeg-devel] [PATCH 4/4] FATE/dnn: add unit test for dnn depth_to_space layer

2019-09-18 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Thursday, September 05, 2019 2:01 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 4/4] FATE/dnn: add unit test for dnn depth_to_space layer > > 'make fate-dnn-layer-depth2space' to run the test

Re: [FFmpeg-devel] [PATCH V9] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-18 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Thursday, September 12, 2019 6:25 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V9] avcodec/libvpxenc: add ROI-based encoding support for > VP8/VP9 > > example command line to verify it:

Re: [FFmpeg-devel] [PATCH] libavcodec/libx264 and libx265: add a flag to output ROI warnings only once.

2019-09-18 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Guo, Yejun > Sent: Wednesday, September 11, 2019 8:55 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH] libavcodec/libx264 and libx265: add a fl

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_enc: check for V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME availability before using

2019-09-15 Thread Guo, Yejun
> -Original Message- > From: Aman Gupta [mailto:a...@tmm1.net] On Behalf Of Aman Gupta > Sent: Saturday, September 14, 2019 7:31 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun ; Aman Gupta > Subject: [PATCH] avcodec/v4l2_m2m_enc: check for > V4L2_CID_MPEG_

Re: [FFmpeg-devel] [PATCH 04/25] avcodec/v4l2_m2m_enc: add support for -force_key_frames

2019-09-12 Thread Guo, Yejun
hi > -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Aman Gupta > Sent: Tuesday, September 03, 2019 9:02 AM > To: ffmpeg-devel@ffmpeg.org > Cc: loru...@gmail.com; Aman Gupta ; > jorge.ramirez.or...@gmail.com; Aman Gupta > Subject:

[FFmpeg-devel] [PATCH V9] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-12 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 193 + libavcodec/version.h | 2 +- 2 files changed, 194 insertions

Re: [FFmpeg-devel] [PATCH V8] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-12 Thread Guo, Yejun
> -Original Message- > From: James Zern [mailto:jz...@google.com] > Sent: Thursday, September 12, 2019 2:18 PM > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V8] avcodec/libvpxenc: add ROI-based > encodin

[FFmpeg-devel] [PATCH V8] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-10 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 188 + libavcodec/version.h | 2 +- 2 files changed, 189 insertions

Re: [FFmpeg-devel] [PATCH V7] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-10 Thread Guo, Yejun
please ignore this patch since the version number in libavcodec/version.h has been changed, and so conflicts, I'll rebase it and send out a new V8 patch. > -Original Message- > From: Guo, Yejun > Sent: Thursday, August 29, 2019 10:35 AM > To: ffmpeg-devel@ffmpeg.org >

Re: [FFmpeg-devel] [PATCH] libavcodec/libx264 and libx265: add a flag to output ROI warnings only once.

2019-09-10 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Monday, September 02, 2019 12:38 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH] libavcodec/libx264 and libx265: add a flag to output ROI > warnings only once. > > Signed-off-by: Guo,

[FFmpeg-devel] [PATCH 2/4] FATE/dnn: add unit test for dnn conv2d layer

2019-09-05 Thread Guo, Yejun
'make fate-dnn-layer-conv2d' to run the test Signed-off-by: Guo, Yejun --- tests/dnn/Makefile| 1 + tests/dnn/dnn-layer-conv2d-test.c | 238 ++ tests/fate/dnn.mak| 5 + 3 files changed, 244 insertions(+) create mode 100644

[FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: separate conv2d layer from dnn_backend_native.c to a new file

2019-09-05 Thread Guo, Yejun
the logic is that one layer in one separated source file to make the source files simple for maintaining. Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 1 + libavfilter/dnn/dnn_backend_native.c | 80 + libavfilter/dnn

[FFmpeg-devel] [PATCH 4/4] FATE/dnn: add unit test for dnn depth_to_space layer

2019-09-05 Thread Guo, Yejun
'make fate-dnn-layer-depth2space' to run the test Signed-off-by: Guo, Yejun --- tests/dnn/Makefile | 1 + tests/dnn/dnn-layer-depth2space-test.c | 100 + tests/fate/dnn.mak | 5 ++ 3 files changed, 106 insertions

[FFmpeg-devel] [PATCH 3/4] libavfilter/dnn: separate depth_to_space layer from dnn_backend_native.c to a new file

2019-09-05 Thread Guo, Yejun
the logic is that one layer in one separated source file to make the source files simple for maintaining. Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 1 + libavfilter/dnn/dnn_backend_native.c | 44 +- libavfilter/dnn

[FFmpeg-devel] [PATCH] libavcodec/libx264 and libx265: add a flag to output ROI warnings only once.

2019-09-01 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavcodec/libx264.c | 14 -- libavcodec/libx265.c | 9 - 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 86e3530..62316e6 100644 --- a/libavcodec/libx264.c +++ b/libavcodec

[FFmpeg-devel] [PATCH] libavfilter/dnn: add header into native model file

2019-09-01 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c| 43 +++-- tools/python/convert_from_tensorflow.py | 3 +++ tools/python/convert_header.py | 26 3 files changed, 70 insertions(+), 2 deletions(-) create mode 100644

Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-29 Thread Guo, Yejun
> -Original Message- > From: James Zern [mailto:jz...@google.com] > Sent: Thursday, August 29, 2019 2:14 PM > To: Guo, Yejun > Cc: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based > encoding suppor

[FFmpeg-devel] [PATCH V2 3/3] dnn: export operand info in python script and load in c code

2019-08-28 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c| 49 +++--- libavfilter/dnn/dnn_backend_native.h| 2 +- libavfilter/dnn_interface.h | 2 +- tools/python/convert_from_tensorflow.py | 111 +--- 4 files changed, 142

[FFmpeg-devel] [PATCH V2 1/3] dnn: introduce dnn operand (in c code) to hold operand infos within network

2019-08-28 Thread Guo, Yejun
the info can be saved in dnn operand object without regenerating again and again, and it is also needed for layer split/merge, and for memory reuse. to make things step by step, this patch just focuses on c code, the change within python script will be added later. Signed-off-by: Guo, Yejun

[FFmpeg-devel] [PATCH V2 2/3] dnn: change .model file format to put layer number at the end of file

2019-08-28 Thread Guo, Yejun
currently, the layer number is at the beginning of the .model file, so we have to scan twice in python script, the first scan to get the layer number. Only one scan needed after put the layer number at the end of .model file. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c

Re: [FFmpeg-devel] [PATCH 3/3] dnn: export operand info in python script and load in c code

2019-08-28 Thread Guo, Yejun
in python > script and load in c code > > hi, > > Em ter, 20 de ago de 2019 às 05:54, Guo, Yejun > escreveu: > > > > Signed-off-by: Guo, Yejun > > --- > > libavfilter/dnn/dnn_backend_native.c| 49 +++--- > > libavfilter/dnn

Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-28 Thread Guo, Yejun
> -Original Message- > From: James Zern [mailto:jz...@google.com] > Sent: Thursday, August 29, 2019 12:39 PM > To: Guo, Yejun > Cc: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based > encodin

Re: [FFmpeg-devel] [PATCH 1/3] dnn: introduce dnn operand (in c code) to hold operand infos within network

2019-08-28 Thread Guo, Yejun
operand (in c code) > to hold operand infos within network > > Hi, > > > Em ter, 20 de ago de 2019 às 05:54, Guo, Yejun > escreveu: > > > > the info can be saved in dnn operand object without regenerating again and > again, > > and it is also needed for lay

[FFmpeg-devel] [PATCH V7] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-08-28 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 189 + libavcodec/version.h | 2 +- 2 files changed, 190 insertions

Re: [FFmpeg-devel] [PATCH V6] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-08-28 Thread Guo, Yejun
please ignore this patch since there is a conflict in version.h, will send out a new version, thanks. > -Original Message- > From: Guo, Yejun > Sent: Thursday, August 29, 2019 9:29 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V6] avcodec/libvpx

[FFmpeg-devel] [PATCH V6] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-08-28 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 189 + libavcodec/version.h | 2 +- 2 files changed, 190 insertions

Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-27 Thread Guo, Yejun
> -Original Message- > From: James Zern [mailto:jz...@google.com] > Sent: Tuesday, August 27, 2019 12:03 PM > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based > encoding suppor

[FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-22 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 194 + 1 file changed, 194 insertions(+) diff --git a/libavcodec

Re: [FFmpeg-devel] [PATCH V4] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-22 Thread Guo, Yejun
enc: add ROI-based > encoding support for VP8/VP9 support > > On Thu, Aug 22, 2019 at 08:56:28 +0800, Guo, Yejun wrote: > > +/* This list must be iterated in reverse, so for the case that > > + * two regions overlapping, the more important area takes effect. > >

[FFmpeg-devel] [PATCH V4] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-21 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 193 + 1 file changed, 193 insertions(+) diff --git a/libavcodec

Re: [FFmpeg-devel] [PATCH V3] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-20 Thread Guo, Yejun
I-based > encoding support for VP8/VP9 support > > Hi, > > On Tue, Aug 13, 2019 at 8:29 PM Guo, Yejun wrote: > > example command line to verify it: > > ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M > tmp.webm > > > > Signed-o

[FFmpeg-devel] [PATCH 3/3] dnn: export operand info in python script and load in c code

2019-08-20 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c| 49 +++--- libavfilter/dnn/dnn_backend_native.h| 2 +- libavfilter/dnn_interface.h | 2 +- tools/python/convert_from_tensorflow.py | 111 +--- 4 files changed, 142

[FFmpeg-devel] [PATCH 2/3] dnn: change .model file format to put layer number at the end of file

2019-08-20 Thread Guo, Yejun
currently, the layer number is at the beginning of the .model file, so we have to scan twice in python script, the first scan to get the layer number. Only one scan needed after put the layer number at the end of .model file. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c

[FFmpeg-devel] [PATCH 1/3] dnn: introduce dnn operand (in c code) to hold operand infos within network

2019-08-20 Thread Guo, Yejun
the info can be saved in dnn operand object without regenerating again and again, and it is also needed for layer split/merge, and for memory reuse. to make things step by step, this patch just focuses on c code, the change within python script will be added later. Signed-off-by: Guo, Yejun

Re: [FFmpeg-devel] [PATCH V1 3/5] lavfi/dnn/dnn_backend_native: Refine the coding style

2019-08-19 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Jun Zhao > Sent: Monday, August 19, 2019 9:01 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Jun Zhao > Subject: [FFmpeg-devel] [PATCH V1 3/5] lavfi/dnn/dnn_backend_native: Refine > the coding

Re: [FFmpeg-devel] [PATCH V1 4/5] lavfi/dnn/dnn_backend_native: fix memory leak in error path

2019-08-19 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Jun Zhao > Sent: Monday, August 19, 2019 9:01 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Jun Zhao > Subject: [FFmpeg-devel] [PATCH V1 4/5] lavfi/dnn/dnn_backend_native: fix > memory leak in

[FFmpeg-devel] [PATCH V2 1/2] libavfilter/dnn/dnn_backend_tf: fix typo that variable uninitialized.

2019-08-15 Thread Guo, Yejun
if it is initialized randomly, the tensorflow lib will report error message such as: Attempt to add output -7920 of depth_to_space4 not in range [0, 1) to node with type Identity Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_tf.c | 1 + 1 file changed, 1 insertion(+) diff --git

[FFmpeg-devel] [PATCH V2 2/2] libavfilter/dnn/dnn_backend_tf: add tf.pad support for tensorflow backend with native model.

2019-08-15 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_tf.c | 48 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c index ca7434a..626fba9 100644 --- a/libavfilter/dnn

Re: [FFmpeg-devel] [PATCH 2/2] libavfilter/dnn/dnn_backend_tf: add tf.pad support for tensorflow backend with native model.

2019-08-15 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Wednesday, August 14, 2019 3:06 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 2/2] libavfilter/dnn/dnn_backend_tf: add tf.pad support for > tensorflow backend with native model. > >

[FFmpeg-devel] [PATCH 2/2] libavfilter/dnn/dnn_backend_tf: add tf.pad support for tensorflow backend with native model.

2019-08-14 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_tf.c | 47 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c index ca7434a..75dbe5e 100644 --- a/libavfilter/dnn

[FFmpeg-devel] [PATCH 1/2] libavfilter/dnn/dnn_backend_tf: fix typo that variable uninitialized.

2019-08-14 Thread Guo, Yejun
if it is not initialized with zero, the tensorflow lib will report error message such as: Attempt to add output -7920 of depth_to_space4 not in range [0, 1) to node with type Identity Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_tf.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [FFmpeg-devel] [PATCH 2/2] convert_from_tensorflow.py: support conv2d with dilation

2019-08-14 Thread Guo, Yejun
test it, but let me know if you need them. yes, I have the .pb files. I missed the patch for such support. Will refine and send out soon. > > Em sex, 9 de ago de 2019 às 12:25, Guo, Yejun > escreveu: > > > > > > > > > -Original Message- > > >

[FFmpeg-devel] [PATCH V3] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-13 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 197 + 1 file changed, 197 insertions(+) diff --git a/libavcodec

Re: [FFmpeg-devel] [PATCH V2] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-13 Thread Guo, Yejun
> -Original Message- > From: James Zern [mailto:jz...@google.com] > Sent: Wednesday, August 14, 2019 7:32 AM > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V2] avcodec/libvpxenc: add ROI-based > encodin

[FFmpeg-devel] [PATCH V2] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-13 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- configure | 7 ++ libavcodec/libvpxenc.c | 197 + 2 files changed, 204 insertions

[FFmpeg-devel] [PATCH] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-12 Thread Guo, Yejun
example command line to verify it: ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm Signed-off-by: Guo, Yejun --- libavcodec/libvpxenc.c | 177 + 1 file changed, 177 insertions(+) diff --git a/libavcodec

Re: [FFmpeg-devel] [PATCH 2/2] convert_from_tensorflow.py: support conv2d with dilation

2019-08-09 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Tuesday, July 30, 2019 9:26 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 2/2] convert_from_tensorflow.py: support conv2d with dilation > > conv2d with dilation > 1 generates tens of nodes

[FFmpeg-devel] [PATCH V2] FATE/dnn: let fate/dnn tests depend on ffmpeg static libraries

2019-08-06 Thread Guo, Yejun
Makefile with ffmpeg static libraries. This is the same method used in fate/checkasm Signed-off-by: Guo, Yejun --- tests/dnn/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dnn/Makefile b/tests/dnn/Makefile index b2e6680..0e050ea 100644 --- a/tests/dnn

[FFmpeg-devel] [PATCH] FATE/dnn: let fate/dnn tests depend on ffmpeg static libraries

2019-08-01 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- tests/dnn/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dnn/Makefile b/tests/dnn/Makefile index b2e6680..0e050ea 100644 --- a/tests/dnn/Makefile +++ b/tests/dnn/Makefile @@ -4,8 +4,8 @@ DNNTESTOBJS := $(DNNTESTOBJS

Re: [FFmpeg-devel] [PATCH] Revert "fate: add unit test for dnn-layer-pad"

2019-08-01 Thread Guo, Yejun
it test for > dnn-layer-pad" > > On Thu, Aug 1, 2019 at 4:53 PM Guo, Yejun wrote: > > > > This reverts commit 3805aae47966b691f825abab6843f55676437a02. > > > > this test calls internal DNN functions within libavfilter, it is > > not allowed, and

[FFmpeg-devel] [PATCH] Revert "fate: add unit test for dnn-layer-pad"

2019-08-01 Thread Guo, Yejun
This reverts commit 3805aae47966b691f825abab6843f55676437a02. this test calls internal DNN functions within libavfilter, it is not allowed, and so revert it. Signed-off-by: Guo, Yejun --- tests/Makefile | 5 +- tests/dnn/Makefile | 11 --- tests/dnn/dnn-layer-pad

Re: [FFmpeg-devel] [PATCH] dnn: rename function from dnn_execute_layer_pad to avfilter_dnn_execute_layer_pad

2019-08-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Nicolas George > Sent: Thursday, August 01, 2019 5:10 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] dnn: rename function from >

[FFmpeg-devel] [PATCH] dnn: rename function from dnn_execute_layer_pad to avfilter_dnn_execute_layer_pad

2019-08-01 Thread Guo, Yejun
for. Besides the function rename to export from .so library, we also need to add option -Wl,-rpath to build the dnn unit tests, so the path is written into the test binary and help to find the .so libraries during execution. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c

[FFmpeg-devel] [PATCH 2/2] convert_from_tensorflow.py: support conv2d with dilation

2019-07-29 Thread Guo, Yejun
conv2d with dilation > 1 generates tens of nodes in graph, it is not easy to parse each node one by one, so we do special tricks to parse the conv2d layer. Signed-off-by: Guo, Yejun --- tools/python/convert_from_tensorflow.py | 80 - 1 file changed, 59 inserti

[FFmpeg-devel] [PATCH 1/2] convert_from_tensorflow.py: add option to dump graph for visualization in tensorboard

2019-07-29 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- tools/python/convert.py | 6 +- tools/python/convert_from_tensorflow.py | 13 +++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/tools/python/convert.py b/tools/python/convert.py index 662b429..64cf76b 100644

[FFmpeg-devel] [PATCH V2 3/3] dnn: convert tf.pad to native model in python script, and load/execute it in the c code.

2019-07-28 Thread Guo, Yejun
since tf.pad is enabled, the conv2d(valid) changes back to its original behavior. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c| 35 + libavfilter/dnn/dnn_backend_native.h| 2 +- tools/python/convert_from_tensorflow.py | 23

[FFmpeg-devel] [PATCH V2 1/3] dnn: add layer pad which is equivalent to tf.pad

2019-07-28 Thread Guo, Yejun
the reason to add this layer first is that vf_sr uses it in its tensorflow model, and the next plan is to update the python script to convert tf.pad into native model. Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 1 + libavfilter/dnn

[FFmpeg-devel] [PATCH V2 2/3] fate: add unit test for dnn-layer-pad

2019-07-28 Thread Guo, Yejun
'make fate-dnn-layer-pad' to run the test Signed-off-by: Guo, Yejun --- tests/Makefile | 5 +- tests/dnn/Makefile | 11 +++ tests/dnn/dnn-layer-pad-test.c | 203 + tests/fate/dnn.mak | 8 ++ 4 files changed

Re: [FFmpeg-devel] [PATCH 1/2] dnn: add layer pad which is equivalent to tf.pad

2019-07-28 Thread Guo, Yejun
hich is equivalent > to tf.pad > > Hi, > > Em seg, 1 de jul de 2019 às 05:10, Guo, Yejun > escreveu: > > > > +// handle the first dimension > > +before_paddings = params->paddings[0][0]; > > +after_paddings = params->paddings[0][1]; > >

Re: [FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn

2019-07-28 Thread Guo, Yejun
> -Original Message- > From: Pedro Arthur [mailto:bygran...@gmail.com] > Sent: Saturday, July 27, 2019 12:10 AM > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: move dnn files from > libav

Re: [FFmpeg-devel] [PATCH 4/4] dnn: convert tf.pad to native model in python script, and load/execute it in the c code.

2019-07-24 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Tuesday, July 16, 2019 1:56 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 4/4] dnn: convert tf.pad to native model in python script, and > load/execute it in the c code. > > since tf.pad i

Re: [FFmpeg-devel] how to create sub project / git repo under FFMPEG

2019-07-23 Thread Guo, Yejun
repo under FFMPEG > > On Mon, Jul 22, 2019 at 02:03:33 +, Guo, Yejun wrote: > > I do not mean the official repository https://git.ffmpeg.org/ffmpeg.git, I > mean another > > new repo and ffmpeg community has the right to assign/remove someone to > have the write access. >

Re: [FFmpeg-devel] how to create sub project / git repo under FFMPEG

2019-07-21 Thread Guo, Yejun
er FFMPEG > > On Thu, Jul 18, 2019, at 11:05, Nicolas George wrote: > > Guo, Yejun (12019-07-18): > > > I personally prefer github to host the repo, the repo name might be > > > ffmpeg_dnn_material or ffmpeg_dnn_data, or something others. I'm open > > > to t

Re: [FFmpeg-devel] [PATCH] libavfilter: Update derain filter doc.

2019-07-21 Thread Guo, Yejun
> -Original Message- > From: Steven Liu [mailto:l...@chinaffmpeg.org] > Sent: Sunday, July 21, 2019 8:10 PM > To: FFmpeg development discussions and patches > Cc: Steven Liu ; Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH] libavfilter: Update derain filter doc. >

Re: [FFmpeg-devel] how to create sub project / git repo under FFMPEG

2019-07-18 Thread Guo, Yejun
repo under FFMPEG > > On Tue, Jul 16, 2019 at 06:07:58AM +, Guo, Yejun wrote: > > Hi Michael, > > > > With the development of ffmpeg dnn module, there is a need to get a git > > repo, > controlled by FFMPEG, to hold dnn materials, such as training script

Re: [FFmpeg-devel] [PATCH v4 2/2] lavfi: addroi filter

2019-07-16 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Mark Thompson > Sent: Monday, July 08, 2019 3:27 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH v4 2/2] lavfi: addroi filter > > This can be used to add region of

Re: [FFmpeg-devel] [PATCH v4 1/2] vaapi_encode: Add ROI support

2019-07-16 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Mark Thompson > Sent: Monday, July 08, 2019 3:27 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH v4 1/2] vaapi_encode: Add ROI support > > --- > libavcodec/vaapi_encode.c

[FFmpeg-devel] how to create sub project / git repo under FFMPEG

2019-07-16 Thread Guo, Yejun
Hi Michael, With the development of ffmpeg dnn module, there is a need to get a git repo, controlled by FFMPEG, to hold dnn materials, such as training scripts, trained parameters etc, as discussed at http://ffmpeg.org/pipermail/ffmpeg-devel/2019-June/245750.html. Could you please let me know

[FFmpeg-devel] [PATCH 4/4] dnn: convert tf.pad to native model in python script, and load/execute it in the c code.

2019-07-16 Thread Guo, Yejun
since tf.pad is enabled, the conv2d(valid) changes back to its original behavior. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c| 35 + libavfilter/dnn/dnn_backend_native.h| 2 +- tools/python/convert_from_tensorflow.py | 23

[FFmpeg-devel] [PATCH 3/4] fate: add unit test for dnn-layer-pad

2019-07-15 Thread Guo, Yejun
'make fate-dnn-layer-pad' to run the test Signed-off-by: Guo, Yejun --- tests/Makefile | 5 +- tests/dnn/Makefile | 11 +++ tests/dnn/dnn-layer-pad-test.c | 201 + tests/fate/dnn.mak | 8 ++ 4 files changed

[FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn

2019-07-15 Thread Guo, Yejun
tf.h renamed:libavfilter/dnn_interface.c -> libavfilter/dnn/dnn_interface.c Signed-off-by: Guo, Yejun --- libavfilter/Makefile | 3 +- libavfilter/dnn/Makefile | 6 + libavfilter/dnn/dnn_backend_native.c | 389 ++ libavfilter/dnn/dnn_backend

[FFmpeg-devel] [PATCH 2/4] dnn: add layer pad which is equivalent to tf.pad

2019-07-15 Thread Guo, Yejun
the reason to add this layer first is that vf_sr uses it in its tensorflow model, and the next plan is to update the python script to convert tf.pad into native model. Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 1 + libavfilter/dnn

  1   2   3   4   >