HUB
Sign inSign up

binhex/arch-trimarr

By binhex

•Updated about 15 hours ago

Image
0

5.6K

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 STARTUP_SCRIPTS_MODE=<wait|parallel> \
    -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 ENABLE_STARTUP_SCRIPTS=no \
    -e STARTUP_SCRIPTS_MODE=wait \
    -e UMASK=000 \
    -e PUID=0 \
    -e PGID=0 \
    ghcr.io/binhex/arch-trimarr

⁠Notes

ENABLE_STARTUP_SCRIPTS when set to yes (default no) will allow a user to install additional packages from the official Arch Repository or the Arch User Repository (AUR) via scripts located in the folder /config/trimarr/scripts/.

STARTUP_SCRIPTS_MODE controls how those scripts are executed, set to wait (default) to run each script in turn and wait for it to complete before the next script runs, or parallel to run all scripts at the same time.

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:818291f59…

Size

318.4 MB

Last updated

about 15 hours ago

docker pull binhex/arch-trimarr