Linux

macOS

Allow any source program to run

  • Upper left corner - System Preferences - Security & Privacy - Security - Check Any Source
  • If not, please run sudo spctl --master-disable in terminal and the password is the user login password
  • Run sudo spctl --master-disable in terminal 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

Docker Hub pageopen in new window

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 to USER_ID
  • GID changed to GROUP_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 usopen in new window for any bugs


Environment variables

Field nameValue semanticsDefault value
USER_IDCurrent user ID of the host1026
GROUP_IDCurrent user group ID of the host100
UMASKPermission mask of the data directory002
NAMEDevice name displayed on the webDocker-MDC-GUI-Lite

Volumes

VolumesExplanation
/dataMedia data directory
/subsVideo subtitle directory
/config/.mdcConfiguration 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 the mvdctop/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 and GROUP_ID ​​of ordinary Linux distributions are both 1000
  • The default user USER_ID of Synology DSM is 1026 and GROUP_ID ​​is 100

  • 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

Last Updated: