Installed on my system, but I’m experiencing the same problem.
yay -Qs ffmpeg
local/ffmpeg 2:5.0-4
Complete solution to record, convert and stream audio and video
local/ffmpeg4.4 4.4.1-3
Complete solution to record, convert and stream audio and video