I have used the official builds of ffmpeg 7.1 from here and it worked inside AWS Lambda running node22.