ffmpeg-for-homebridge
Version:
Static FFmpeg binaries for Homebridge camera plugins to support HomeKit video streaming (AAC-ELD and H.264) and hardware-accelerated transcoding (QSV, V4L2M2M, VideoToolbox).
16 lines (10 loc) • 303 B
JavaScript
const os = require("os");
const path = require("path");
const fs = require("fs");
const ffmpegPath = path.resolve(__dirname, os.platform() === "win32" ? "ffmpeg.exe" : "ffmpeg");
if (fs.existsSync(ffmpegPath)) {
module.exports = ffmpegPath;
} else {
module.exports = undefined;
}
;