chaosdc/node_modules/@discord-player/ffmpeg
root 934816dd37 first commit 2026-03-09 23:30:47 +01:00
..
dist first commit 2026-03-09 23:30:47 +01:00
LICENSE first commit 2026-03-09 23:30:47 +01:00
README.md first commit 2026-03-09 23:30:47 +01:00
package.json first commit 2026-03-09 23:30:47 +01:00

README.md

@discord-player/ffmpeg

FFmpeg stream abstraction for Discord Player.

Installation

$ yarn add @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);