Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Slackware - ARM This forum is for the discussion of Slackware ARM.


  Search this Thread
Old 06-30-2017, 04:15 AM   #1
Registered: Apr 2004
Location: Texas
Distribution: Slackware
Posts: 177

Rep: Reputation: Disabled
Raspberry Pi: How to compile OpenMAX and FFMPEG on RPi

In order to use the RPi's hardware video acceleration, you need the OpenMAX libs. Here's how to compile and make a Slackware package-

=====Build OpenMAX Slackware Package=====
Get the following two files (from the Debian/Ubuntu package repositories):

mkdir /tmp/build
rm -rf /tmp/build/*
tar -xvzf libomxil-bellagio-0.9.3.tar.gz
tar -xf libomxil-bellagio_0.9.3-4.debian.tar.xz
cd libomxil-bellagio-0.9.3
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
patch -p1 < ../debian/patches/0001-Fallback-on-different-registry-location-except-for.patch
patch -p1 < ../debian/patches/0002[hit TAB]
patch -p1 < ../debian/patches/0003[hit TAB]
patch -p1 < ../debian/patches/0004[hit TAB]
patch -p1 < ../debian/patches/0005[hit TAB]
patch -p1 < ../debian/patches/0006[hit TAB]
patch -p1 < ../debian/patches/0007[hit TAB]
patch -p1 < ../debian/patches/0008[hit TAB]
patch -p1 < ../debian/patches/0009[hit TAB]
patch -p1 < ../debian/patches/0010[hit TAB]
make install DESTDIR=/tmp/build
cd /tmp/build; mkdir install; cd install
vi slack-desc
  OpenMAX Bellagio: OpenMAX Bellagio (API to access Multimedia Components)
  OpenMAX Bellagio:
  OpenMAX Bellagio: OpenMAX Integration Layer (IL) is a standard API to access Multimedia
  OpenMAX Bellagio: Components on mobile platforms. It has been defined by the Khronos
  OpenMAX Bellagio: group. By means of the OpenMAX IL API, multimedia frameworks can
  OpenMAX Bellagio: access hardware accelerators on platforms that provide it.
  OpenMAX Bellagio:
  OpenMAX Bellagio: Bellagio is an opensource implementation of the OpenMAX IL API that
  OpenMAX Bellagio: runs on Linux PC.
  OpenMAX Bellagio:
  OpenMAX Bellagio:

cd /tmp/build
makepkg ../libomxil-bellagio-0.9.3-armv7l-ARG.tgz
installpkg /tmp/libomxil-bellagio-0.9.3-armv7l-ARG.tgz

=====Build FFMPEG Slackware Package=====

Download and uncompress the ffmpeg source files

rm -rf /tmp/build/*
cd FFmpeg/
./configure --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/man --arch=armel --target-os=linux --enable-gpl --enable-omx
make install DESTDIR=/tmp/build
strip -s /tmp/build/usr/lib/* /tmp/build/usr/bin/*
gzip -9 /tmp/build/usr/man/man?/*.?
cd /tmp/build; mkdir install; cd install
vi slack-desc
  ffmpeg: ffmpeg (Software to record, convert and stream audio and video)
  ffmpeg: FFmpeg is a complete solution to record, convert and stream audio
  ffmpeg: and video. It includes libavcodec, the leading audio/video codec
  ffmpeg: library. FFmpeg is developed under Linux, but it can compiled
  ffmpeg: under most operating systems, including Windows.
  ffmpeg: Homepage:

cd /tmp/build
makepkg ../ffmpeg-3.3-armv7l_OpenMAX_ARG.tgz
installpkg /tmp/ffmpeg-3.3-armv7l_OpenMAX_ARG.tgz

Last edited by arfon; 06-30-2017 at 04:17 AM.
Old 08-20-2017, 03:44 PM   #2
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 720

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Aren't those OpenMAX libs already included in the optimized vc (userland) stuff that comes with Raspbian (it can also be downloaded and manually compiled)?

I'm compiling FFMPEG by linking it to /opt/vc/lib/ without any Openmax additional stuff and benefiting from HW acceleration when playing/encoding MPEG2/MPEG4 (I also bought an MPEG2 licence).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 04:03 PM
ffmpeg fails to compile skillednerd Linux - Software 6 04-26-2011 05:57 AM
cant compile ffmpeg on FC5 aditya1 Linux - Software 1 09-19-2006 10:06 PM
LXer: STMicroelectronics Releases OpenMAX IP Open Source Sample LXer Syndicated Linux News 0 07-05-2006 08:03 AM
ffmpeg compile help gfem Linux - Software 4 01-06-2006 04:28 PM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration