aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorKyle Swanson <kswanson@netflix.com>2023-09-25 13:14:13 +0100
committerKyle Swanson <kswanson@netflix.com>2023-09-27 10:22:33 -0700
commit7f685d0f493bbfa44cf1b3b65f9347291e23872b (patch)
tree933a7207ae6a801fa9001111b98b8d47deb1d2fa /doc/filters.texi
parentb23eaf968e375f2d38865d90a788221caead3324 (diff)
downloadffmpeg-7f685d0f493bbfa44cf1b3b65f9347291e23872b.tar.gz
avfilter: add libvmaf_cuda
Signed-off-by: Kyle Swanson <kswanson@netflix.com>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 14a6be49ac..c25450cf6c 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -16928,6 +16928,32 @@ ffmpeg -i distorted.mpg -i reference.mkv -lavfi "[0:v]settb=AVTB,setpts=PTS-STAR
@end example
@end itemize
+@section libvmaf_cuda
+
+This is the CUDA variant of the @ref{libvmaf} filter. It only accepts CUDA frames.
+
+It requires Netflix's vmaf library (libvmaf) as a pre-requisite.
+After installing the library it can be enabled using:
+@code{./configure --enable-nonfree --enable-ffnvcodec --enable-libvmaf}.
+
+@subsection Examples
+@itemize
+
+@item
+Basic usage showing CUVID hardware decoding and CUDA scaling with @ref{scale_cuda}:
+@example
+ffmpeg \
+ -hwaccel cuda -hwaccel_output_format cuda -codec:v av1_cuvid -i dis.obu \
+ -hwaccel cuda -hwaccel_output_format cuda -codec:v av1_cuvid -i ref.obu \
+ -filter_complex "
+ [0:v]scale_cuda=format=yuv420p[ref]; \
+ [1:v]scale_cuda=format=yuv420p[dis]; \
+ [dis][ref]libvmaf_cuda=log_fmt=json:log_path=output.json
+ " \
+ -f null -
+@end example
+@end itemize
+
@section limitdiff
Apply limited difference filter using second and optionally third video stream.