Skip to content

This Node module identifies ads in m3u8 playlists using the EXT-X-DISCONTINUITY tag and transmuxes the video into the mp4 container, skipping ads, without transcoding the content.

License

skimotv/m3u8adskipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');
});

About

This Node module identifies ads in m3u8 playlists using the EXT-X-DISCONTINUITY tag and transmuxes the video into the mp4 container, skipping ads, without transcoding the content.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published