SMPlayer Ubuntu 22.04 builds with GPU drivers.
10K+
SMPlayer is a free media player with built-in codecs that can play virtually all video and audio formats. It doesn't need any external codecs. Just install SMPlayer and you'll be able to play all formats without the hassle to find and install codec packs.
† nvidia driver note
libnvidia-gl-525 is provided in the image, being the current supported version in the latest Ubuntu LTS release. The host driver version will be checked every time the container is started and if there is a version mismatch, an attempt to install the correct driver in the container will be made unless:
/usr/local/nvidia/lib,
/usr/local/nvidia/lib64 or /nvidia. It is assumed that the correct
libraries are mounted from the host. Directories will be added to
/etc/ld.so.conf.d/nvidia.conf.NVIDIA_SKIP_DOWNLOAD=1 has been set./proc/driver/nvidia/version.The first option is the preferred way to add nvidia drivers to the container. See here for an example on generating the required files on the host. It may also be possible to achieve this using nvidia-docker.
# detect gpu devices to pass through
GPU_DEVICES=$( \
echo "$( \
find /dev -maxdepth 1 -regextype posix-extended -iregex '.+/nvidia([0-9]|ctl|-modeset)' \
| grep --color=never '.' \
|| echo '/dev/dri'\
)" \
| sed -E "s/^/--device /" \
)
# create the container
docker create \
--name smplayer \
--device /dev/snd \
$GPU_DEVICES \
-v $HOME/Videos:/videos:ro \
-v $HOME/.config/smplayer:/config \
-e PUID=$(id -u) \
-e PGID=$(id -g) \
-e DISPLAY=unix$DISPLAY \
-e LANG=${LANG:-en_US.UTF-8} \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v /etc/machine-id:/etc/machine-id:ro \
-v $HOME/.config/pulse:/home/ubuntu/.config/pulse:ro \
-v /run/user/$(id -u)/pulse:/run/user/$(id -u)/pulse:ro \
-v /etc/localtime:/etc/localtime:ro \
andrewmackrodt/smplayer-x11
| Parameter | Function |
|---|---|
-e PUID=1000 | The user id, recommended: $(id -u) |
-e PGID=1000 | The group id, recommended: $(id -g) |
-e SUDO_NOPASSWD=0 | Set to 1 to allow passwordless sudo |
-e TZ=UTC | The timezone, e.g. "Europe/London" |
-e LANG=en_US.UTF-8 | The language to use, e.g. "de_DE" |
-v /videos | smplayer videos directory |
-v /config | smplayer config directory |
Content type
Image
Digest
sha256:12c37f507…
Size
462.2 MB
Last updated
5 months ago
docker pull andrewmackrodt/smplayer-x11