English > Sundtek MediaTV Pro (Europe)

Sundtek - TVH - Rpi4 Docker

(1/2) > >>

ehfred10:
Hello,

I'm trying to use my adapter through TVH docker on my raspberry pi.

I have two adapter MediaTV Digital Home III

I've installed the driver on the native host.

I've followed the wiki regarding docker use https://sundtek.com/wiki/index.php?title=Docker

I've tryed to change owner of the /dev/dvb folder (recursively)

But no adapter showned on the gui.

Did I missed something?

Thank you

Sundtek:
Hi,

Docker Image on a Raspberry PI ... ok, most people use it directly on the Raspberry PI.


However if you want to run it inside a docker, following steps are required:


--- Zitat ---sudo -s # switch to root
echo "enabledocker=on" > /etc/sundtek.conf
afterwards it's best to restart the driver on the host
/opt/bin/mediaclient --shutdown
cd /opt/bin
./mediasrv -d

(it will exit immediately and create dummy nodes in /dev/dvb)
afterwards you should create the docker image with access to /dev/dvb and /dev/bus/usb

--- Ende Zitat ---

Did you run that on the native Host?

How did you create the docker image, did you allow access to /dev/dvb and /dev/bus/usb?

ehfred10:
Hi, thank you for your help,

I've already created the sundtek.conf file

The TVH docker has been made through docker compose. Here is the part for TVH:


--- Code: ---  tvheadend:
    image: lscr.io/linuxserver/tvheadend:latest
    container_name: tvheadend
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Brussels
      - RUN_OPTS= #optional
    volumes:
      - /home/pi/compose/tvheadend/config:/config
      - /recordings:/recordings
    ports:
      - 9981:9981
      - 9982:9982
    devices:
      - /dev/dvb:/dev/dvb
      - /dev/bus/usb:/dev/bus/usb
    restart: always

--- Ende Code ---

Sundtek:
Did you install the driver inside the docker as well (as documented in the wiki)?

The only purpose of the driver on the host is to create some dummy device nodes in /dev/dvb (in case of docker, because the device authorization is a bit weird).

ehfred10:
Yup, I followed the wiki.

But inside the docker i got this:

root@9c6320bd9ff0:/# /config/opt/bin/mediaclient --tsscan /dev/dvb/adapter0/dvr0
Connecting to server failed

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln