[go: up one dir, main page]

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

0.1.0 • Public • Published

@discord-player/ffmpeg

FFmpeg stream abstraction for Discord Player.

Installation

$ yarn add --save @discord-player/ffmpeg

Supported FFmpeg Locations

Example

import { FFmpeg } from '@discord-player/ffmpeg';

const transcoder = new FFmpeg({
    args: [
        '-analyzeduration', '0',
        '-loglevel', '0',
        '-f', 's16le',
        '-ar', '48000',
        '-ac', '2',
        '-af', 'bass=g=15,acompressor'
    ]
});

const stream = getAudioStreamSomehow();
const transcoded = stream.pipe(transcoder);

Package Sidebar

Install

npm i @discord-player/ffmpeg

Weekly Downloads

1,984

Version

0.1.0

License

MIT

Unpacked Size

29.6 kB

Total Files

6

Last publish

Collaborators

  • snowflake7
  • androz2091