FFmpeg H264 Encoding causes dmesg error “Failed to load firmware binary. filename=linlon-v52_v76-80-2/h264enc.fwb” – Banana Pi F3

Hardware H264 encoding on the F3 is failing with a firmware binary error.

ffmpeg command

ffmpeg -y -v 99 -f lavfi -i testsrc -pix_fmt nv12 -g 15 -c:v h264_v4l2m2m  out.264

 

dmesg error

[ 4834.438234] MVX if: Failed to load firmware binary. filename=linlon-v52_v76-80-2/h264enc.fwb.
[ 4834.450002] MVX if: Firmware binary was loaded with error.
[ 4834.450020] MVX session: ffffffd905a1a0f8 send event error. error=-22

 

ffmpeg

Gets some way into initialising. It detects the Linlon H264 encoder, checks images are NV12 format, but then fail with this error

[h264_v4l2m2m @ 0x2abf834870] Failed to set gop size: Invalid argument

 

 

Where do I find this .fwb file, and should it be shipping with Armbian?

 

 

System

Banana Pi F3

 

Uname

Linux bananapif3 6.1.15-legacy-spacemit #1 SMP Sat Sep  7 13:08:45 UTC 2024 riscv64 riscv64 riscv64 GNU/Linux

 

/etc/os-release

PRETTY_NAME=”Armbian 25.5.0-trunk.451 noble”
NAME=”Ubuntu”
VERSION_ID=”24.04″
VERSION=”24.04 LTS (Noble Numbat)”
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL=”https://www.armbian.com/”
SUPPORT_URL=”https://forum.armbian.com”
BUG_REPORT_URL=”https://www.armbian.com/bugs”
PRIVACY_POLICY_URL=”https://www.armbian.com”
UBUNTU_CODENAME=noble
LOGO=”armbian-logo”
ARMBIAN_PRETTY_NAME=”Armbian 25.5.0-trunk.451 noble”

 

apt-update/apt-upgrade

did this first

 

Read more here: Source link