LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 06-30-2017, 03:15 AM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 370

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):
libomxil-bellagio-0.9.3.tar.gz
libomxil-bellagio_0.9.3-4.debian.tar.xz

Code:
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
make install DESTDIR=/tmp/build
cd /tmp/build; mkdir install; cd install
vi slack-desc
		  |-----handy-ruler------------------------------------------------------|
  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: http://omxil.sourceforge.net/

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

Code:
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
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
	|-----handy-ruler------------------------------------------------------|
  ffmpeg: ffmpeg (Software to record, convert and stream audio and video)
  ffmpeg:
  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:
  ffmpeg: Homepage: http://ffmpeg.mplayerhq.hu
  ffmpeg:
  ffmpeg:
  ffmpeg:

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 03:17 AM.
 
Old 08-20-2017, 02:44 PM   #2
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
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)?
http://elinux.org/Raspberry_Pi_VideoCore_APIs

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).
 
  


Reply



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 03:03 PM
ffmpeg fails to compile skillednerd Linux - Software 6 04-26-2011 04:57 AM
cant compile ffmpeg on FC5 aditya1 Linux - Software 1 09-19-2006 09:06 PM
LXer: STMicroelectronics Releases OpenMAX IP Open Source Sample LXer Syndicated Linux News 0 07-05-2006 07:03 AM
ffmpeg compile help gfem Linux - Software 4 01-06-2006 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 02:07 PM.

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