Expose NVIDIA acceleration to Tunarr on the media host
This commit is contained in:
@@ -28,6 +28,10 @@ docker compose logs -f bridge tunarr
|
||||
|
||||
Use `http://<LAN-IP>:4242/web/` for the programming UI and `/api/v1/health` for the bridge health check. Tunarr's internal port 8000 is published only on host loopback port 14242. The bridge uses host networking for SSDP on UDP 1900 and binds HTTP to the configured LAN IP. Admin and device access currently share the trusted LAN with no bridge-level authentication. Compose persists Tunarr's configuration and the bridge's UUID in named volumes. Tunarr defaults to two CPU cores of capacity to limit the impact of scans and transcoding on the host. Set `TUNARR_CPUS` in `.env` to change the limit.
|
||||
|
||||
## NVIDIA transcoding on this host
|
||||
|
||||
The current host uses the NVIDIA Compose override for Tunarr's CUDA transcode profile. The local `.env` selects it with `COMPOSE_FILE=compose.yaml:deploy/compose.nvidia.yaml`. The override maps NVIDIA device nodes and the host's x86-64 driver libraries into Tunarr. If the host driver version changes, set `TUNARR_NVIDIA_DRIVER_VERSION` in `.env` to the version shown by `nvidia-smi` and recreate Tunarr with `docker compose up -d --no-deps tunarr`.
|
||||
|
||||
## Roku
|
||||
|
||||
Run `./roku/build.sh` to produce `roku/dist/retroLabs.zip`. See [Roku setup and controls](roku/README.md) for sideloading and manual server entry.
|
||||
|
||||
13
deploy/compose.nvidia.yaml
Normal file
13
deploy/compose.nvidia.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# NVIDIA driver devices and libraries on a Linux x86-64 host.
|
||||
services:
|
||||
tunarr:
|
||||
devices:
|
||||
- /dev/nvidia0
|
||||
- /dev/nvidiactl
|
||||
- /dev/nvidia-uvm
|
||||
volumes:
|
||||
- /lib/x86_64-linux-gnu/libcuda.so.1:/usr/lib/x86_64-linux-gnu/libcuda.so.1:ro
|
||||
- /lib/x86_64-linux-gnu/libnvidia-encode.so.1:/usr/lib/x86_64-linux-gnu/libnvidia-encode.so.1:ro
|
||||
- /lib/x86_64-linux-gnu/libnvcuvid.so.1:/usr/lib/x86_64-linux-gnu/libnvcuvid.so.1:ro
|
||||
- /lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.1:/usr/lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.1:ro
|
||||
- /lib/x86_64-linux-gnu/libnvidia-gpucomp.so.${TUNARR_NVIDIA_DRIVER_VERSION:-580.178.04}:/usr/lib/x86_64-linux-gnu/libnvidia-gpucomp.so.${TUNARR_NVIDIA_DRIVER_VERSION:-580.178.04}:ro
|
||||
Reference in New Issue
Block a user