[FFmpeg-devel] [PATCH] avcodec/amfenc: add smart access video option

Araz primeadvice at gmail.com
Tue Mar 11 23:37:11 EET 2025


> It’s almost impossible to get what does this option do for user with good
> background on video encoding.
> Please add some comments here.
>
Yes, as Dennis Mungai said, this feature allows to use both APU and GPU
for decoding/encoding in a single pipeline.
It is supported on AMD Radeon CPU 5000 series and higher and RX 6000
series and higher graphics cards.
The average transcoding speed improves up to 30%.
This patch is tested on AMD Ryzen 5 7600X + AMD GPU RX6700XT.
To enable this feature, you need to select the hwaccel AMF input
and output as in the example below:
ffmpeg.exe -hwaccel amf -hwaccel_output_format amf -extra_hw_frames 33
-i input.mp4 -c:v hevc_amf -smart_access_video 1 -y output.mp4


More information about the ffmpeg-devel mailing list