@mediabunny/server 1.50.7 → 1.50.9

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mediabunny/server",
3
3
  "author": "Vanilagy",
4
- "version": "1.50.7",
4
+ "version": "1.50.9",
5
5
  "description": "Adds full video and audio decoder and encoder support to Mediabunny for use in server-side environments (Node, Bun, Deno). Based on NodeAV.",
6
6
  "main": "./dist/bundles/mediabunny-server.cjs",
7
7
  "module": "./dist/bundles/mediabunny-server.mjs",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "node-av": "^6.0.0",
38
- "@mediabunny/prores": "^1.50.7"
38
+ "@mediabunny/prores": "^1.50.9"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "mediabunny": "^1.45.0"
@@ -203,6 +203,11 @@ export class NodeAvVideoEncoder extends CustomVideoEncoder {
203
203
  if (isRealtime) {
204
204
  codecContext.setOption('preset', '12');
205
205
  }
206
+ } else if (this.avCodec.name === 'h264_nvenc') {
207
+ // When we force a key frame, we want a true IDR frame, not just an I frame
208
+ codecContext.setOption('forced-idr', '1');
209
+ } else if (this.avCodec.name === 'hevc_nvenc') {
210
+ codecContext.setOption('forced-idr', '1');
206
211
  }
207
212
 
208
213
  if (this.codec === 'prores') {