Sign inSign up

binhex/arch-trimarr

By binhex

•Updated 2 months ago

Image
0

4.9K

binhex/arch-trimarr repository overview

⁠Application

trimarr⁠

⁠Description

trimarr removes (trims) unwanted audio and subtitle tracks from Matroska container format video files (.mkv) using mkvmerge. It scans directories recursively, keeps only the language tracks you specify, and tracks processed files in SQLite to avoid redundant work. Supports commentary track stripping, multi-language filtering, automated mkvmerge binary management, and one-shot or cron-scheduled operation.

⁠Build notes

Latest GitHub release.

⁠Usage

docker run -d \
    --name=<container name> \
    -v <path for config files>:/config \
    -v <path for media files>:/media \
    -v <path for data files>:/data \
    -v /etc/localtime:/etc/localtime:ro \
    -e TRIMARR_LANGUAGE=<iso-639-2 code(s)> \
    -e TRIMARR_MEDIA_PATH=<media directory(ies)> \
    -e TRIMARR_LOG_LEVEL=INFO \
    -e TRIMARR_DATABASE_PATH=/config/trimarr/trimarr.db \
    -e TRIMARR_LOG_PATH=/config/trimarr/trimarr.log \
    -e TRIMARR_STRIP_SUBTITLE_REGEX=<regex> \
    -e TRIMARR_KEEP_NATIVE_AUDIO=yes|no \
    -e TRIMARR_TMDB_API_KEY=<tmdb-api-key> \
    -e TRIMARR_TVDB_API_KEY=<tvdb-api-key> \
    -e TRIMARR_KEEP_UNDEFINED_AUDIO=yes|no \
    -e ENABLE_STARTUP_SCRIPTS=yes|no \
    -e HEALTHCHECK_COMMAND=<command> \
    -e HEALTHCHECK_ACTION=<action> \
    -e HEALTHCHECK_HOSTNAME=<hostname> \
    -e UMASK=<umask for created files> \
    -e PUID=<uid for user> \
    -e PGID=<gid for user> \
    ghcr.io/binhex/arch-trimarr

Please replace all user variables in the above command defined by <> with the correct values.

⁠Example

docker run -d \
    --name=trimarr \
    -v /apps/docker/trimarr:/config \
    -v /media:/media \
    -v /etc/localtime:/etc/localtime:ro \
    -e TRIMARR_LANGUAGE=eng \
    -e TRIMARR_MEDIA_PATH=/media/Movies|/media/TV \
    -e TRIMARR_LOG_LEVEL=INFO \
    -e TRIMARR_DATABASE_PATH=/config/trimarr/trimarr.db \
    -e TRIMARR_LOG_PATH=/config/trimarr/trimarr.log \
    -e TRIMARR_DRY_RUN=yes \
    -e TRIMARR_SCHEDULE="0 2 * * *" \
    -e TRIMARR_RUN_ON_START=yes \
    -e TRIMARR_STRIP_SUBTITLE_REGEX="(?i)songs.*signs" \
    -e TRIMARR_KEEP_NATIVE_AUDIO=yes \
    -e TRIMARR_TMDB_API_KEY=<tmdb-api-key> \
    -e TRIMARR_TVDB_API_KEY=<tvdb-api-key> \
    -e TRIMARR_KEEP_UNDEFINED_AUDIO=yes \
    -e UMASK=000 \
    -e PUID=0 \
    -e PGID=0 \
    ghcr.io/binhex/arch-trimarr

⁠Notes

User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-

id <username>

See the trimarr README⁠ for full configuration documentation and environment variable reference.


If you appreciate my work, then please consider buying me a beer :D

PayPal donation

Documentation⁠ | Support forum⁠

Tag summary

Content type

Image

Digest

sha256:f503a4b59…

Size

254.9 MB

Last updated

2 months ago

docker pull binhex/arch-trimarr