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']| Parameter | Type | Optional | Description | | --------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ----------------- | | input | Record<string | ArgPrimitive | Array<ArgPrimitive>> | ❌ | The input object. | | post | string | Array<string> | ✅ | N/A |