Batch operation to convert .mkv file to HLS video format (based on Peer 5 guide)
Usage: mkv2hls -i <video_file> [args]
Commands:
mkv2hls -i converts file1.mkv into hls video parts
Options:
-i, --input .mkv file for conversion [required]
-o, --output output folder for conversion
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
-
Install ffmpeg with aac audio support (e.g. homebrew-ffmpeg via homebrew )
brew install ffmpeg brew tap homebrew-ffmpeg/ffmpeg brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
-
Install MkvtoolNix for mkvmerge CLI application
brew install mkvtoolnix
- Downloads test5.mkv from Matroska test files from github
- Analyzes mkv container file for tracks and subtitles
- Converts video file to HLS via ffmpeg into:
- m3u8 playlist
- video parts split in chunks for each rendition
- split audio tracks in chunks
- subtitle parts split in chunks
- Write master playlist
- file tag
- for each all audio tracks
- for each subtitle track
- for each rendition
-
Creating a Production Ready Multi Bitrate HLS VOD stream
-
misc/create-vod-hls.sh bash script
-
Subtitles, Captions, WebVTT, HLS, and those magic flags
-
MKVToolNix โ Matroska tools for Linux/Unix and Windows
-
Apple Streaming Examples
-
HLS authoring rules for Apple Devices