[mirotalksfu] - autodetect default ffmpegPath for Rtmp streaming

هذا الالتزام موجود في:
Miroslav Pejic
2025-01-16 10:52:19 +01:00
الأصل e2d05a8f56
التزام 5598bf99c4
10 ملفات معدلة مع 81 إضافات و12 حذوفات

عرض الملف

@@ -3,7 +3,8 @@
const config = require('./config');
const { PassThrough } = require('stream');
const ffmpeg = require('fluent-ffmpeg');
const ffmpegPath = config.server.rtmp && config.server.rtmp.ffmpeg ? config.server.rtmp.ffmpeg : '/usr/bin/ffmpeg';
const ffmpegPath =
config.server.rtmp && config.server.rtmp.ffmpegPath ? config.server.rtmp.ffmpegPath : '/usr/bin/ffmpeg';
ffmpeg.setFfmpegPath(ffmpegPath);
const Logger = require('./Logger');