Skip to content

Commit

Permalink
update hwaccel docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Jun 11, 2022
1 parent ba119e4 commit 1d45b0b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/docs/configuration/hardware_acceleration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
12 changes: 12 additions & 0 deletions docs/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d45b0b

Please sign in to comment.