Skip to content

This is a simple tool that extracts each chapter in a mkv file into a separate mkv file.

License

Notifications You must be signed in to change notification settings

dpsenner/mkv-split-chapters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a simple tool that takes one mkv file with several chapters in it and extracts each chapter into a separate mkv file.

Installation

$ git clone https://github.com/dpsenner/mkv-split-chapters.git
$ sudo ln -s $(readlink -f mkv-split-chapters/mkv-split-chapters.sh) /usr/local/bin/mkv-split-chapters

Usage

$ ls
some-mkv-file.mkv
$ mkv-split-chapters some-mkv-file.mkv
Filename: some-mkv-file
Extension: mkv
Filedir: .
ffmpeg -i some-mkv-file.mkv -ss 0.000000 -to 394.800000 -acodec copy -vcodec copy ./some-mkv-file-#00.mkv
[...]
ffmpeg -i some-mkv-file.mkv -ss 394.800000 -to 767.160000 -acodec copy -vcodec copy ./some-mkv-file-#01.mkv
[...]
ffmpeg -i some-mkv-file.mkv -ss 757.160000 -to 1216.720000 -acodec copy -vcodec copy ./some-mkv-file-#02.mkv
[...]