Skip to content

Commit

Permalink
Merge pull request #14 from jellyfin/fix-mmal
Browse files Browse the repository at this point in the history
Add MMAL for armhf on Raspberry Pi
  • Loading branch information
nvllsvm authored Nov 14, 2019
2 parents de56e26 + 0f9745b commit 4c46585
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
jellyfin-ffmpeg (4.2.1-3) unstable; urgency=medium

* Support MMAL hardware acceleration on armhf (Raspbian)

-- Joshua Boniface <[email protected]> Sat, 02 Nov 2019 21:40:48 -0400

jellyfin-ffmpeg (4.2.1-2) unstable; urgency=medium

* Support Ubuntu Eoan (19.10)
Expand Down
3 changes: 2 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ CONFIG := --toolchain=hardened \
--enable-vaapi \
--enable-vdpau \

CONFIG_ARM := --enable-cross-compile \
CONFIG_ARM := --enable-mmal \
--enable-cross-compile \
--cross-prefix=/usr/bin/arm-linux-gnueabihf- \
--arch=armhf

Expand Down
9 changes: 9 additions & 0 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ EOF
ln -fs /usr/share/zoneinfo/America/Toronto /etc/localtime
yes | apt-get install -y gcc-${GCC_VER}-source libstdc++6-armhf-cross binutils-arm-linux-gnueabihf bison flex libtool gdb sharutils netbase libmpc-dev libmpfr-dev libgmp-dev systemtap-sdt-dev autogen expect chrpath zlib1g-dev zip libc6-dev:armhf linux-libc-dev:armhf libgcc1:armhf libcurl4-openssl-dev:armhf libfontconfig1-dev:armhf libfreetype6-dev:armhf liblttng-ust0:armhf libstdc++6:armhf
popd

# Fetch RasPi headers to build MMAL support
pushd ${SOURCE_DIR}
git clone --depth=1 https://github.com/raspberrypi/firmware mmalheaders
git clone --depth=1 https://github.com/raspberrypi/userland piuserland
cp -a mmalheaders/opt/vc/include/* /usr/include/
cp -a mmalheaders/opt/vc/lib/* /usr/lib/
cp -a piuserland/interface/* /usr/include/
popd
}
prepare_crossbuild_env_arm64() {
# Prepare the Ubuntu-specific cross-build requirements
Expand Down

0 comments on commit 4c46585

Please sign in to comment.