forked from Ivasoft/docker-tvheadend
Compare commits
8 Commits
9874ab0b-l
...
ebb09680-l
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbe55624ba | ||
|
|
05dfb9ffb3 | ||
|
|
ac4f7d401e | ||
|
|
ed43e439b6 | ||
|
|
f406290afe | ||
|
|
7520004527 | ||
|
|
18489b187b | ||
|
|
621a1dc880 |
@@ -247,6 +247,7 @@ RUN \
|
|||||||
libssl1.1 \
|
libssl1.1 \
|
||||||
libva \
|
libva \
|
||||||
libva-intel-driver \
|
libva-intel-driver \
|
||||||
|
mesa-dri-ati \
|
||||||
libvpx \
|
libvpx \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
libxslt \
|
libxslt \
|
||||||
|
|||||||
@@ -72,14 +72,15 @@ docker create \
|
|||||||
-v <path to data>:/config \
|
-v <path to data>:/config \
|
||||||
-v <path to recordings>:/recordings \
|
-v <path to recordings>:/recordings \
|
||||||
--device /dev/dri:/dev/dri `#optional` \
|
--device /dev/dri:/dev/dri `#optional` \
|
||||||
--device /dev/drb:/dev/dvb `#optional` \
|
--device /dev/dvb:/dev/dvb `#optional` \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
linuxserver/tvheadend
|
linuxserver/tvheadend
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Host vs. Bridge
|
#### Host vs. Bridge
|
||||||
|
|
||||||
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because of a limitation in docker and multicast.
|
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because to work with these services Tvheadend requires a multicast address of `239.255.255.250` and a UDP port of `1900` which at this time is not possible with docker bridge mode.
|
||||||
|
If you have other host services which also use multicast such as SSDP/DLNA/Emby you may experience stabilty problems. These can be solved by giving tvheadend its own IP using macavlan.
|
||||||
|
|
||||||
|
|
||||||
### docker-compose
|
### docker-compose
|
||||||
@@ -106,7 +107,7 @@ services:
|
|||||||
- 9982:9982
|
- 9982:9982
|
||||||
devices:
|
devices:
|
||||||
- /dev/dri:/dev/dri #optional
|
- /dev/dri:/dev/dri #optional
|
||||||
- /dev/drb:/dev/dvb #optional
|
- /dev/dvb:/dev/dvb #optional
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -268,6 +269,8 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **18.08.19:** - Add AMD drivers.
|
||||||
|
* **02.08.19:** - Attempt to automatically fix permissions on /dev/dri and /dev/dvb.
|
||||||
* **28.06.19:** - Rebasing to alpine 3.10.
|
* **28.06.19:** - Rebasing to alpine 3.10.
|
||||||
* **27.03.19:** - Rebase to Alpine 3.9, fix init logic to only chown once.
|
* **27.03.19:** - Rebase to Alpine 3.9, fix init logic to only chown once.
|
||||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ ca-certificates-20190108-r0
|
|||||||
ca-certificates-cacert-20190108-r0
|
ca-certificates-cacert-20190108-r0
|
||||||
coreutils-8.31-r0
|
coreutils-8.31-r0
|
||||||
curl-7.65.1-r0
|
curl-7.65.1-r0
|
||||||
|
elfutils-libelf-0.168-r2
|
||||||
expat-2.2.7-r0
|
expat-2.2.7-r0
|
||||||
ffmpeg-4.1.3-r1
|
ffmpeg-4.1.4-r0
|
||||||
ffmpeg-libs-4.1.3-r1
|
ffmpeg-libs-4.1.4-r0
|
||||||
fontconfig-2.13.1-r0
|
fontconfig-2.13.1-r0
|
||||||
freetype-2.10.0-r0
|
freetype-2.10.0-r0
|
||||||
fribidi-1.0.5-r1
|
fribidi-1.0.5-r1
|
||||||
@@ -62,11 +63,16 @@ libxdmcp-1.1.3-r0
|
|||||||
libxext-1.3.4-r0
|
libxext-1.3.4-r0
|
||||||
libxfixes-5.0.3-r2
|
libxfixes-5.0.3-r2
|
||||||
libxml2-2.9.9-r2
|
libxml2-2.9.9-r2
|
||||||
|
libxshmfence-1.3-r0
|
||||||
libxslt-1.1.33-r1
|
libxslt-1.1.33-r1
|
||||||
linux-headers-4.19.36-r0
|
linux-headers-4.19.36-r0
|
||||||
linux-pam-1.3.0-r1
|
linux-pam-1.3.0-r1
|
||||||
musl-1.1.22-r2
|
llvm8-libs-8.0.0-r1
|
||||||
musl-utils-1.1.22-r2
|
mesa-19.0.6-r0
|
||||||
|
mesa-dri-ati-19.0.6-r0
|
||||||
|
mesa-glapi-19.0.6-r0
|
||||||
|
musl-1.1.22-r3
|
||||||
|
musl-utils-1.1.22-r3
|
||||||
ncurses-libs-6.1_p20190518-r0
|
ncurses-libs-6.1_p20190518-r0
|
||||||
ncurses-terminfo-6.1_p20190518-r0
|
ncurses-terminfo-6.1_p20190518-r0
|
||||||
ncurses-terminfo-base-6.1_p20190518-r0
|
ncurses-terminfo-base-6.1_p20190518-r0
|
||||||
|
|||||||
@@ -53,14 +53,15 @@ opt_param_usage_include_ports: false
|
|||||||
opt_param_device_map: true
|
opt_param_device_map: true
|
||||||
opt_param_devices:
|
opt_param_devices:
|
||||||
- { device_path: "/dev/dri", device_host_path: "/dev/dri", desc: "Only needed if you want to use your AMD/Intel GPU for hardware accelerated video encoding (vaapi)." }
|
- { device_path: "/dev/dri", device_host_path: "/dev/dri", desc: "Only needed if you want to use your AMD/Intel GPU for hardware accelerated video encoding (vaapi)." }
|
||||||
- { device_path: "/dev/dvb", device_host_path: "/dev/drb", desc: "Only needed if you want to pass through a DVB card to the container. If you use IPTV or HDHomeRun you can leave it out." }
|
- { device_path: "/dev/dvb", device_host_path: "/dev/dvb", desc: "Only needed if you want to pass through a DVB card to the container. If you use IPTV or HDHomeRun you can leave it out." }
|
||||||
opt_cap_add_param: false
|
opt_cap_add_param: false
|
||||||
optional_block_1: true
|
optional_block_1: true
|
||||||
optional_block_1_items:
|
optional_block_1_items:
|
||||||
- |
|
- |
|
||||||
#### Host vs. Bridge
|
#### Host vs. Bridge
|
||||||
|
|
||||||
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because of a limitation in docker and multicast.
|
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because to work with these services Tvheadend requires a multicast address of `239.255.255.250` and a UDP port of `1900` which at this time is not possible with docker bridge mode.
|
||||||
|
If you have other host services which also use multicast such as SSDP/DLNA/Emby you may experience stabilty problems. These can be solved by giving tvheadend its own IP using macavlan.
|
||||||
|
|
||||||
# application setup block
|
# application setup block
|
||||||
app_setup_block_enabled: true
|
app_setup_block_enabled: true
|
||||||
@@ -125,6 +126,8 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "18.08.19:", desc: "Add AMD drivers." }
|
||||||
|
- { date: "02.08.19:", desc: "Attempt to automatically fix permissions on /dev/dri and /dev/dvb." }
|
||||||
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
|
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
|
||||||
- { date: "27.03.19:", desc: "Rebase to Alpine 3.9, fix init logic to only chown once." }
|
- { date: "27.03.19:", desc: "Rebase to Alpine 3.9, fix init logic to only chown once." }
|
||||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||||
|
|||||||
34
root/etc/cont-init.d/50-gid-video
Normal file
34
root/etc/cont-init.d/50-gid-video
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# check for the existence of a video and/or tuner device
|
||||||
|
if [ -e /dev/dri ] || [ -e /dev/dvb ]; then
|
||||||
|
if [ -e /dev/dri ]; then
|
||||||
|
VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v '^0$' | head -n 1)
|
||||||
|
else
|
||||||
|
VIDEO_GID=$(stat -c '%g' /dev/dvb/* | grep -v '^0$' | head -n 1)
|
||||||
|
fi
|
||||||
|
# just add abc to root if stuff in dri/dvb is root owned
|
||||||
|
if [ -z "${VIDEO_GID}" ]; then
|
||||||
|
usermod -a -G root abc
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if this GID matches the current abc user
|
||||||
|
ABCGID=$(getent group abc | awk -F: '{print $3}')
|
||||||
|
if [ "${ABCGID}" == "${VIDEO_GID}" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if the GID is taken and swap to 65533
|
||||||
|
CURRENT=$(getent group ${VIDEO_GID} | awk -F: '{print $1}')
|
||||||
|
if [ -z "${CURRENT}" ] || [ "${CURRENT}" == 'video' ]; then
|
||||||
|
groupmod -g ${VIDEO_GID} video
|
||||||
|
usermod -a -G video abc
|
||||||
|
else
|
||||||
|
groupmod -g 65533 ${CURRENT}
|
||||||
|
groupmod -g ${VIDEO_GID} video
|
||||||
|
usermod -a -G video abc
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user