[mirotalksfu] - fix ffmpeg in Docker

هذا الالتزام موجود في:
Miroslav Pejic
2024-07-01 22:38:01 +02:00
الأصل 89f7ed9e63
التزام 18520e4368
9 ملفات معدلة مع 17 إضافات و12 حذوفات

عرض الملف

@@ -1,8 +1,9 @@
'use strict';
const config = require('./config');
const ffmpegPath = config.server.rtmp && config.server.rtmp.ffmpeg ? config.server.rtmp.ffmpeg : '/usr/bin/ffmpeg';
const ffmpeg = require('fluent-ffmpeg');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
ffmpeg.setFfmpegPath(ffmpegPath);
const Logger = require('./Logger');
const log = new Logger('RtmpFile');

عرض الملف

@@ -1,9 +1,10 @@
'use strict';
const config = require('./config');
const { PassThrough } = require('stream');
const ffmpeg = require('fluent-ffmpeg');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
const ffmpegPath = config.server.rtmp && config.server.rtmp.ffmpeg ? config.server.rtmp.ffmpeg : '/usr/bin/ffmpeg';
ffmpeg.setFfmpegPath(ffmpegPath);
const Logger = require('./Logger');
const log = new Logger('RtmpStreamer');

عرض الملف

@@ -1,8 +1,9 @@
'use strict';
const config = require('./config');
const ffmpegPath = config.server.rtmp && config.server.rtmp.ffmpeg ? config.server.rtmp.ffmpeg : '/usr/bin/ffmpeg';
const ffmpeg = require('fluent-ffmpeg');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
ffmpeg.setFfmpegPath(ffmpegPath);
const Logger = require('./Logger');
const log = new Logger('RtmpUrl');

عرض الملف

@@ -44,7 +44,7 @@ dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.76
* @version 1.4.77
*
*/

عرض الملف

@@ -76,6 +76,7 @@ module.exports = {
- apiSecret: The API secret for streaming WebRTC to RTMP through the MiroTalk API.
- expirationHours: The number of hours before the RTMP URL expires. Default is 4 hours.
- dir: Directory where your video files are stored to be streamed via RTMP.
- ffmpeg: Path of the ffmpeg installation on the system (which ffmpeg)
Important: Ensure your RTMP server is operational before proceeding. You can start the server by running the following command:
- Start: npm run nms-start - Start the RTMP server.
@@ -94,6 +95,7 @@ module.exports = {
apiSecret: 'mirotalkRtmpApiSecret',
expirationHours: 4,
dir: 'rtmp',
ffmpeg: '/usr/bin/ffmpeg',
},
},
middleware: {