Git Product home page Git Product logo

mkv2hls's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.