Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 936 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 936 Bytes

This is a command-line utility to convert any video in a Matroska video container (MKV) to x264 video in an MP4 container (M4V), ostensibly for viewing on an AppleTV or an Apple iPad.

The real magic comes in the form of extracting an SSA/ASS subtitle track from the Matroska container, converting it to an SRT subtitle track (a format accepted by MP4), and then muxing the subtitles in to the newly converted MP4 file.

While technically this script will run in any Perl environment, reliance on SublerCLI (for subtitle muxing) currently makes it only usable on Mac OS X.

Usage

mkv2mp4.pl <mkvfile>...

Dependencies

HandBrakeCLI
SublerCLI
MKVToolnix