JSPM

@tvkitchen/appliance-caption-srt-generator

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q43237F
  • License LGPL-3.0

Converts a caption stream into srt format.

Package Exports

  • @tvkitchen/appliance-caption-srt-generator
  • @tvkitchen/appliance-caption-srt-generator/lib/index.js
  • @tvkitchen/appliance-caption-srt-generator/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tvkitchen/appliance-caption-srt-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

TV Kitchen Caption SRT Generator Appliance

inputTypes: TEXT.ATOM, SEGMENT.START
outputTypes: TEXT.SRT

The Caption SRT Generator appliance ingests a stream of captions and converts them into the SubRip file format.

Timestamps are determined by the position value of the TEXT.ATOM payloads processed.

Configuration Options

The appliance takes in the following configuration values:

  • includeCounter (boolean): determines if the output includes a counter as part of the text of each payload.

Examples

includeCounter: true (default)

Payload {
  data: "2\n00:00:19,886 --> 00:00:20,787\n>>> WE'RE BACK ON WHAT HAS BEEN\n",
  type: 'TEXT.SRT',
  createdAt: '2021-02-18T20:17:50.583Z',
  timestamp: '',
  duration: 901,
  position: 19886
}

includeCounter: false

Payload {
  data: "00:00:19,886 --> 00:00:20,787\n>>> WE'RE BACK ON WHAT HAS BEEN\n",
  type: 'TEXT.SRT',
  createdAt: '2021-02-18T20:17:50.583Z',
  timestamp: '',
  duration: 901,
  position: 19886
}

Dependencies

This appliance has no external dependencies.

About the TV Kitchen

TV Kitchen is a project of Bad Idea Factory. Learn more at the TV Kitchen project site.