Giter Club home page Giter Club logo

docker-mkvtoolnix's Introduction

Docker container for MKVToolNix

Release Docker Image Size Docker Pulls Docker Stars Build Status Donate

This project implements a Docker container for MKVToolNix.

The GUI of the application is accessed through a modern web browser (no installation or configuration needed on the client side) or via any VNC client.


MKVToolNix logoMKVToolNix

MKVToolNix is a set of tools to create, alter and inspect Matroska files.


Table of Content

Quick Start

NOTE: The Docker command provided in this quick start is given as an example and parameters should be adjusted to your need.

Launch the MKVToolNix docker container with the following command:

docker run -d \
    --name=mkvtoolnix \
    -p 5800:5800 \
    -v /docker/appdata/mkvtoolnix:/config:rw \
    -v /home/user:/storage:rw \
    jlesage/mkvtoolnix

Where:

  • /docker/appdata/mkvtoolnix: This is where the application stores its configuration, states, log and any files needing persistency.
  • /home/user: This location contains files from your host that need to be accessible to the application.

Browse to http://your-host-ip:5800 to access the MKVToolNix GUI. Files from the host appear under the /storage folder in the container.

Usage

docker run [-d] \
    --name=mkvtoolnix \
    [-e <VARIABLE_NAME>=<VALUE>]... \
    [-v <HOST_DIR>:<CONTAINER_DIR>[:PERMISSIONS]]... \
    [-p <HOST_PORT>:<CONTAINER_PORT>]... \
    jlesage/mkvtoolnix
Parameter Description
-d Run the container in the background. If not set, the container runs in the foreground.
-e Pass an environment variable to the container. See the Environment Variables section for more details.
-v Set a volume mapping (allows to share a folder/file between the host and the container). See the Data Volumes section for more details.
-p Set a network port mapping (exposes an internal container port to the host). See the Ports section for more details.

Environment Variables

To customize some properties of the container, the following environment variables can be passed via the -e parameter (one for each variable). Value of this parameter has the format <VARIABLE_NAME>=<VALUE>.

Variable Description Default
USER_ID ID of the user the application runs as. See User/Group IDs to better understand when this should be set. 1000
GROUP_ID ID of the group the application runs as. See User/Group IDs to better understand when this should be set. 1000
SUP_GROUP_IDS Comma-separated list of supplementary group IDs of the application. (no value)
UMASK Mask that controls how permissions are set for newly created files and folders. The value of the mask is in octal notation. By default, the default umask value is 0022, meaning that newly created files and folders are readable by everyone, but only writable by the owner. See the online umask calculator at http://wintelguy.com/umask-calc.pl. 0022
LANG Set the locale, which defines the application's language, if supported. Format of the locale is language[_territory][.codeset], where language is an ISO 639 language code, territory is an ISO 3166 country code and codeset is a character set, like UTF-8. For example, Australian English using the UTF-8 encoding is en_AU.UTF-8. en_US.UTF-8
TZ TimeZone used by the container. Timezone can also be set by mapping /etc/localtime between the host and the container. Etc/UTC
KEEP_APP_RUNNING When set to 1, the application will be automatically restarted when it crashes or terminates. 0
APP_NICENESS Priority at which the application should run. A niceness value of -20 is the highest priority and 19 is the lowest priority. The default niceness value is 0. NOTE: A negative niceness (priority increase) requires additional permissions. In this case, the container should be run with the docker option --cap-add=SYS_NICE. 0
INSTALL_PACKAGES Space-separated list of packages to install during the startup of the container. List of available packages can be found at https://mirrors.alpinelinux.org. ATTENTION: Container functionality can be affected when installing a package that overrides existing container files (e.g. binaries). (no value)
PACKAGES_MIRROR Mirror of the repository to use when installing packages. List of mirrors is available at https://mirrors.alpinelinux.org. (no value)
CONTAINER_DEBUG Set to 1 to enable debug logging. 0
DISPLAY_WIDTH Width (in pixels) of the application's window. 1920
DISPLAY_HEIGHT Height (in pixels) of the application's window. 1080
DARK_MODE When set to 1, dark mode is enabled for the application. 0
SECURE_CONNECTION When set to 1, an encrypted connection is used to access the application's GUI (either via a web browser or VNC client). See the Security section for more details. 0
SECURE_CONNECTION_VNC_METHOD Method used to perform the secure VNC connection. Possible values are SSL or TLS. See the Security section for more details. SSL
SECURE_CONNECTION_CERTS_CHECK_INTERVAL Interval, in seconds, at which the system verifies if web or VNC certificates have changed. When a change is detected, the affected services are automatically restarted. A value of 0 disables the check. 60
WEB_LISTENING_PORT Port used by the web server to serve the UI of the application. This port is used internally by the container and it is usually not required to be changed. By default, a container is created with the default bridge network, meaning that, to be accessible, each internal container port must be mapped to an external port (using the -p or --publish argument). However, if the container is created with another network type, changing the port used by the container might be useful to prevent conflict with other services/containers. NOTE: a value of -1 disables listening, meaning that the application's UI won't be accessible over HTTP/HTTPs. 5800
VNC_LISTENING_PORT Port used by the VNC server to serve the UI of the application. This port is used internally by the container and it is usually not required to be changed. By default, a container is created with the default bridge network, meaning that, to be accessible, each internal container port must be mapped to an external port (using the -p or --publish argument). However, if the container is created with another network type, changing the port used by the container might be useful to prevent conflict with other services/containers. NOTE: a value of -1 disables listening, meaning that the application's UI won't be accessible over VNC. 5900
VNC_PASSWORD Password needed to connect to the application's GUI. See the VNC Password section for more details. (no value)
ENABLE_CJK_FONT When set to 1, open-source computer font WenQuanYi Zen Hei is installed. This font contains a large range of Chinese/Japanese/Korean characters. 0

Deployment Considerations

Many tools used to manage Docker containers extract environment variables defined by the Docker image and use them to create/deploy the container. For example, this is done by:

  • The Docker application on Synology NAS
  • The Container Station on QNAP NAS
  • Portainer
  • etc.

While this can be useful for the user to adjust the value of environment variables to fit its needs, it can also be confusing and dangerous to keep all of them.

A good practice is to set/keep only the variables that are needed for the container to behave as desired in a specific setup. If the value of variable is kept to its default value, it means that it can be removed. Keep in mind that all variables are optional, meaning that none of them is required for the container to start.

Removing environment variables that are not needed provides some advantages:

  • Prevents keeping variables that are no longer used by the container. Over time, with image updates, some variables might be removed.
  • Allows the Docker image to change/fix a default value. Again, with image updates, the default value of a variable might be changed to fix an issue, or to better support a new feature.
  • Prevents changes to a variable that might affect the correct function of the container. Some undocumented variables, like PATH or ENV, are required to be exposed, but are not meant to be changed by users. However, container management tools still show these variables to users.
  • There is a bug with the Container Station on QNAP and the Docker application on Synology, where an environment variable without value might not be allowed. This behavior is wrong: it's absolutely fine to have a variable without value. In fact, this container does have variables without value by default. Thus, removing unneeded variables is a good way to prevent deployment issue on these devices.

Data Volumes

The following table describes data volumes used by the container. The mappings are set via the -v parameter. Each mapping is specified with the following format: <HOST_DIR>:<CONTAINER_DIR>[:PERMISSIONS].

Container path Permissions Description
/config rw This is where the application stores its configuration, states, log and any files needing persistency.
/storage rw This location contains files from your host that need to be accessible to the application.

Ports

Here is the list of ports used by the container.

When using the default bridge network, ports can be mapped to the host via the -p parameter (one per port mapping). Each mapping is defined with the following format: <HOST_PORT>:<CONTAINER_PORT>. The port number used inside the container might not be changeable, but you are free to use any port on the host side.

See the Docker Container Networking documentation for more details.

Port Protocol Mapping to host Description
5800 TCP Optional Port to access the application's GUI via the web interface. Mapping to the host is optional if access through the web interface is not wanted. For a container not using the default bridge network, the port can be changed with the WEB_LISTENING_PORT environment variable.
5900 TCP Optional Port to access the application's GUI via the VNC protocol. Mapping to the host is optional if access through the VNC protocol is not wanted. For a container not using the default bridge network, the port can be changed with the VNC_LISTENING_PORT environment variable.

Changing Parameters of a Running Container

As can be seen, environment variables, volume and port mappings are all specified while creating the container.

The following steps describe the method used to add, remove or update parameter(s) of an existing container. The general idea is to destroy and re-create the container:

  1. Stop the container (if it is running):
docker stop mkvtoolnix
  1. Remove the container:
docker rm mkvtoolnix
  1. Create/start the container using the docker run command, by adjusting parameters as needed.

NOTE: Since all application's data is saved under the /config container folder, destroying and re-creating a container is not a problem: nothing is lost and the application comes back with the same state (as long as the mapping of the /config folder remains the same).

Docker Compose File

Here is an example of a docker-compose.yml file that can be used with Docker Compose.

Make sure to adjust according to your needs. Note that only mandatory network ports are part of the example.

version: '3'
services:
  mkvtoolnix:
    image: jlesage/mkvtoolnix
    ports:
      - "5800:5800"
    volumes:
      - "/docker/appdata/mkvtoolnix:/config:rw"
      - "/home/user:/storage:rw"

Docker Image Versioning

Each release of a Docker image is versioned. Prior to october 2022, the semantic versioning was used as the versioning scheme.

Since then, versioning scheme changed to calendar versioning. The format used is YY.MM.SEQUENCE, where:

  • YY is the zero-padded year (relative to year 2000).
  • MM is the zero-padded month.
  • SEQUENCE is the incremental release number within the month (first release is 1, second is 2, etc).

Docker Image Update

Because features are added, issues are fixed, or simply because a new version of the containerized application is integrated, the Docker image is regularly updated. Different methods can be used to update the Docker image.

The system used to run the container may have a built-in way to update containers. If so, this could be your primary way to update Docker images.

An other way is to have the image be automatically updated with Watchtower. Watchtower is a container-based solution for automating Docker image updates. This is a "set and forget" type of solution: once a new image is available, Watchtower will seamlessly perform the necessary steps to update the container.

Finally, the Docker image can be manually updated with these steps:

  1. Fetch the latest image:
docker pull jlesage/mkvtoolnix
  1. Stop the container:
docker stop mkvtoolnix
  1. Remove the container:
docker rm mkvtoolnix
  1. Create and start the container using the docker run command, with the the same parameters that were used when it was deployed initially.

Synology

For owners of a Synology NAS, the following steps can be used to update a container image.

  1. Open the Docker application.
  2. Click on Registry in the left pane.
  3. In the search bar, type the name of the container (jlesage/mkvtoolnix).
  4. Select the image, click Download and then choose the latest tag.
  5. Wait for the download to complete. A notification will appear once done.
  6. Click on Container in the left pane.
  7. Select your MKVToolNix container.
  8. Stop it by clicking Action->Stop.
  9. Clear the container by clicking Action->Reset (or Action->Clear if you don't have the latest Docker application). This removes the container while keeping its configuration.
  10. Start the container again by clicking Action->Start. NOTE: The container may temporarily disappear from the list while it is re-created.

unRAID

For unRAID, a container image can be updated by following these steps:

  1. Select the Docker tab.
  2. Click the Check for Updates button at the bottom of the page.
  3. Click the update ready link of the container to be updated.

User/Group IDs

When using data volumes (-v flags), permissions issues can occur between the host and the container. For example, the user within the container may not exist on the host. This could prevent the host from properly accessing files and folders on the shared volume.

To avoid any problem, you can specify the user the application should run as.

This is done by passing the user ID and group ID to the container via the USER_ID and GROUP_ID environment variables.

To find the right IDs to use, issue the following command on the host, with the user owning the data volume on the host:

id <username>

Which gives an output like this one:

uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),4(adm),24(cdrom),27(sudo),46(plugdev),113(lpadmin)

The value of uid (user ID) and gid (group ID) are the ones that you should be given the container.

Accessing the GUI

Assuming that container's ports are mapped to the same host's ports, the graphical interface of the application can be accessed via:

  • A web browser:
http://<HOST IP ADDR>:5800
  • Any VNC client:
<HOST IP ADDR>:5900

Security

By default, access to the application's GUI is done over an unencrypted connection (HTTP or VNC).

Secure connection can be enabled via the SECURE_CONNECTION environment variable. See the Environment Variables section for more details on how to set an environment variable.

When enabled, application's GUI is performed over an HTTPs connection when accessed with a browser. All HTTP accesses are automatically redirected to HTTPs.

When using a VNC client, the VNC connection is performed over SSL. Note that few VNC clients support this method. SSVNC is one of them.

SSVNC

SSVNC is a VNC viewer that adds encryption security to VNC connections.

While the Linux version of SSVNC works well, the Windows version has some issues. At the time of writing, the latest version 1.0.30 is not functional, as a connection fails with the following error:

ReadExact: Socket error while reading

However, for your convenience, an unofficial and working version is provided here:

https://github.com/jlesage/docker-baseimage-gui/raw/master/tools/ssvnc_windows_only-1.0.30-r1.zip

The only difference with the official package is that the bundled version of stunnel has been upgraded to version 5.49, which fixes the connection problems.

Certificates

Here are the certificate files needed by the container. By default, when they are missing, self-signed certificates are generated and used. All files have PEM encoded, x509 certificates.

Container Path Purpose Content
/config/certs/vnc-server.pem VNC connection encryption. VNC server's private key and certificate, bundled with any root and intermediate certificates.
/config/certs/web-privkey.pem HTTPs connection encryption. Web server's private key.
/config/certs/web-fullchain.pem HTTPs connection encryption. Web server's certificate, bundled with any root and intermediate certificates.

NOTE: To prevent any certificate validity warnings/errors from the browser or VNC client, make sure to supply your own valid certificates.

NOTE: Certificate files are monitored and relevant daemons are automatically restarted when changes are detected.

VNC Password

To restrict access to your application, a password can be specified. This can be done via two methods:

  • By using the VNC_PASSWORD environment variable.
  • By creating a .vncpass_clear file at the root of the /config volume. This file should contain the password in clear-text. During the container startup, content of the file is obfuscated and moved to .vncpass.

The level of security provided by the VNC password depends on two things:

  • The type of communication channel (encrypted/unencrypted).
  • How secure the access to the host is.

When using a VNC password, it is highly desirable to enable the secure connection to prevent sending the password in clear over an unencrypted channel.

ATTENTION: Password is limited to 8 characters. This limitation comes from the Remote Framebuffer Protocol RFC (see section 7.2.2). Any characters beyond the limit are ignored.

Reverse Proxy

The following sections contain NGINX configurations that need to be added in order to reverse proxy to this container.

A reverse proxy server can route HTTP requests based on the hostname or the URL path.

Routing Based on Hostname

In this scenario, each hostname is routed to a different application/container.

For example, let's say the reverse proxy server is running on the same machine as this container. The server would proxy all HTTP requests sent to mkvtoolnix.domain.tld to the container at 127.0.0.1:5800.

Here are the relevant configuration elements that would be added to the NGINX configuration:

map $http_upgrade $connection_upgrade {
	default upgrade;
	''      close;
}

upstream docker-mkvtoolnix {
	# If the reverse proxy server is not running on the same machine as the
	# Docker container, use the IP of the Docker host here.
	# Make sure to adjust the port according to how port 5800 of the
	# container has been mapped on the host.
	server 127.0.0.1:5800;
}

server {
	[...]

	server_name mkvtoolnix.domain.tld;

	location / {
	        proxy_pass http://docker-mkvtoolnix;
	}

	location /websockify {
		proxy_pass http://docker-mkvtoolnix;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection $connection_upgrade;
		proxy_read_timeout 86400;
	}
}

Routing Based on URL Path

In this scenario, the hostname is the same, but different URL paths are used to route to different applications/containers.

For example, let's say the reverse proxy server is running on the same machine as this container. The server would proxy all HTTP requests for server.domain.tld/mkvtoolnix to the container at 127.0.0.1:5800.

Here are the relevant configuration elements that would be added to the NGINX configuration:

map $http_upgrade $connection_upgrade {
	default upgrade;
	''      close;
}

upstream docker-mkvtoolnix {
	# If the reverse proxy server is not running on the same machine as the
	# Docker container, use the IP of the Docker host here.
	# Make sure to adjust the port according to how port 5800 of the
	# container has been mapped on the host.
	server 127.0.0.1:5800;
}

server {
	[...]

	location = /mkvtoolnix {return 301 $scheme://$http_host/mkvtoolnix/;}
	location /mkvtoolnix/ {
		proxy_pass http://docker-mkvtoolnix/;
		location /mkvtoolnix/websockify {
			proxy_pass http://docker-mkvtoolnix/websockify/;
			proxy_http_version 1.1;
			proxy_set_header Upgrade $http_upgrade;
			proxy_set_header Connection $connection_upgrade;
			proxy_read_timeout 86400;
		}
	}
}

Shell Access

To get shell access to the running container, execute the following command:

docker exec -ti CONTAINER sh

Where CONTAINER is the ID or the name of the container used during its creation.

Support or Contact

Having troubles with the container or have questions? Please create a new issue.

For other great Dockerized applications, see https://jlesage.github.io/docker-apps.

docker-mkvtoolnix's People

Contributors

c4wiz avatar jlesage avatar sephrat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-mkvtoolnix's Issues

Edit Audio Language from Unknow to English without Multiplexing

Hi @jlesage thank you so much for the images. This works great and just need little help with tags.

I have few files with Unknown Audio Language and I want to change it from und to English. I can do that but then it start the full file conversion. Is it possible to just update the metadata from und to English without any coversion?

image

Bascically I have files in the cloud so coverting them is not very ideal so thats why and my system is also not very upto the task :)

Thank you

ENABLE_CJK_FONT=1 causes docker to fail to start

I recently reinstalled the system, and I want to enable Chinese support. After enabling the ENABLE_CJK_FONT=1 parameter, docker starts reporting an error. If this parameter is turned off, it is completely normal. Please fix it.
1
2

Change port from Environment Variables

As other tools from jlesage, it should be great to change the port from the Environment Variables.
I am using Docker inside of Synology DSM.
I am using more applications from jlesage and I can't use them at the same time due to having the same port 5800 (like jdownloader).

Command line

Hello,

Thank you very much for this great image of MKVtoolnix on Docker. It works very well.
Is it possible to use MKVtoolnix on the command line with docker?

Cordially.

SchO²n

Nginx config?

The docker image works great if I use http://ipaddress:5800

But, behind a Nginx proxy i.e https://mkvtoolnix.mywebsite.com, only the top bar with the MKVToolnix logo loads up.
screen

Docker command used:
docker run -d --rm --name=mkvtoolnix -p 5800:5800 -p 5900:5900 -v /home/user/docker_data/mkvtoolnix:/config:rw -v /home/user/_downloads:/storage:rw jlesage/mkvtoolnix

My nginx config:

server {
 listen 80;
 return 301 https://$host$request_uri;
 server_tokens off;
}

server {
 listen 443 ssl http2;
 server_tokens off;
 server_name mkvtoolnix.mywebsite.com;
 ssl_certificate /etc/letsencrypt/live/mywebsite.com/fullchain.pem;
 ssl_certificate_key /etc/letsencrypt/live/mywebsite.com/privkey.pem;
 ssl_session_cache shared:SSL:50m;
 ssl_session_timeout 30m;
 ssl_protocols TLSv1.2;
 ssl_prefer_server_ciphers on;
 ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4;
 ssl_ecdh_curve secp384r1;
 ssl_session_tickets off;
 ssl_stapling on;
 ssl_stapling_verify on;
 resolver 8.8.8.8 8.8.4.4 valid=300s;
 resolver_timeout 5s;
 ssl_dhparam /etc/nginx/ssl/dhparam.pem;
 add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
 add_header X-Frame-Options DENY;
 add_header X-Content-Type-Options nosniff;

 location / {
        proxy_pass http://127.0.0.1:5800;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 }
}

I'm guessing there are more parameters to insert in the nginx config in order to load the QT5 gui.
Any ideas on how to make it work?

Adding Multiple Files through GUI

Hi,

With the desktop app, there's an option to drag and drop multiples files and have MKVToolNix create a tab for each file. Do you know if this is possible through the Docker App?

header edit window size

hi there, first of all, im really happy with your docker, it made me possible to completely ditch my windows server and go dockers only and completely headless and still be able to keep using this great tool.

now my question :) is there a way to make this part (header edit section) wider?

image

Server disconnected (code: 1006)

I got the container up fine, and MKVToolnix is running on the host machine, but I am getting the above error and my screen is basically blank when I access the web gui.

Any idea why this is happening?

Image failing to start on Synology DSM 6 since 23.01.1 update

Hello,

With latest update (v23.01.1) I cannot get the image to start on my Synology DSM 6 system (DSM 6.2.4-25556 Update 6 exactly).
I haven't changed anything in my config and v22.11.1 does work flawlessly.
I see in the log (attached below) 2 errors that are not present when executing v22.11.1.

[logrotate ] warning: state file /config/xdg/state/logrotate/logrotate.status is world-readable and thus can be locked from other unprivileged users. Skipping lock acquisition...

I manually fixed the permission on the status file which seemed to get rid of the error, not sure if it will hold forever though

[app ] terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error' [app ] what(): filesystem error: status: Permission denied [mkvmerge]

That seems to be the one that breaks everything but I don't know how to fix it

Regards.

mkvtoolnix.log

MKVToolNix Docker @ OMV Docker

Hello,

i already downloaded the jlesage/docker-mkvtoolnix repo via my OMV acp.

When i run the image (docker) I am able to start mkvtoolnix with my ip:5800. It works. I can use MKVToolNix like on Windows. But I am not able to choose or see my Files from the HDD.

Can you tell me what's wrong with it? I have uploaded my settings:

Unbenannt

Enable dark mode

Mkvtoolnix supports dark mode since 39.0.0.
Is there any way to enable the dark mode in docker?
Thanks

No GUI

Installed the container (-latest) on a Qnap NAS to day, install run OK but I don't get the "open Link" sign, after I start the container, to get the GUI in the browser.

I have your jdownloader-2 and filezilla container installed and with both of them I have no problems to open the GUI's.

Any idea ?

[Update] v65

Could you update the App to latest version?
Thanks!

REQUEST: Adding more than one path for "storage" volume

Would be nice to have a possibility to add more than one "storage" volumes to the container. I have a two "movies" folders placed on different hdds. Right now I need to copy the file which I want to edit to the "storage" volume to get access to it and after work is over I copying the file it to the "movies" destination on hdd a) or b).

add unicode support?

could you please add unicode support for both track names and subtitles?

or is there anyway I could tweak it by myself? Thanks!

Image freezes when a job is started

For some reason for the last couple of versions, when I start a job the image on the browser freezes I'm not able to see the progress bar move or click anywhere, then when the job finishes, everything comes back to normal.

runnig version v1.63.0 with chrome 102.0.5005.115

Thanks!

Where can I find my media files?

This is on a Synology...

I have the $HOME and /config mapped. When I navigate to /storage, it's empty. I can see files/folders if I go to Computer, then to the drive labeled "/".

screen shot 2019-01-08 at 12 42 15 am

screen shot 2019-01-08 at 12 46 29 am

Here are some additional screenshots.

screen shot 2019-01-08 at 1 13 58 am

It doesn't show $HOME:/storage here, despite it being in the command I used to run the container.

screen shot 2019-01-08 at 12 42 49 am

Command used:

docker run -d \
    --name=mkvtoolnix \
    -e USER_ID=1026 \
    -e GROUP_ID=100 \
    -e TZ=Canada/Eastern \
    -p 5800:5800 \
    -v /volume1/docker/mkvtoolnix:/config:rw \
    -v $HOME:/storage:rw \
    jlesage/mkvtoolnix

I've tried the UID/GID for both my main user account and the admin user account. Didn't make a difference.

EDIT:
I think I solved my problem. I mapped volume1/Media:/storage and now I can see my movies.

docker run -d \
    --name=mkvtoolnix \
    -e USER_ID=1026 \
    -e GROUP_ID=100 \
    -e TZ=Canada/Eastern \
    -p 5800:5800 \
    -v /volume1/docker/mkvtoolnix:/config:rw \
    -v /volume1/Media:/storage:rw \
    jlesage/mkvtoolnix

Request: Add automation like the jlesage/docker-Handbreak image

Is it possible to replicate some of the automation functionality that was added to jlesage/docker-Handbreak image?

Specifically the following:

  • A watch folder option for MKVToolNix, so files in sub-folders are automatically added into the Job Queue;

  • For the above the first file in any sub-folder within the Watch Folder is added, the remaining files in the sub-folder are appended. This can be determined on alphanumeric sorting. So 'Scene 1.mp4' is added, 'Scene 2.mp4' is appended, 'Scene 3.mp4' is appended, 'Scene 4.mp4' is appended etc;

  • The output file from MKVToolNix follows a naming convention based on the sub-folder that contains the files to be added to MKVToolNix. So if the files that are detected in a sub-folder called 'A Movie 253', the output file from MKVToolNix will be called 'A Movie 253.mkv'

  • The function for monitoring the Watch Folder can be set to wait for a predetermined time after the content within the sub-folder has last changed. This will prevent the MKVToolNix application from creating a new Job before any sub-folder has all the files.

Could not open file for writing on Synology

When I was trying to mux a mp4 file to mkv, I got the following error:
The file 'xxx' could not be opened for writing: open file error.
批注 2020-09-07 180713

The multiplex setting was like this, basically default
批注 2020-09-07 180654

I've checked the configuration in docker, the writing permisson has been given.
批注 2020-09-07 180737

And there's also file created in config folder, so it seems the application does have the writing permission.
批注 2020-09-07 180620

I tried the same file on windows with the same version of mkvtoolnix, there was no problem.

The DSM version is 6.2.3-25426 update 2
The Docker version is 18.09.0-0513

Crash when importing chapter xml file

Nevermind,

Tried again using the desktop app and a popup came up saying chapter files are meant to be imported via the Chapter section in the Output tab.
I was importing it via the main input tab which resulted in the crash. It's just that the docker version doesn't warn you at all and just crashes instead.
Importing the chapter file via the output tab works all good in the container.

Sorry for wasting your time reading this.

Application won't start

I just installed mkvtoolnix through Unraid. I am on latest release at time of writing and leatest Unraid release.
I left everything default when setting up the container except for storage path. Attached are the docker logs
mkvtoolnix.logs.txt

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='MKVToolNix' --net='host' -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'USER_ID'='99' -e 'GROUP_ID'='100' -e 'UMASK'='000' -e 'APP_NICENESS'='' -e 'DISPLAY_WIDTH'='1280' -e 'DISPLAY_HEIGHT'='768' -e 'SECURE_CONNECTION'='0' -e 'X11VNC_EXTRA_OPTS'='' -e 'TCP_PORT_7805'='7805' -e 'TCP_PORT_7905'='7905' -v '/mnt/user/Media/':'/storage':'rw' -v '/mnt/user/appdata/MKVToolNix':'/config':'rw' 'jlesage/mkvtoolnix'
ad68ac01525952f48ed5f9a2aa76e7dd520d58e8b78273a1d87dc4cde51e2be6

Error with WebSocket in Safari

I have a reverse proxy configured in Nginx for access to docker container. The configuration is the one provided in documentation and it works fine on Firefox or Chrome. In Safari the WebSocket connection fails.

This is the console output:

WebSocket connection to 'wss://mkvtoolnix.santiago-maturana.es/websockify' failed: Unexpected response code: 401
WebSocket on-error event
WebSocket on-close event
Msg: Server disconnected (code: 1006)

Using mkvextract over port

Hi, is it possible to use mkvextract over the http somehow?

I used docker exec mkvtoolnix mkvextract tracks ..., it works, but requires having docker on same php host, when it shouldn't matter if its running docker or not.

Arm64

any plans to support arm64? I've been waiting for it for a long time but haven't supported it yet. thank you for your hard work

how understand which id use...

For now i'm using 0 for ID working perfectly as root.
How i can understand exactly which id corrisponding to my personalized admin account?
thanks from italy!

CPU usage

Hi, thanks for the great docker! I am using this on my unraid server, and it does not appear to use much processing power. How do I get to use all of CPU power to process items faster? Sorry if this is dumb question, I appreciate any help!

ROFLdld

Port changing

Is there a possibility to change the Port 5800 to another one?
I'm using also the docker handbrake and it uses also port 5800.

I have something wrong with my mkvtoolnix in docker

I run the docker mkvtoolnix in my Synology,normally I turn it down,when I turn it on in the morning,it shows something wrong that I cannot recognize like below。
Snipaste_2022-11-01_08-12-11
Will you help me with this error and how can I set it right?
My setting is like below
1
2

support with Jmkvpropedit docker

Hi, im not even sure if this is the correct place for support, but im doing my head in.
I have the42seros/jmkvpropedit docker installed on my unraid server.
his listing links to this hub for support so please tell me if i need to get help elsewhere.
All i wanted is an easy way to edit a batch of files at once to change their default audio/ subtitle streams, and Jmkvpropedit on my windows machine works like magic, but it doesn't like modifying files over the network from my unraid server where they live, so id have to copy the files locally, make the changed and send them back to the server.
so i discovered "the42seros/jmkvpropedit" as the only docker of this little java applett i could find.

I managed to get this docker working on my Unraid server and i have it loaded with a folder accessible on the array, I can see the video files, import them select what changes i want but when i hit "Process files" nothing happens, no error, no modifying of the files.
i can click generate command line and it displays what it would use, and if i go via terminal for docker and enter that line the video files are changed.
if i have no video loaded and select process files i get the "file list is empty" (as expected)
i have even tried manually selecting the mkvedit file location and still nothing..
im not sure what else to try.

again if this isn't the right place i am very sorry, but i cant even post on the official Unraid forums as its not a listed docker..
any help would be appreciated

No files present in /storage

Running on Synology, I chose to map shared folder /videos to /storage. When I do this, the storage folder is empty.

Next I remapped the shared folder /docker to /storage, and video files are visible, so I assume this is a permissions issue. but I can't seem to recognize the problem.

I then tried mapping another shared folder I had created /downloads, but mapping that to /storage showed nothing, not even subfolders.

What permission am I missing here? The only shared folder that seems to work is /docker, but I don't want to use that for /storage. Thank you!

Container doesn't start correctly since v22.10.1: could not load 'app.dep': command failed (126)

Hello, since v22.10.1 the container exits immediately after starting (tested up to 23.01.1)
The last version that starts successfully is 1.66.0.
The issue may be related to the following in the log:

[supervisor ] could not load 'app.dep': command failed (126)

Can you please help?

Environment:

Docker version 20.10.17, build 100c701

command: docker run jlesage/mkvtoolnix

For normal usage my command line has many parameters, but the simple command above has the same outcome and log.

Complete log/output:

[init ] container is starting...
[cont-env ] loading container environment variables...
[cont-env ] APP_NAME: loading...
[cont-env ] APP_VERSION: loading...
[cont-env ] DISPLAY: executing...
[cont-env ] DISPLAY: terminated successfully.
[cont-env ] DISPLAY: loading...
[cont-env ] DOCKER_IMAGE_PLATFORM: loading...
[cont-env ] DOCKER_IMAGE_VERSION: loading...
[cont-env ] GTK_THEME: executing...
[cont-env ] GTK_THEME: terminated successfully.
[cont-env ] GTK_THEME: loading...
[cont-env ] HOME: loading...
[cont-env ] QT_STYLE_OVERRIDE: executing...
[cont-env ] QT_STYLE_OVERRIDE: terminated successfully.
[cont-env ] QT_STYLE_OVERRIDE: loading...
[cont-env ] TAKE_CONFIG_OWNERSHIP: loading...
[cont-env ] XDG_CACHE_HOME: loading...
[cont-env ] XDG_CONFIG_HOME: loading...
[cont-env ] XDG_DATA_HOME: loading...
[cont-env ] XDG_RUNTIME_DIR: loading...
[cont-env ] XDG_STATE_HOME: loading...
[cont-env ] container environment variables initialized.
[cont-secrets] loading container secrets...
[cont-secrets] container secrets loaded.
[cont-init ] executing container initialization scripts...
[cont-init ] 10-certs.sh: executing...
[cont-init ] 10-certs.sh: terminated successfully.
[cont-init ] 10-check-app-niceness.sh: executing...
[cont-init ] 10-check-app-niceness.sh: terminated successfully.
[cont-init ] 10-cjk-font.sh: executing...
[cont-init ] 10-cjk-font.sh: terminated successfully.
[cont-init ] 10-clean-logmonitor-states.sh: executing...
[cont-init ] 10-clean-logmonitor-states.sh: terminated successfully.
[cont-init ] 10-clean-tmp-dir.sh: executing...
[cont-init ] 10-clean-tmp-dir.sh: terminated successfully.
[cont-init ] 10-fontconfig-cache-dir.sh: executing...
[cont-init ] 10-fontconfig-cache-dir.sh: terminated successfully.
[cont-init ] 10-init-users.sh: executing...
[cont-init ] 10-init-users.sh: terminated successfully.
[cont-init ] 10-nginx.sh: executing...
[cont-init ] 10-nginx.sh: terminated successfully.
[cont-init ] 10-openbox.sh: executing...
[cont-init ] 10-openbox.sh: terminated successfully.
[cont-init ] 10-set-tmp-dir-perms.sh: executing...
[cont-init ] 10-set-tmp-dir-perms.sh: terminated successfully.
[cont-init ] 10-vnc-password.sh: executing...
[cont-init ] 10-vnc-password.sh: terminated successfully.
[cont-init ] 10-web-data.sh: executing...
[cont-init ] 10-web-data.sh: terminated successfully.
[cont-init ] 10-x11-unix.sh: executing...
[cont-init ] 10-x11-unix.sh: terminated successfully.
[cont-init ] 10-xdg-runtime-dir.sh: executing...
[cont-init ] 10-xdg-runtime-dir.sh: terminated successfully.
[cont-init ] 15-install-pkgs.sh: executing...
[cont-init ] 15-install-pkgs.sh: terminated successfully.
[cont-init ] 55-mkvtoolnix.sh: executing...
[cont-init ] 55-mkvtoolnix.sh: generating machine-id...
[cont-init ] 55-mkvtoolnix.sh: '/defaults/mkvtoolnix-gui.ini' -> '/config/xdg/config/bunkus.org/mkvtoolnix-gui/mkvtoolnix-gui.ini'
[cont-init ] 55-mkvtoolnix.sh: '/defaults/QtProject.conf' -> '/config/xdg/config/QtProject.conf'
[cont-init ] 55-mkvtoolnix.sh: terminated successfully.
[cont-init ] 85-take-config-ownership.sh: executing...
[cont-init ] 85-take-config-ownership.sh: terminated successfully.
[cont-init ] 89-info.sh: executing...
╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
│ │
│ Application: MVKToolNix │
│ Application Version: 73.0.0 │
│ Docker Image Version: 23.01.1 │
│ Docker Image Platform: linux/amd64 │
│ │
╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
[cont-init ] 89-info.sh: terminated successfully.
[cont-init ] all container initialization scripts executed.
[init ] giving control to process supervisor.
[supervisor ] loading services...
[supervisor ] loading service 'default'...
[supervisor ] could not load 'app.dep': command failed (126)
[finish ] executing container finish scripts...
[finish ] all container finish scripts executed.

Switch language to German

Hi, thank you for the nice docker.

I tried to install the mkvtoolnix with de_DE.UTF-8 but it is still english.

when I try to set it in Mkvtoolnix to german it is still in english.

how can I do that?

non-root image

I would love to see a non-root image released. Check out the k8s-at-home repo. They are also moving away from S6 overlay as well which I've also noticed more container devs are moving away from.

How to change language to Chinese

I changed the language to Chinese in Synology NAS,but it can't display normally.It may be missing the correct font.How can I solve it,thank you very much.

Chinese characters in clipboard will garbled

  • Enter the text in the clipboard,then Submit
  • When Paste, Chinese characters become garbled, other letters and numbers are right
    I uploaded a picture description, please see the picture,thanks
    Can this be fixed? thank you

wrong-pic

How do I expand / stretch windows?

I'm using unRAID to host the MKVTolNix docker image.
When I go into the Header Editor, the "Type" window on the left is very skinny. I am unable to stretch it to increase the visibility - the mouse simply does not grab anything.
I've increased the resolution of "Display Width" and "Display Height" in the docker settings, and while it did stretch the entire window, it does not let me stretch the panel for "Type".
Is there something I'm missing?
Issue screenshot

docker-mkvtoolnix OMV in Raspberry Pi

Good afternoon everyone,
I have a raspberry pi with omv and docker, I'm trying to install this image but I can't, could you help me with the steps?

Greetings

font problem

I have set enable cjk font to 1, but after reboot the container, the language is still shown as 口口口口, how should i fix this,thanks.( run on synology ds920 ,dsm 6.2.4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.