FFMPEG OMX troubles

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
temchik
Posts: 4
Joined: Tue Jan 30, 2018 3:26 pm

FFMPEG OMX troubles

Post by temchik »

Hi All,

I can't seem to get ffmpeg working with h264 OMX hardware encoding. Depending on how I install FFMPEG I get different errors, but going "the easy" route and installing it via dietpi-software it errors out when using h264_omx:

ffmpeg -i input.mp4 -c:a aac -b:a 128k -c:v h264_omx -b:v 900k output.mp4

gives me

[h264_omx @ 0x2498610] OMX_GetHandle(OMX.broadcom.video_encode) failed: 80001005

I tried installing libomxil-bellagio-bin like suggested elsewhere but that doesn't work.. I thought libomxil is already included in raspbian in /opt/vc/lib, but that is not being used either

Anybody has a solution to this?
Thanks!
temchik
Posts: 4
Joined: Tue Jan 30, 2018 3:26 pm

Re: FFMPEG OMX troubles

Post by temchik »

Ok, so, I managed to get it working by copying the library to /usr/lib

cp /opt/vc/lib/libopenmaxil.so /usr/lib

and now ffmpeg successfully loads h264_omx codec

not sure if it's the correct way to do it.
Post Reply