I'm nearly finished migrating my RPi4 4GB to Ubuntu 19.10 with Gnome - it is running better than I thought it would.
I've got one remaining hurdle for the moment: using the h264_omx hardware encoder with ffmpeg (currently does work with the h264 software encoder). Essentially I'm trying to livestream one of my cameras to Youtube, which was working well previously on Raspbian.
This is the command I am running:
ffmpeg -nostdin -r 14.5 -i http://192.168.1.250:8080/html/cam_pic_new.php?pDelay=66666 -f lavfi -i anullsrc -b:v 2M -b:a 128k -c:v h264_omx -ar 22050 -f flv rtmp://a.rtmp.youtube.com/live2/<CODE>
The output is:
[h264_omx @ 0xaaaac8884580] libOMX_Core.so not found
[h264_omx @ 0xaaaac8884580] libOmxCore.so not found
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
I've Googled extensively today, installing/compiling various things.
I've tried installing libomxil-bellagio-dev
and libomxil-bellagio-bin
as well as numerous guides for compiling ffmpeg on RPi all to no avail. I can never seem to get past the initial C compiler test... it fails with errors such as gcc: error: missing argument to '-mcpu='
.
Anyone got any thoughts... this is really bugging me now as I can't have the Youtube stream at the moment without 70%+ CPU usage!