Skip to content

seiya-npm/BDDVDSubReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BDDVDSubReader

npm npm downloads

Usage:

import { VobSubReader, BDSupReader } from 'bddvdsubreader';

const vobSubData = new VobSubReader('MyVobSub Subtitles'); // Path to .sub/.idx files with or without extension
const bdSupData = new BDSupReader('My PGS Subtitles.sup'); // Path to .sup file

Output:

(Object) => {
    tracks: (Map) => { // Only for VobSub
        id: 'en', // Language Id
        title: 'English', // Language Name
    },
    frames: (Array) => {
        track_index: 0, // Frames from Track Index (Only for VobSub)
        forced: false, // if frame forced subtitle
        pts: 0, // show frame in milliseconds
        end: 0, // hide frame in milliseconds
        width: 1920, // frame width
        height: 1080, // frame height
        rgba: <RGBAImage class>, // RGBAImage class, get() will return RGBA buffer
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors