Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.86 KB

File metadata and controls

46 lines (38 loc) · 1.86 KB

UxPlay-docker

docker-hub Actions Status

Run UxPlay on latest Debian:Testing in Docker

Thanks to the great community around UxPlay for this tool! This repo is just a wrapper to provide a docker container.

Image on Docker Hub

https://hub.docker.com/r/dachack/uxplay

Sources in Github

https://github.com/DaCHack/uxplay-docker

Host Requirements

  • Avahi daemon installed on host

When using with a TV or Set-top box UxPlay does not show full resolution?

You can force the right resolution also in case the HDMI connection is established only after boot (e.g. when using and rebooting the homeserver while the TV is off). Edit your grub confing and do not forget update-grub:

GRUB_CMDLINE_LINUX_DEFAULT="drm_kms_helper.edid_firmware=edid/lgtv_c4.bin video=HDMI-A-2:1920x1080@60e quiet"

Make sure to adapt the resolution to your monitor in this line as well as in the docker-compose below.

Docker-compose

services:
  uxplay:
    image: dachack/uxplay
    container_name: "uxplay"
    tty: true
    restart: unless-stopped
    network_mode: "host"
    devices:
      - '/dev/fb0:/dev/fb0'
      - '/dev/snd:/dev/snd'
#      - '/dev/dri:/dev/dri'  Using the gpu's rendering device causes stuttering and error message:
#                             ** (gst-plugin-scanner:7): CRITICAL **: 22:30:24.832: _dma_fmt_to_dma_drm_fmts: assertion 'fmt != GST_VIDEO_FORMAT_UNKNOWN' failed

    volumes:
      - '/var/run/dbus:/var/run/dbus'
      - '/var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket'
      - '/run:/run'
    # Tailor command based on UxPlay documentation
    command: 'uxplay -n Homeserver -nh -s 1920x1080 -vol 0.5 -dacp -nohold -vs "fbdevsink device=/dev/fb0" -as "alsasink device=plughw:1,3"'