Discord Player

createFFmpegArgs

Create FFmpeg arguments from an object.

createFFmpegArgs(input, post?): Array<string>

Create FFmpeg arguments from an object.

createFFmpegArgs({ i: 'input.mp3', af: ['bass=g=10', 'acompressor'] }, './out.mp3');
// => ['-i', 'input.mp3', '-af', 'bass=g=10,acompressor', './out.mp3']
ParameterTypeOptionalDescription
inputRecord<string | ArgPrimitive | Array<ArgPrimitive>>The input object.
poststring | Array<string>N/A

On this page