[FFmpeg-devel] [PATCH 1/2] doc/filters.texi: Adds documentation for sr filter.

Sergey Lavrushkin dualfal at gmail.com
Wed Aug 15 19:35:09 EEST 2018


Resending patch with documentation for sr filter.

---
 doc/filters.texi | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/doc/filters.texi b/doc/filters.texi
index 267bd04a43..b2a74cb1ce 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -15403,6 +15403,66 @@ option may cause flicker since the B-Frames have often larger QP. Default is
 @code{0} (not enabled).
 @end table
 
+ at section sr
+
+Scale the input by applying one of the super-resolution methods based on
+convolutional neural networks.
+
+Training scripts as well as scripts for model generation are provided in
+the repository @url{https://github.com/HighVoltageRocknRoll/sr.git}.
+
+The filter accepts the following options:
+
+ at table @option
+ at item model
+Specify which super-resolution model to use. This option accepts the following values:
+
+ at table @samp
+ at item srcnn
+Super-Resolution Convolutional Neural Network model
+ at url{https://arxiv.org/abs/1501.00092}.
+
+ at item espcn
+Efficient Sub-Pixel Convolutional Neural Network model
+ at url{https://arxiv.org/abs/1609.05158}.
+
+ at end table
+
+Default value is @samp{srcnn}.
+
+ at item dnn_backend
+Specify which DNN backend to use for model loading and execution. This option accepts
+the following values:
+
+ at table @samp
+ at item native
+Native implementation of DNN loading and execution.
+
+ at item tensorflow
+TensorFlow backend @url{https://www.tensorflow.org/}. To enable this backend you
+need to install the TensorFlow for C library (see
+ at url{https://www.tensorflow.org/install/install_c}) and configure FFmpeg with
+ at code{--enable-libtensorflow}
+
+ at end table
+
+Default value is @samp{native}.
+
+ at item scale_factor
+Set scale factor for SRCNN model, for which custom model file was provided.
+Allowed values are @code{2}, @code{3} and @code{4}. Scale factor is necessary
+for SRCNN model, because it accepts input upscaled using bicubic upscaling with
+proper scale factor.
+
+Default value is @code{2}.
+
+ at item model_filename
+Set path to model file specifying network architecture and its parameters.
+Note that different backends use different file formats. If path to model
+file is not specified, built-in models for 2x upscaling are used.
+
+ at end table
+
 @anchor{subtitles}
 @section subtitles
 
-- 
2.14.1



More information about the ffmpeg-devel mailing list