mkv-chapters
v0.2.0
Published
reads *.mkv chapters and merges them into one linking file
Downloads
2
Maintainers
Readme
mkv-chapter-merge
simple API to manipulate and chapters and create a linking matroska file.
#install
npmnpm install mkv-chapter-merge
Usage
//get the api
let api=require("mkv-chapter-merge");
//get the FileInfo;
api.readFileInfo(pathToFile)
.then(fileInfo=>
{
//do stuff ...
api.repair.sortChapters(fileInfo);
api.repair.fillGaps(fileInfo);
let linkedFileInfo=api.FileInfo.createLinkedFile(fileInfo.chapters,{path:"output.mkv"});
//write new file
return linkedFileInfo.writeToFile(); //returns promise
})
.then(()=>
{
console.log("finish");
},
(error)=>
{
console.error(error)
});
#API TODO