Skip to content

LeoCBS/mkv-subtitle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Codacy Badge

mkv-subtitle

Embed subtitle to mkv container using mkvmerge tool version 5.8.0.

Why using one old version?

Some hardware (TVs, HTs) don't have full compatibility with mkv specification.. mkvmerge tends to use all the latest features all the time, and this can pose problems for such players.. See this link for more information about mkv compatibility

How this works?

This using Docker to compile and install mkv merge tool 5.8.0 in one Docker image

Requirements

Docker 1.9.0 +

How to use:

Just use mkvmerge cli directly in docker container:

docker run --rm -v $(pwd):/mkvtemp leocbs/mkvmergetool:1.0.0 mkvmerge -V

output:

mkvmerge v5.8.0 ('No Sleep / Pillow') built on Jan 15 2017 18:04:03

Must set one volume /mkvtemp with your mkv and subtitle files.

Simple example to embed subtitle:

docker run -ti --rm -v $(pwd):/mkvtemp leocbs/mkvmergetool mkvmerge -o Vikings.S04E15c.mkv Vikings.S04E15.mkv Vikings.S04E15.str

How to run attacher

Attacher is one python script that extract subtitle from rar files and convert to iso charset.

Attacher help:

mkv-subtitle|master ⇒ python /home/leonardo/projects/mkv-subtitle/mkv/attacher.py --help
usage: attacher.py [-h] --mkvsource MKVSOURCE --hdddest HDDDEST

optional arguments:
      -h, --help             show this help message and exit
      --mkvsource MKVSOURCE  pass mkv folder source. ex:/home/user/mkvs
      --hdddest HDDDEST      path to external disk. ex:/home/user/mkvs

attacher example:

 python attacher.py --mkvsource /run/media/leonardo/DOC3/merge \
       --hdddest /run/media/leonardo/mypassportultra/series_new

Python requirements

If you wish use attacher.py, you will need some extra libs

* pyunpack

Releases

No releases published

Packages

No packages published