Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for VLC media player #115

Open
MCZocker32 opened this issue Dec 3, 2023 · 1 comment
Open

Request for VLC media player #115

MCZocker32 opened this issue Dec 3, 2023 · 1 comment

Comments

@MCZocker32
Copy link

Would it be possible to put VLC media player into a docker? Combined with Java for BD menus. The usecase would be to stream ISOs from a NAS without the need to open the file through network on a different client.

@EricDuminil
Copy link

EricDuminil commented Oct 19, 2024

The base image shouldn't include anything related to VLC, because most users won't need it.

You can modify https://github.com/jlesage/docker-baseimage-gui?tab=readme-ov-file#getting-started slightly in order to install VLC, though. The example is for xterm, but replacing xterm with vlc and vlc-qt does the trick.

Dockerfile:

# Pull base image.
FROM jlesage/baseimage-gui:alpine-3.19-v4

# Install vlc.
RUN add-pkg vlc-qt

# Copy the start script.
COPY startapp.sh /startapp.sh

# Set the name of the application.
RUN set-cont-env APP_NAME "VLC in VNC"

# Add a test video
ADD https://www.w3schools.com/tags/mov_bbb.mp4 /home/test.mp4
RUN chmod a+r /home/test.mp4

# Enable audio
ENV WEB_AUDIO=1

startapp.sh:

#!/bin/sh
exec /usr/bin/vlc --no-metadata-network-access --loop /home/test.mp4

Running chmod a+x startapp.sh && docker build -t docker-vlc . && docker run --rm -p 5800:5800 -p 5900:5900 docker-vlc should start a VLC app in the browser, available at localhost:5800.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants