FFmpeg is compiled to support hardware accelerated decoding of video streams.
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
Ensure you increase the allocated RAM for your GPU to at least 128 (raspi-config > Advanced Options > Memory Split)
ffmpeg:
hwaccel_args:
- -c:v
- h264_mmal
ffmpeg:
hwaccel_args:
- -c:v
- h264_v4l2m2m