Skip to content

python script for linux, windows or os x which can be used to convert the DTS in Matroska (MKV) files to AC3

Notifications You must be signed in to change notification settings

bzmw/mkvdts2ac3.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Forked from dcthomson/mkvdts2ac3.py and taken to surgery to fit my very specific needs.

ac3.py is a python script for linux, windows or os x which can be used for duplicating any audio track and converting it into AC3.

The script analyzes a file, picks out non-AC3 audio tracks, converts them to AC3 and then remuxes them back into the original file. The video file is simply copied. If the file is in an MP4 container previously it will be output into a MKV container.

The outputted file with have the same file name suffixed with '.new'

Installation

Prerequisites

Make sure the executables for the following libraries are accessible.

  1. python - Python
  2. mkvtoolnix - Matroska tools
  3. ffmpeg - Audio conversion tool

Note: If you are a Mac OS X user you may need to compile these libraries.

Usage

usage: mkvdts2ac3.py FileOrDirectory [FileOrDirectory ...]

positional arguments:
  FileOrDirectory       a file or directory (wildcards may be used)

About

python script for linux, windows or os x which can be used to convert the DTS in Matroska (MKV) files to AC3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%