@romain-faust/ffmpeg
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@romain-faust/ffmpeg

Set of tools for interacting with ffmpeg.

Installation

With NPM:

npm install @romain-faust/ffmpeg rxjs

With Yarn:

yarn add @romain-faust/ffmpeg rxjs

Usage

import { transcode } from '@romain-faust/ffmpeg'

transcode({
    audioFormat: 'aac',
    inputPath: '/path/to/the/input/file',
    outputFormat: 'matroska',
    outputPath: '/path/to/the/output/file',
    subTitleFormat: 'srt',
    videoFormat: 'libx265',
}).subscribe({
    next(event) {
        console.log(`Transcoded ${event.current} ms out of ${event.total}.`)
    },
    error(error) {
        console.error(`An error occurred: ${error.message}.`)
    },
    complete() {
        console.log('Transcode succeed.')
    },
})

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @romain-faust/ffmpeg

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

8.26 kB

Total Files

15

Last publish

Collaborators

  • romain-faust