Skip to main content

Strip unused languages from mkv files en mass

Project description

Nudebomb

The Nudebomb recursively strips matroska media files of unwanted audio and subtitle tracks.

News

You may find user focused nudebomb changes in the NEWS file.

Requirements

  • MKVToolNix
  • Python3

Install

pip install

Usage

Posix

nudebomb -rl eng,fre /mnt/movies

Windows

nudebomb -b C:\\Program/ Files\MKVToolNix\mkvmerge.exe -rl eng,jap \\nas\movies

Config

You may configure Nudebomb options via the command, a yaml config file and environment variables.

Environment variable format

Prefix environment variables with NUDEBOMB_NUDEBOMB__ and enumerate lists elements:

NUDEBOMB_NUDEBOMB__RECURSE=True
NUDEBOMB_NUDEBOMB__LANGUAGES__0=und
NUDEBOMB_NUDEBOMB__LANGUAGES__1=eng

Lang Files

While you may have a primary language, you probably want videos from other countries to keep their native language as well. Lang files let you do this.

Lang files are persistent files on disk that nudebomb parses to keep to all languages in them in the mkvs in the current directory and all mkvs in sub directories.

Valid lang file names are: 'lang', 'langs', '.lang', or '.langs' They include comma separated list of languages to keep like the -l option.

e.g. You may have an entire collecttion of different TV shows with a root lang file containing the eng language. Under that directory you may have a specific TV show directory with lang file containing jpn. All mkvs in season directories under that would then keep both the eng and jpn languages, while other TV shows would keep only eng languages.

For each mkv file, nudebomb looks up the directory tree for each parent lang file and uses the union of all languages found to determine what languages to keep.

APIs

Langfiles would be obsolete if nudebomb could deterimining native languages for mkv files by polling and caching results from major online media databases. It's the right thing to do, but I don't care to implement it. Patches or forks welcome.

Inspiration

Nudebomb is a radical fork of mkvstrip. It adds recursion, lang files, timestamps and more configuration to mkvstrip and fixes some minor bugs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nudebomb-0.3.5.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nudebomb-0.3.5-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file nudebomb-0.3.5.tar.gz.

File metadata

  • Download URL: nudebomb-0.3.5.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/5.15.0-1050-aws

File hashes

Hashes for nudebomb-0.3.5.tar.gz
Algorithm Hash digest
SHA256 24f34802795c3861b8325065b81f516d7a42bc9980da08a6d52a5a907093a8bc
MD5 2496e4c02c425dfb4f853bb9a004bd2a
BLAKE2b-256 b250dbf3318a8d85aa57e702bea05c0ea7bdb80a261dc87bc39e5482f8e4dfa4

See more details on using hashes here.

File details

Details for the file nudebomb-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: nudebomb-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/5.15.0-1050-aws

File hashes

Hashes for nudebomb-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ceb146998db1d0ac4619a58114c7b91d63a6e06559f73a91715e5a20f9b9ae37
MD5 535f3506aa1a1735f1b2255d7e020dff
BLAKE2b-256 c3b661ca0a1f28d45529b6210e0a18de55831361fbc047e074cb61896cf4537d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page