From 1d45b0b3519dc7ce2e3c3a11747c61aa52605efc Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 11 Jun 2022 06:42:09 -0500 Subject: [PATCH] update hwaccel docs --- docs/docs/configuration/hardware_acceleration.md | 6 ++---- docs/docs/contributing.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/docs/configuration/hardware_acceleration.md b/docs/docs/configuration/hardware_acceleration.md index fd506807e..aaef378b9 100644 --- a/docs/docs/configuration/hardware_acceleration.md +++ b/docs/docs/configuration/hardware_acceleration.md @@ -26,7 +26,7 @@ ffmpeg: ```yaml ffmpeg: - hwaccel_args: -hwaccel qsv -qsv_device /dev/dri/renderD128 -hwaccel_output_format yuv420p + hwaccel_args: -c:v h264_qsv ``` ### AMD/ATI GPUs (Radeon HD 2000 and newer GPUs) via libva-mesa-driver @@ -79,9 +79,7 @@ For example, for H264 video, you'll select `h264_cuvid`. ```yaml ffmpeg: - hwaccel_args: - - -c:v - - h264_cuvid + hwaccel_args: -c:v h264_cuvid ``` If everything is working correctly, you should see a significant improvement in performance. diff --git a/docs/docs/contributing.md b/docs/docs/contributing.md index 59c1423f2..82903d599 100644 --- a/docs/docs/contributing.md +++ b/docs/docs/contributing.md @@ -108,6 +108,18 @@ ffmpeg -c:v h264_v4l2m2m -re -stream_loop -1 -i https://streams.videolan.org/ffm ffmpeg -c:v h264_cuvid -re -stream_loop -1 -i https://streams.videolan.org/ffmpeg/incoming/720p60.mp4 -f rawvideo -pix_fmt yuv420p pipe: > /dev/null ``` +**VAAPI** + +```shell +ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p -re -stream_loop -1 -i https://streams.videolan.org/ffmpeg/incoming/720p60.mp4 -f rawvideo -pix_fmt yuv420p pipe: > /dev/null +``` + +**QSV** + +```shell +ffmpeg -c:v h264_qsv -re -stream_loop -1 -i https://streams.videolan.org/ffmpeg/incoming/720p60.mp4 -f rawvideo -pix_fmt yuv420p pipe: > /dev/null +``` + ## Web Interface ### Prerequisites