mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
Add ffmpeg-binaries as a possible source of ffmpeg (#975)
* Add ffmpeg-binaries as a possible source of ffmpeg * Add note in faq
This commit is contained in:
@@ -67,7 +67,14 @@ class FfmpegConverterEngine extends ConverterEngine {
|
||||
}
|
||||
|
||||
function chooseCommand() {
|
||||
for (const cmd of ['ffmpeg', 'avconv', './ffmpeg', './avconv']) {
|
||||
for (const cmd of [
|
||||
'ffmpeg',
|
||||
'avconv',
|
||||
'./ffmpeg',
|
||||
'./avconv',
|
||||
'node_modules\\ffmpeg-binaries\\bin\\ffmpeg',
|
||||
'node_modules/ffmpeg-binaries/bin/ffmpeg',
|
||||
]) {
|
||||
if (!ChildProcess.spawnSync(cmd, ['-h']).error) return cmd;
|
||||
}
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user