[FFmpeg-trac] #10444(ffmpeg:new): Please implement VAAPI encoding enhancement for AMD / radeonsi (from MESA 22.3)

FFmpeg trac at avcodec.org
Sat Jan 27 10:59:05 EET 2024


#10444: Please implement VAAPI encoding enhancement for AMD / radeonsi (from MESA
22.3)
-------------------------------------+-------------------------------------
             Reporter:  Robert       |                    Owner:  (none)
  Horstmann                          |
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:  vaapi mesa   |               Blocked By:
  encoding quality                   |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Snowfall):

 As stated in the Wiki, you need VCN, but your APU only has UVD.
 VCN is RDNA1 and newer, so Ryzen 6000+ with a few exceptions...

 The whole feature combination thingy is binary math with a little twist at
 the end:
 https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17994/diffs#21d3248ae81f9ef9bebc99e617fcdaea163a6229
 Which comes down to:
 VBAQ=16, pre-encode=8, quality-preset=4, balanced-preset=2, speed-preset=0
 And at the end set the validity bit (bit0) to 1.

 For quality + pre-encoding without VBAQ:
 4 (quality) + 8 (pre-encode) + 1 (validity bit) = 13
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10444#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list