Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile FFmpeg #24

Closed
vladtsit opened this issue Jan 4, 2022 · 5 comments
Closed

Cannot compile FFmpeg #24

vladtsit opened this issue Jan 4, 2022 · 5 comments

Comments

@vladtsit
Copy link

vladtsit commented Jan 4, 2022

Hi, during compilation I'm getting following:
ERROR: OpenMAX IL headers from raspberrypi/firmware not found

how to correct?

Thanks,
Vladimir #

@cdgriffith
Copy link
Owner

That's a new one.

Are you compiling this on a Raspberry Pi, and which model?
What OS and version are you running it on?

@vladtsit
Copy link
Author

vladtsit commented Jan 5, 2022

It was latest lite OS image for RPI3. Finally I was able to setup everything on legacy OS image, what is raspbian buster.
May be some incompatibilities with newest OS or other issues.

Thank you for great script!

@vladtsit vladtsit closed this as completed Jan 7, 2022
@uknunknown
Copy link

uknunknown commented May 28, 2022

I want to confirm that I receive this error with latest raspbian 32bits when I tried to configure ffmpeg:

alin@raspberrypi:~/FFmpeg $ sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa --extra-ldflags="-latomic"
ERROR: OpenMAX IL headers from raspberrypi/firmware not found

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
alin@raspberrypi:~/FFmpeg $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
alin@raspberrypi:~/FFmpeg $ uname -a
Linux raspberrypi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux
alin@raspberrypi:~/FFmpeg $

How to repro:

  1. RPI4 8G
  2. flashed 2022-04-04-raspios-bullseye-armhf-full.img.xz
  3. apply all updates available (today: May 27, 2022)
  4. applied the following steps:

compile ffmpeg with HW encoder:
sudo apt-get install libomxil-bellagio-dev libfreetype6-dev libmp3lame-dev checkinstall libx264-dev fonts-freefont-ttf libasound2-dev -y
cd ~
git clone https://github.com/FFmpeg/FFmpeg.git --depth 1
cd FFmpeg

sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa --extra-ldflags="-latomic"

Let me know if you want me to run any tests/provide more data.
config.log

Thank you,
Alin

@cdgriffith cdgriffith reopened this May 29, 2022
@ert485
Copy link

ert485 commented Oct 10, 2022

ERROR: OpenMAX IL headers from raspberrypi/firmware not found

I reached the same error, on a Pi Zero W with 32 bit Raspberry Pi OS Debian 11 (bullseye) September 2022

Rather than downgrading the OS, I tried removing the omx options (omx seems to be deprecated, and v4l2m2m seems to be a good alternative):
I removed omx from the configure options, and the compiled ffmpeg works great for my purposes using v4l2m2m

@cdgriffith cdgriffith mentioned this issue Sep 15, 2023
5 tasks
@cdgriffith
Copy link
Owner

Fixed in 1.7, thanks for the details!

https://github.com/cdgriffith/pi_streaming_setup/releases/tag/1.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants