Move encoders and ffmpeg to separate scripts
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
headphones:
|
headphones: encoders
|
||||||
$(call script,encoders)
|
$(call script,ffmpeg)
|
||||||
$(call script,$@)
|
$(call script,$@)
|
||||||
$(call boot,02,$@)
|
$(call boot,02,$@)
|
||||||
$(call runit,$@)
|
$(call runit,$@)
|
||||||
13
build/scripts/encoders.sh
Normal file
13
build/scripts/encoders.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
source /build/config
|
||||||
|
set -x
|
||||||
|
|
||||||
|
## Enable multimedia sources in APT
|
||||||
|
echo 'deb http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
|
||||||
|
echo 'deb-src http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
|
||||||
|
apt update
|
||||||
|
apt_install_permanent --force-yes deb-multimedia-keyring
|
||||||
|
|
||||||
|
## Encoders
|
||||||
|
apt_install_permanent --force-yes libmp3lame0 libavcodec-extra* libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev libopenjpeg-dev libx264-dev libfaac-dev
|
||||||
16
build/scripts/ffmpeg.sh
Normal file
16
build/scripts/ffmpeg.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
source /build/config
|
||||||
|
set -x
|
||||||
|
|
||||||
|
## Environment
|
||||||
|
export_env FFMPEG_VERSION 2.8.6
|
||||||
|
|
||||||
|
## FFmpeg
|
||||||
|
cd /opt
|
||||||
|
wget https://github.com/xbmc/FFmpeg/archive/$FFMPEG_VERSION-Jarvis-16.0.tar.gz
|
||||||
|
tar xvjf ffmpeg-$FFMPEG_VERSION.tar.bz2
|
||||||
|
cd ffmpeg-$FFMPEG_VERSION
|
||||||
|
./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree
|
||||||
|
make $JOBS
|
||||||
|
make install
|
||||||
Reference in New Issue
Block a user