node-mac-recorder 2.22.0 → 2.22.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.22.0",
3
+ "version": "2.22.2",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -451,10 +451,11 @@ static void MRCameraRemoveFileIfExists(NSString *path) {
451
451
 
452
452
  MRLog(@"🎥 Camera recording dimensions: %zux%zu", width, height);
453
453
 
454
- // H.264 video settings (matching current quality)
455
- NSInteger bitrate = (NSInteger)(width * height * 24); // 24fps target
456
- bitrate = MAX(bitrate, 5 * 1000 * 1000); // Min 5 Mbps
457
- bitrate = MIN(bitrate, 30 * 1000 * 1000); // Max 30 Mbps
454
+ // H.264 video settings - optimized for smaller file size
455
+ // Using lower bitrate multiplier for camera (2x instead of 24x) to reduce file size
456
+ NSInteger bitrate = (NSInteger)(width * height * 2);
457
+ bitrate = MAX(bitrate, 1 * 1000 * 1000); // Min 1 Mbps
458
+ bitrate = MIN(bitrate, 6 * 1000 * 1000); // Max 6 Mbps (significantly reduced from 30)
458
459
 
459
460
  NSDictionary *compressionProps = @{
460
461
  AVVideoAverageBitRateKey: @(bitrate),