rearrange encoder/transcoder/multimedia parts in various containers
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
apt_install='apt-get install -y --no-install-recommends'
|
apt_install='apt-get install -y --no-install-recommends --force-yes'
|
||||||
|
|
||||||
apt_install_permanent() {
|
apt_install_permanent() {
|
||||||
echo $@ | tr ' ' '\n' >> /build/permanent
|
echo $@ | tr ' ' '\n' >> /build/permanent
|
||||||
@@ -30,4 +30,4 @@ export_container_environment() {
|
|||||||
for file in /etc/container_environment/*; do
|
for file in /etc/container_environment/*; do
|
||||||
export $(basename $file)="$(cat $file)";
|
export $(basename $file)="$(cat $file)";
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
encoders: compile
|
|
||||||
$(call script,$@)
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
ffmpeg:
|
ffmpeg: compile
|
||||||
$(call script,ffmpeg)
|
$(call script,ffmpeg)
|
||||||
|
|||||||
2
build/make/handbrake.mk
Normal file
2
build/make/handbrake.mk
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
handbrake: multimedia
|
||||||
|
$(call script,$@)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
headphones: base encoders ffmpeg
|
headphones: base transcoder ffmpeg
|
||||||
$(call script,$@)
|
$(call script,$@)
|
||||||
$(call boot,02,$@)
|
$(call boot,02,$@)
|
||||||
$(call runit,$@)
|
$(call runit,$@)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
kodi: base encoders ffmpeg
|
kodi: base compile transcoder ffmpeg
|
||||||
$(call aux,headless.patch)
|
$(call aux,headless.patch)
|
||||||
$(call script,$@)
|
$(call script,$@)
|
||||||
$(call runit,$@)
|
$(call runit,$@)
|
||||||
|
|||||||
2
build/make/multimedia.mk
Normal file
2
build/make/multimedia.mk
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
multimedia:
|
||||||
|
$(call script,$@)
|
||||||
3
build/make/rar.mk
Normal file
3
build/make/rar.mk
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
rar:
|
||||||
|
$(call script,utilities)
|
||||||
|
$(call script,$@)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
sabnzbd: base
|
sabnzbd: base rar
|
||||||
$(call script,$@)
|
$(call script,$@)
|
||||||
$(call boot,02,$@)
|
$(call boot,02,$@)
|
||||||
$(call runit,$@)
|
$(call runit,$@)
|
||||||
|
|||||||
2
build/make/transcoder.mk
Normal file
2
build/make/transcoder.mk
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
transcoder: rar handbrake
|
||||||
|
$(call script,$@)
|
||||||
2
build/scripts/handbrake.sh
Normal file
2
build/scripts/handbrake.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Handbrake
|
||||||
|
apt_install_permanent --force-yes handbrake-cli
|
||||||
@@ -3,6 +3,3 @@ echo 'deb http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/source
|
|||||||
echo 'deb-src 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 update
|
||||||
apt_install_permanent --force-yes deb-multimedia-keyring
|
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-* libfaac-dev
|
|
||||||
15
build/scripts/rar.sh
Normal file
15
build/scripts/rar.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
## Environment
|
||||||
|
export_env RAR_VERSION 5.4.0
|
||||||
|
|
||||||
|
## Rar
|
||||||
|
cd /opt
|
||||||
|
wget http://www.rarlab.com/rar/rarlinux-x64-$RAR_VERSION.tar.gz
|
||||||
|
tar xzf rarlinux-x64-$RAR_VERSION.tar.gz
|
||||||
|
ln -s /opt/rar/rar /usr/bin
|
||||||
|
|
||||||
|
|
||||||
|
## Remove installation files
|
||||||
|
if [ $MODE == "minimal" ]; then
|
||||||
|
cd /opt
|
||||||
|
rm rarlinux-x64-$RAR_VERSION.tar.gz
|
||||||
|
fi
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
## Environment
|
## Environment
|
||||||
export_env RAR_VERSION 5.4.0
|
|
||||||
export_env SABNZBD_CONFIG /host/etc/sabnzbd/sabnzbd.ini
|
export_env SABNZBD_CONFIG /host/etc/sabnzbd/sabnzbd.ini
|
||||||
export_env SABNZBD_DATA /host/var/lib/sabnzbd
|
export_env SABNZBD_DATA /host/var/lib/sabnzbd
|
||||||
|
|
||||||
@@ -12,11 +11,5 @@ apt_install_permanent sabnzbdplus
|
|||||||
## Utilities
|
## Utilities
|
||||||
apt_install_permanent unzip par2 python-openssl python-yenc
|
apt_install_permanent unzip par2 python-openssl python-yenc
|
||||||
|
|
||||||
## Rar
|
|
||||||
cd /opt
|
|
||||||
wget http://www.rarlab.com/rar/rarlinux-x64-$RAR_VERSION.tar.gz
|
|
||||||
tar xzf rarlinux-x64-$RAR_VERSION.tar.gz
|
|
||||||
ln -s /opt/rar/rar /usr/bin
|
|
||||||
|
|
||||||
## 7zip
|
## 7zip
|
||||||
apt_install_permanent p7zip-full
|
apt_install_permanent p7zip-full
|
||||||
|
|||||||
19
build/scripts/transcoder.sh
Normal file
19
build/scripts/transcoder.sh
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
## Environment
|
||||||
|
export_env LIBDVDCSS_VERSION 1.2.13
|
||||||
|
|
||||||
|
## LibDVDCSS
|
||||||
|
cd /opt
|
||||||
|
wget http://download.videolan.org/pub/debian/stable/libdvdcss2_$LIBDVDCSS_VERSION-0_amd64.deb
|
||||||
|
dpkg -i libdvdcss2_$LIBDVDCSS_VERSION-0_amd64.deb
|
||||||
|
|
||||||
|
## DVD
|
||||||
|
apt_install_permanent vobcopy
|
||||||
|
|
||||||
|
## Audio
|
||||||
|
apt_install_permanent --force-yes libmp3lame0 libavcodec-extra* libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev libopenjpeg-dev libx264-* libfaac-dev
|
||||||
|
|
||||||
|
## Remove installation files
|
||||||
|
if [ $MODE == "minimal" ]; then
|
||||||
|
cd /opt
|
||||||
|
rm libdvdcss2_$LIBDVDCSS_VERSION-0_amd64.deb
|
||||||
|
fi
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
## Often used tools
|
## Often used tools
|
||||||
apt_install_permanent psmisc wget curl python-pip git gawk zip gperf unzip bzip2 inetutils-ping inetutils-telnet rsync
|
apt_install_permanent software-properties-common psmisc wget curl python-pip git gawk zip gperf unzip bzip2 inetutils-ping inetutils-telnet rsync
|
||||||
|
|
||||||
## Often used python modules
|
## Often used python modules
|
||||||
pip install argparse
|
pip install argparse
|
||||||
|
|||||||
Reference in New Issue
Block a user