@mediabunny/server 1.56.0 → 1.56.1
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/dist/bundles/mediabunny-server.cjs +25 -6
- package/dist/bundles/mediabunny-server.min.cjs +2 -2
- package/dist/bundles/mediabunny-server.min.mjs +2 -2
- package/dist/bundles/mediabunny-server.mjs +25 -6
- package/dist/modules/src/video-decoder.d.ts.map +1 -1
- package/dist/modules/src/video-decoder.js +4 -1
- package/dist/modules/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/video-decoder.ts +5 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediabunny/server",
|
|
3
3
|
"author": "Vanilagy",
|
|
4
|
-
"version": "1.56.
|
|
4
|
+
"version": "1.56.1",
|
|
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.56.
|
|
38
|
+
"@mediabunny/prores": "^1.56.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"mediabunny": "^1.45.0"
|
package/src/video-decoder.ts
CHANGED
|
@@ -82,7 +82,11 @@ export class NodeAvVideoDecoder extends CustomVideoDecoder {
|
|
|
82
82
|
: null;
|
|
83
83
|
codecContext.sampleAspectRatio = new NodeAv.Rational(this.pixelAspectRatio.num, this.pixelAspectRatio.den);
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
// Honor inferred H.264 reorder buffering even when bitstream restrictions aren't explicitly signaled
|
|
86
|
+
// See https://github.com/Vanilagy/mediabunny/issues/488
|
|
87
|
+
const options = NodeAv.Dictionary.fromObject({ strict: NodeAv.FF_COMPLIANCE_STRICT });
|
|
88
|
+
|
|
89
|
+
const ret = await codecContext.open2(codec, options);
|
|
86
90
|
NodeAv.FFmpegError.throwIfError(ret, 'Open codec context');
|
|
87
91
|
|
|
88
92
|
this.codecContext = codecContext;
|