[FFmpeg-cvslog] doc/filters/libplacebo: add vaapi interop example

Niklas Haas git at videolan.org
Wed Apr 26 16:37:07 EEST 2023


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Sat Apr 22 21:30:48 2023 +0200| [54126920fcbf4dd2021fedac143f83e9dc419a5f] | committer: Niklas Haas

doc/filters/libplacebo: add vaapi interop example

Some testing revealed this to be a very efficient and reliable method of
ingesting GPU frames into libplacebo, so it's a good idea to give as an
example.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=54126920fcbf4dd2021fedac143f83e9dc419a5f
---

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

diff --git a/doc/filters.texi b/doc/filters.texi
index 011b1bbc62..5dde79919a 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -16369,6 +16369,12 @@ since otherwise the VRAM roundtrip will more than offset any expected speedup.
 @example
 ffmpeg -export_side_data +film_grain ... -vf libplacebo=apply_filmgrain=true
 @end example
+
+ at item
+Interop with VAAPI hwdec to avoid round-tripping through RAM:
+ at example
+ffmpeg -init_hw_device vulkan -hwaccel vaapi -hwaccel_output_format vaapi ... -vf libplacebo
+ at end example
 @end itemize
 
 @section libvmaf



More information about the ffmpeg-cvslog mailing list