@matterbridge/core 3.10.14-dev-20261014-2811fdc → 3.10.14-dev-20261014-ce817f8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { hasAnyParameter } from '@matterbridge/utils/cli';
6
6
  import { AnsiLogger, MAGENTA } from 'node-ansi-logger';
7
7
  const log = new AnsiLogger({
8
8
  logName: 'Ffmpeg',
9
- logLevel: hasAnyParameter('debug', 'verbose') ? "debug" : "info",
9
+ logLevel: hasAnyParameter('debug', 'verbose', 'debug-ffmpeg', 'verbose-ffmpeg') ? "debug" : "info",
10
10
  logNameColor: MAGENTA,
11
11
  logTimestampFormat: 4,
12
12
  });
@@ -221,11 +221,26 @@ export class WeriftWebRtcSession {
221
221
  this.log.debug(`Webcam capture params: device=${device}, resolution=${resolution}, description="${description}", bitrateKbps=${bitrateKbps}`);
222
222
  switch (process.platform) {
223
223
  case 'linux':
224
- return { args: ['-f', 'v4l2', '-video_size', resolution, '-framerate', '30', '-i', device], description, bitrateKbps, keyFrameInterval: 20 };
224
+ return {
225
+ args: ['-f', 'v4l2', '-video_size', resolution, '-framerate', '30', '-i', device, '-fps_mode', 'cfr', '-r', '30'],
226
+ description,
227
+ bitrateKbps,
228
+ keyFrameInterval: 20,
229
+ };
225
230
  case 'darwin':
226
- return { args: ['-f', 'avfoundation', '-video_size', resolution, '-framerate', '30', '-i', device], description, bitrateKbps, keyFrameInterval: 20 };
231
+ return {
232
+ args: ['-f', 'avfoundation', '-video_size', resolution, '-framerate', '30', '-i', device, '-fps_mode', 'cfr', '-r', '30'],
233
+ description,
234
+ bitrateKbps,
235
+ keyFrameInterval: 20,
236
+ };
227
237
  case 'win32':
228
- return { args: ['-f', 'dshow', '-video_size', resolution, '-framerate', '30', '-i', `video=${device}`], description, bitrateKbps, keyFrameInterval: 20 };
238
+ return {
239
+ args: ['-f', 'dshow', '-video_size', resolution, '-framerate', '30', '-i', `video=${device}`, '-fps_mode', 'cfr', '-r', '30'],
240
+ description,
241
+ bitrateKbps,
242
+ keyFrameInterval: 20,
243
+ };
229
244
  default:
230
245
  this.log.error(`Webcam capture via ffmpeg is not supported on platform "${process.platform}"; not injecting a video track`);
231
246
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.10.14-dev-20261014-2811fdc",
3
+ "version": "3.10.14-dev-20261014-ce817f8",
4
4
  "description": "Matterbridge core library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -136,10 +136,10 @@
136
136
  },
137
137
  "dependencies": {
138
138
  "@matter/main": "0.17.9",
139
- "@matterbridge/dgram": "3.10.14-dev-20261014-2811fdc",
140
- "@matterbridge/thread": "3.10.14-dev-20261014-2811fdc",
141
- "@matterbridge/types": "3.10.14-dev-20261014-2811fdc",
142
- "@matterbridge/utils": "3.10.14-dev-20261014-2811fdc",
139
+ "@matterbridge/dgram": "3.10.14-dev-20261014-ce817f8",
140
+ "@matterbridge/thread": "3.10.14-dev-20261014-ce817f8",
141
+ "@matterbridge/types": "3.10.14-dev-20261014-ce817f8",
142
+ "@matterbridge/utils": "3.10.14-dev-20261014-ce817f8",
143
143
  "escape-html": "1.0.3",
144
144
  "express": "5.2.1",
145
145
  "express-rate-limit": "8.7.1",