# MKVPriority

MKVPriority is a media tool that assigns configurable priority scores to audio and subtitle tracks in MKV files, similar to custom formats in Radarr/Sonarr.

Canonical page: https://ourlocalhost.com/app/8206/mkvpriority

## Description

MKVPriority is a media tool that assigns configurable priority scores to audio and subtitle tracks in MKV files, similar to custom formats in Radarr/Sonarr. It automatically sets default and forced track flags for the highest-priority tracks (for example 5.1 surround audio and ASS subtitles) while deprioritising lower ones, using mkvpropedit to modify flags in place with no remuxing. It suits homelab users who want media players to consistently pick their preferred audio and subtitle tracks without re-encoding their library.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 15 days ago)
- Popular: 38 (76 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 100 (no serious findings, CI, tests)

## Links

- GitHub: https://github.com/kennethsible/mkvpriority

## Common questions

### Does MKVPriority re-encode or remux my MKV files?

No. It modifies track flags in place using mkvpropedit from MKVToolnix, so there is no remuxing or re-encoding of your media.

### How do I use a custom configuration in Docker?

Create a custom TOML config and bind mount it, for example mounting a config folder and passing --config /config/custom.toml. You should pre-create the config folder on the host first, otherwise Docker creates it as root and Python raises a PermissionError.

### How can I avoid reprocessing files that were already handled?

Create an archive.db file and bind mount it, then run with --archive /config/archive.db. The archive database keeps track of already-processed MKV files.

### Can MKVPriority run on a schedule instead of manually?

Yes, it can periodically scan your media library using a cron schedule and process new MKV files tracked via the database.

### Can it process files automatically when Radarr or Sonarr imports them?

Yes, it integrates with Radarr and Sonarr through a custom script that processes new MKV files as they are imported.

### What if I want extra processing after tracks are scored?

It supports extension modules for optional, user-defined post-processors to handle specialized workflows.

## Alternatives

- MKVToolnix: MKVToolNix is a Docker container that provides a web-based graphical interface to the MKVToolNix suite for creating, altering, and inspecti…

---
Source: Our Local Host (https://ourlocalhost.com/app/8206/mkvpriority), the self-hosted and open-source app directory.
