Giter VIP home page Giter VIP logo

stripaudio's Introduction

h1. Strip Audio

This makes mkvtools available for stripping audio and subtitles from mkvs.

h3. To Build

VERSION=0.1
docker build -t scs3jb/stripaudio:latest -t scs3jb/stripadio:$VERSION .
docker login
docker push -t scs3jb/stripaudio:$VERSION
docker push -t scs3jb/stripaudio:latest

h3. To Run

To run, I recommend putting an alias in /etc/profile.d/aliases.sh:

alias stripdubs='docker run -v `pwd`:/cache -t -i --name stripdubs scs3jb/stripaudio:0.1 python /opt/original.py /cache && docker rm stripdubs'
alias stripaudio='docker run -v `pwd`:/cache -t -i --name stripaudio scs3jb/stripaudio:0.1 python /opt/original.py --audio-languages=eng,und /cache && docker rm stripaudio'

Example run would look like this:

$ docker run -v `pwd`:/cache -t -i --name stripdubs scs3jb/stripaudio:0.1 python /opt/original.py /cache && docker rm stripdubs
About to process folder: /cache, keeping audio: ['eng', 'zha', 'jpn', 'zho', 'kor', 'tha', 'chi', 'und' ] and subs: ['eng', 'und']
Flags: DRY_RUN: False EXTRACT: False
Type Y to continue! Y
Starting analysis on /cache/vhv-tbm-720p.mkv ...
... before filtering audio: 2, subs: 0
... audio: ger, eng
... subs:
... after filtering audio: 1, subs: 0
... audio: eng
... subs:
Processing /cache/vhv-tbm-720p.mkv ...
Succeeded
mkvtools

The original file is replaced with the stripped one, in this case German was not on the list of keeps, so it gets removed.

Use 'und' for undefined.

h3. TODO Where we fall over is a foreign language film with a dubbed track. We want to keep just the native language, you'd think this was the first track, unfortunately the dubber usually put the dubbed track first. I'm looking at you Germany, Spain, Italy and France! Check IMDB for original languages, and strip everything else! This will make this script safe to run.

h3. Help

Fix or Toss a Coin to your Witcher.

stripaudio's People

Contributors

scs3jb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.