diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2019-12-27 16:34:15 +0800 |
---|---|---|
committer | Pedro Arthur <bygrandao@gmail.com> | 2020-01-07 10:35:59 -0300 |
commit | 04e6f8a143dc8bcec385e94a653b89c67cbaaca1 (patch) | |
tree | 7dd7e249dda4bc9459e555f481f0654af580ae1d /doc/filters.texi | |
parent | 742221d33917797402cd970f4f335539b38fe59c (diff) | |
download | ffmpeg-04e6f8a143dc8bcec385e94a653b89c67cbaaca1.tar.gz |
vf_dnn_processing: remove parameter 'fmt'
do not request AVFrame's format in vf_ddn_processing with 'fmt',
but to add another filter for the format.
command examples:
./ffmpeg -i input.jpg -vf format=bgr24,dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:dnn_backend=native -y out.native.png
./ffmpeg -i input.jpg -vf format=rgb24,dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:dnn_backend=native -y out.native.png
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index fc2d198077..71b69f8eb6 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -9070,8 +9070,8 @@ ffmpeg -i INPUT -f lavfi -i nullsrc=hd720,geq='r=128+80*(sin(sqrt((X-W/2)*(X-W/2 @section dnn_processing -Do image processing with deep neural networks. Currently only AVFrame with RGB24 -and BGR24 are supported, more formats will be added later. +Do image processing with deep neural networks. It works together with another filter +which converts the pixel format of the Frame to what the dnn network requires. The filter accepts the following options: @@ -9106,12 +9106,17 @@ Set the input name of the dnn network. @item output Set the output name of the dnn network. -@item fmt -Set the pixel format for the Frame. Allowed values are @code{AV_PIX_FMT_RGB24}, and @code{AV_PIX_FMT_BGR24}. -Default value is @code{AV_PIX_FMT_RGB24}. - @end table +@itemize +@item +Halve the red channle of the frame with format rgb24: +@example +ffmpeg -i input.jpg -vf format=rgb24,dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:dnn_backend=native out.native.png +@end example + +@end itemize + @section drawbox Draw a colored box on the input image. |