A docker container to convert your mkv
files to an mp4
format which Plex is
capable of direct streaming.
It searches through a specified list of directories for all files ending with
*.mkv
and then uses the avconv
tool to convert these files to the mp4
format.
You should be able to run the docker container using something along the lines of:
docker run -d \
-e "MEDIA_TVSHOWS=/tv" \
-e "MEDIA_MOVIES=/movies" \
-e "PLEX_URL=http://127.0.0.1:32400" \
-e "PLEX_TOKEN=sekr3t" \
-v "/opt/data/tv:/tv" \
-v "/opt/data/movies:/movies" \
quay.io/marvin/media-converter
Few things to keep in mind here:
-
MEDIA_xxx
environment variables: These variables should point to the mounted media directories. Supply as many you need. The entrypoint.sh script will handle iterating over each of those directories and converting thosemkv
files as needed. -
PLEX_URL
: If you supply a plex URL, the entrypoint.sh script will take care of triggering a media refresh after each cycle. Note that you will also need aPLEX_TOKEN
variable here (see Finding your account token).