Skip to content

Commit

Permalink
[mirotalksfu] - update rtmp servers and demo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 16, 2025
1 parent 57faf15 commit e2d05a8
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions rtmpServers/demo/client-server-axios/server/RtmpStreamer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

const { PassThrough } = require('stream');
const ffmpeg = require('fluent-ffmpeg');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
const ffmpegPath = '/usr/local/bin/ffmpeg'; // /usr/bin/ffmpeg (Linux) | /usr/local/bin/ffmpeg (Mac)
ffmpeg.setFfmpegPath(ffmpegPath);

class RtmpStreamer {
constructor(rtmpUrl, rtmpKey) {
Expand Down
8 changes: 4 additions & 4 deletions rtmpServers/demo/client-server-axios/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalk-rtmp-streamer-server",
"version": "1.0.0",
"version": "1.0.1",
"description": "MiroTalk RTMP Streamer Server",
"main": "server.js",
"scripts": {
Expand All @@ -19,12 +19,12 @@
"license": "AGPLv3",
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"body-parser": "1.20.2",
"body-parser": "1.20.3",
"cors": "2.8.5",
"fluent-ffmpeg": "^2.1.3"
},
"devDependencies": {
"uuid": "10.0.0",
"nodemon": "^3.1.4"
"uuid": "11.0.5",
"nodemon": "^3.1.9"
}
}
4 changes: 2 additions & 2 deletions rtmpServers/demo/client-server-socket/server/RtmpStreamer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

const { PassThrough } = require('stream');
const ffmpeg = require('fluent-ffmpeg');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
const ffmpegPath = '/usr/local/bin/ffmpeg'; // /usr/bin/ffmpeg (Linux) | /usr/local/bin/ffmpeg (Mac)
ffmpeg.setFfmpegPath(ffmpegPath);

class RtmpStreamer {
constructor(rtmpUrl, rtmpKey, socket) {
Expand Down
10 changes: 5 additions & 5 deletions rtmpServers/demo/client-server-socket/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalk-rtmp-server-streamer",
"version": "1.0.0",
"version": "1.0.1",
"description": "MiroTalk RTMP Server Streamer",
"main": "server.js",
"scripts": {
Expand All @@ -20,13 +20,13 @@
"license": "AGPLv3",
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"body-parser": "1.20.2",
"body-parser": "1.20.3",
"fluent-ffmpeg": "^2.1.3",
"cors": "2.8.5",
"socket.io": "4.7.5"
"socket.io": "4.8.1"
},
"devDependencies": {
"uuid": "10.0.0",
"nodemon": "^3.1.4"
"uuid": "11.0.5",
"nodemon": "^3.1.9"
}
}
2 changes: 1 addition & 1 deletion rtmpServers/node-media-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use a lightweight Node.js image
FROM node:20-slim
FROM node:lts-slim

# Set working directory
WORKDIR /app
Expand Down
2 changes: 0 additions & 2 deletions rtmpServers/node-media-server/docker-compose.template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
mirotalk-nms:
container_name: mirotalk-nms
Expand Down
6 changes: 3 additions & 3 deletions rtmpServers/node-media-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalk-rtmp-nms",
"version": "1.0.0",
"version": "1.0.1",
"description": "MiroTalk RTMP Node Media Server",
"main": "server.js",
"scripts": {
Expand All @@ -20,7 +20,7 @@
"node-media-server": "^2.7.0"
},
"devDependencies": {
"uuid": "10.0.0",
"nodemon": "^3.1.4"
"uuid": "11.0.5",
"nodemon": "^3.1.9"
}
}

0 comments on commit e2d05a8

Please sign in to comment.