m3u8adskipper

This Node module identifies ads in m3u8 HLS playlists and transmuxes the video into the mp4 container, skipping ads, without transcoding the content


Keywords
m3u8adskipper, HLS, MBR, Apple, ad, ad skipper, ad skipping, EXT-X-DISCONTINUITY, transmuxer, transmux, SCTE 35
License
MIT
Install
npm install m3u8adskipper@0.2.2

Documentation

m3u8adskipper

This Node module identifies ads in m3u8 HLS playlists and transmuxes the video into the mp4 container, skipping ads, without transcoding the content.

Usage

It is super simple to use.

Use the m3u8downoader to download the m3u8 playlist, if the content is not available locally.

Then you could use the following snippet to Transmux content, skipping ads automatically.

'use strict';
var m3u8adskipper = require('m3u8adskipper');
var skipper = new m3u8adskipper('./adestination/m3u8absolute/index.m3u8', 'output.mp4');

skipper.run(function(err)
{
    if (err)
    {
        console.log(err);
    }
    else
    {
        console.log('done');
    }
});

skipper.on('error', function(err)
{
    console.error(err);
});

skipper.on('progress', function(d)
{
    console.log(d);
});

skipper.on('complete', function()
{
    console.log('transmux complete');
});