diff --git a/src/core/api.js b/src/core/api.js index 2aea16bbf..c4b50d6a6 100644 --- a/src/core/api.js +++ b/src/core/api.js @@ -12,7 +12,7 @@ const sharp = require("sharp"); const dev = require("./dev-log"); -ffmpeg.setFfmpegPath("../ffmpeg-4.1.3-armhf-static/ffmpeg"); +ffmpeg.setFfmpegPath(path.join(global.ffmpegpath, "ffmpeg")); module.exports = (function() { const API = { diff --git a/src/core/recipe.js b/src/core/recipe.js index f2fcdb3db..08e55992c 100644 --- a/src/core/recipe.js +++ b/src/core/recipe.js @@ -3,8 +3,8 @@ const fs = require("fs-extra"), sharp = require("sharp"), ffmpeg = require("fluent-ffmpeg"); -ffmpeg.setFfmpegPath("../ffmpeg-4.1.3-armhf-static/ffmpeg"); -ffmpeg.setFfprobePath("./ffmpeg-4.1.3-armhf-static/ffprobe"); +ffmpeg.setFfmpegPath(path.join(global.ffmpegpath, "ffmpeg")); +ffmpeg.setFfprobePath(path.join(global.ffmpegpath, "ffprobe")); module.exports = (function() { return { diff --git a/src/core/thumbs.js b/src/core/thumbs.js index eb2310840..0610c2556 100644 --- a/src/core/thumbs.js +++ b/src/core/thumbs.js @@ -9,8 +9,8 @@ sharp.cache(false); const dev = require("./dev-log"), api = require("./api"); -ffmpeg.setFfmpegPath("../ffmpeg-4.1.3-armhf-static/ffmpeg"); -ffmpeg.setFfprobePath("./ffmpeg-4.1.3-armhf-static/ffprobe"); +ffmpeg.setFfmpegPath(path.join(global.ffmpegpath, "ffmpeg")); +ffmpeg.setFfprobePath(path.join(global.ffmpegpath, "ffprobe")); module.exports = (function() { const API = {