/Chapter-Splitter

Split A Video By Its Chapters - To A Video Per Chapter. Uses FFMPEG, No Encoding - Super Fast!

Primary LanguageJavaScriptThe UnlicenseUnlicense

Chapter Splitter -     PayPal Donation

Video chapters are a nice way to identify a start/end of new contextual-segments in a long-video.

In case you've used of a ripping program such as HandBrake,
you'll end up with a one long video, containing all the videos on the DVD,
if it is not desirable for you, you may use this Chapter Splitter to split the one long video into many short ones,
accurately cut by the chapter's start and end points.

Chapter Splitter uses FFPROBE for the chapter information, in a JSON format,
feeded into the NodeJS engine to render a long-list of FFMPEG commands,
that will split the long video, but will not re-encode it (muxing),
this should end up very fast, and playable in most devices - and with the same quality!

It is advisable that you'll re-encode the video at some point or upload it to YouTube, (which will do it itself) in-order to fix the video-index.


How To Use?

You'll drag&drop your media over _run.cmd and it will generate a new CMD file,
run it and all the work will be done for you.

When you'll run the CMD file,
the new videos will be placed in the same folder as the original video,
their names will be the original file name with a suffix of the chapter name (or "Chapter " with the chapter id in-case title is not available).

No encoding is actually done in Chapter Splitter,
you can run the generated CMD file when you'll want to.


In order to provide a complete solution (with binaries included),
I've UPX-compressed the exe files.
FFMPEG are about 40MB but now are about 14MB (and nodejs goes from about 20MB to 5MB).
Some antivirus programs do not like upx, I think it's cool.


Updating?

FFMPEG/FFPROBE can be downloaded from here:
https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-latest-win32-static.zip or
here: https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-latest-win64-static.zip

NodeJS can be downloaded from here:
https://nodejs.org/download/nightly/v10.0.0-nightly20171117959c425a19/win-x86/node.exe
for x64 bit get the node.exe from the win-x64/ folder instead.
And browse https://nodejs.org/download/nightly/ for a more recent builds.