An open API service indexing awesome lists of open source software.

https://github.com/roxasshadow/mkvmuxer

Wrapper for mkvmerge (mkvtoolnix) to mux video, audio, subtitles, etc. in a Matroska container.
https://github.com/roxasshadow/mkvmuxer

Last synced: 10 months ago
JSON representation

Wrapper for mkvmerge (mkvtoolnix) to mux video, audio, subtitles, etc. in a Matroska container.

Awesome Lists containing this project

README

          

MkvMuxer
========
Wrapper for [mkvmerge](`http://www.bunkus.org/videotools/mkvtoolnix/) to mux video, audio, subtitles, etc. in a Matroska container.

Install
-------
`gem install mkvmuxer`

Example
-------
*MkvMuxer* muxes:

- mkv (*required*, remember to put a `[CRC32]` tag in the file name, so it will be replaced by the final mkv's CRC32)
- ass (*required*)
- fonts (every *ttf*, *ttc* and *otf* it finds in folders whose name starts with *font*)
- chapters (stored in a *xml* file)

```ruby
require 'mkvmerge'

mkvmuxer = MkvMuxer.new './inari'
mkvmuxer.prepare 'English' # the subtitle's language
mkvmuxer.merge!
mkvmuxer.apply_crc32!
```

Or just use the built-in executable
```sh
$ mkvmuxer # show the usage
$ mkvmuxer ./inari English # mux all the files found in given folder
```