dyoung2019 / mkv2hls

Converts mkv videos to hls video format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mkv2hls - MKV Video to HLS conversion

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]

Installation

Pre-install

  1. 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
  2. Install MkvtoolNix for mkvmerge CLI application

    brew install mkvtoolnix
    

Post-install

  1. Downloads test5.mkv from Matroska test files from github

Processes

  1. Analyzes mkv container file for tracks and subtitles
  2. 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
  3. Write master playlist
    1. file tag
    2. for each all audio tracks
    3. for each subtitle track
    4. for each rendition

Links

About

Converts mkv videos to hls video format


Languages

Language:JavaScript 93.8%Language:Shell 6.2%