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:
Hackzzila
2016-12-11 13:02:01 -06:00
committed by Amish Shah
parent d766e727a1
commit 52a83b9218
2 changed files with 9 additions and 1 deletions

View File

@@ -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(