Linux
macOS
Allow any source program to run
- Upper left corner -
System Preferences
-Security & Privacy
-Security
- CheckAny Source
- If not, please run
sudo spctl --master-disable
interminal
and the password is the user login password - Run
sudo spctl --master-disable
interminal
and the password is the user login password
Docker
WARNING
It is strongly recommended to use the Windows or macOS version before using the Docker version for the first time
If any bugs affect the use, please use the desktop version and refer to here
Migrate to the new version
TIP
Old version mvdctop/mdc Stop updating Please pull mvdctop/mdc-gui-lite
This entry will guide you Migrate from mvdctop/mdc to mvdctop/mdc-gui-lite Please click Details below to read
New features
Access the browser user interface, the container defaults to HTTP port 5800
, and has a consistent experience with other clients
Environment variables
UID
changed toUSER_ID
GID
changed toGROUP_ID
- DSM, please click
-
to remove the empty value of the environment variable
Port
Map container HTTP port 5800
Configuration file
Remove the old version of the configuration file mdc.ini
and use the new version to regenerate the configuration file
Run
Access the container port 5800 through the browser
Please contact us for any bugs
Environment variables
Field name | Value semantics | Default value |
---|---|---|
USER_ID | Current user ID of the host | 1026 |
GROUP_ID | Current user group ID of the host | 100 |
UMASK | Permission mask of the data directory | 002 |
NAME | Device name displayed on the web | Docker-MDC-GUI-Lite |
Volumes
Volumes | Explanation |
---|---|
/data | Media data directory |
/subs | Video subtitle directory |
/config/.mdc | Configuration file directory |
WARNING
Soft/hard link files in Docker containers are not recommended
If you must use link files, make sure that when configuring volumes, the host directory and the container directory are exactly the same
Choose one of the following tutorials
NAS system
- Open
Container Manager
to obtain themvdctop/mdc-gui-lite
image
Ports
- Map port 5800
- 5900 is the VNC access port, click the
-
on the right to remove it
Environment variables
- The default user
USER_ID
andGROUP_ID
of ordinary Linux distributions are both1000
- The default user
USER_ID
of Synology DSM is1026
andGROUP_ID
is100
- Click
-
to remove the empty value of the environment variable
Volumes
Create a new folder in the host machine. This directory is used to map the container directory
/config/.mdc
(required)In the container page, right-click details and edit volume
/subs
subtitle directory is optional
After running, enter port 5800 in the browser
http://192.168.1.2:5800
Ordinary Linux distribution
It is recommended to add the current user to the Docker user group first. Please Google for details to avoid directory permission problems caused by sudo operation
Pull Docker image
docker pull mvdctop/mdc-gui-lite
mkdir -p config data data/output
Place the test video, or you can use a real video file
This command is to create a blank test file
touch ./data/Resident Evil.2002.mp4
Run the container
shell
docker run \
--rm \
--name mdc-gui-lite \
-p 5800:5800 \
-v ${PWD}/data:/data \
-v ${PWD}/output:/data/output \
-v ${PWD}/config:/config/.mdc \
-e USER_ID=$(id -u) \
-e GROUP_ID=$(id -g) \
-e NAME=Docker-MDC-GUI-Lite \
mvdctop/mdc-gui-lite
docker-compose
Save as docker-compose.yml
in current directory
version: '3.8'
services:
mdc-gui-lite:
image: mvdctop/mdc-gui-lite
container_name: Docker-MDC-GUI-Lite
ports:
- "5800:5800"
volumes:
- ./data:/data
- ./output:/data/output
- ./config:/config/.mdc
environment:
- USER_ID=${USER_ID}
- GROUP_ID=${GROUP_ID}
- NAME=Docker-MDC-GUI-Lite
Linux Commands
mkdir -p config data data/output
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
docker-compose up
Enter port 5800 in the browser
http://192.168.1.2:5800