@browser-mc/browser-movie-converter 0.1.0 → 0.2.0
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/README.md +1 -1
- package/dist/conversion-options.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -160,7 +160,7 @@ When split `quantizer` values are used with `keyFrameInterval`, the interval is
|
|
|
160
160
|
## Notes
|
|
161
161
|
|
|
162
162
|
- This package builds Mediabunny `ConversionOptions`; callers choose the `Output`, target, and final `Conversion` lifecycle.
|
|
163
|
-
- When `resize` is set, the generated video options use `VideoSample.toVideoFrame()` plus `webcodecs-color.resizeFramePlanar()` inside Mediabunny's `process` hook. `resize.rawBitDepth` and `resize.rawChromaSubsampling` can additionally convert supported planar frames before encoding; both default to `preserve`.
|
|
163
|
+
- When `resize` is set, the generated video options use `VideoSample.toVideoFrame()` plus `webcodecs-color.resizeFramePlanar()` inside Mediabunny's `process` hook. `resize.rawBitDepth` and `resize.rawChromaSubsampling` can additionally convert supported planar frames before encoding; both default to `preserve`. `NV12` frames are preserved as `NV12` during resize when both controls are preserved, or unpacked to `I420` when raw planar conversion is requested.
|
|
164
164
|
- `convertMovieToHls` streams HLS assets through `ReadableStream<Uint8Array>` and requires `variants`, producing one HLS video encode per variant. Top-level resize, scene detection, quantizer, color metadata, force transcode, and key-frame options act as defaults; variant values override them. Audio is encoded once and paired with every video variant.
|
|
165
165
|
- For AVC/H.264 transcodes, Mediabunny currently builds `avc1.64....` codec strings by default, which corresponds to High Profile. If the video track is copied without transcoding, the source profile is preserved instead.
|
|
166
166
|
- Resize dimensions are rounded down to a multiple of `dimensionAlignment`, defaulting to `2`, which avoids odd-size 4:2:0/NV12 artifacts and encoder constraints.
|
|
@@ -203,7 +203,7 @@ async function resolveTrackResize(track, options) {
|
|
|
203
203
|
width: size.width,
|
|
204
204
|
height: size.height,
|
|
205
205
|
path: 'raw',
|
|
206
|
-
rawAlgorithm: options.rawAlgorithm ?? '
|
|
206
|
+
rawAlgorithm: options.rawAlgorithm ?? 'lanczos3',
|
|
207
207
|
rawBitDepth: options.rawBitDepth ?? 'preserve',
|
|
208
208
|
rawChromaSubsampling: options.rawChromaSubsampling ?? 'preserve',
|
|
209
209
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@browser-mc/browser-movie-converter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"mediabunny": "^1.46.0",
|
|
20
20
|
"@browser-mc/mediabunny-scene-keyframes": "^0.0.1",
|
|
21
|
-
"@browser-mc/webcodecs-color": "^0.
|
|
21
|
+
"@browser-mc/webcodecs-color": "^0.2.0"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|