Socket
Socket
Sign inDemoInstall

canvas-record

Package Overview
Dependencies
20
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-alpha.6 to 4.0.0-alpha.7

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

# [4.0.0-alpha.7](https://github.com/dmnsgn/canvas-record/compare/v4.0.0-alpha.6...v4.0.0-alpha.7) (2023-04-19)
### Bug Fixes
* accept hvc codec identifier for hevc ([d88431d](https://github.com/dmnsgn/canvas-record/commit/d88431d7cd6ab75ac62780b19e76bac85769b338))
# [4.0.0-alpha.6](https://github.com/dmnsgn/canvas-record/compare/v4.0.0-alpha.5...v4.0.0-alpha.6) (2023-04-16)

@@ -7,0 +16,0 @@

4

package.json
{
"name": "canvas-record",
"version": "4.0.0-alpha.6",
"version": "4.0.0-alpha.7",
"description": "Record a video in the browser or directly on the File System from a canvas (2D/WebGL/WebGPU) as MP4, WebM, MKV, GIF, PNG/JPG Sequence using WebCodecs and wasm when available.",

@@ -46,3 +46,3 @@ "keywords": [

"h264-mp4-encoder": "^1.0.12",
"media-codecs": "^1.0.1",
"media-codecs": "^2.0.0",
"mp4-muxer": "^1.0.5",

@@ -49,0 +49,0 @@ "webm-muxer": "^3.0.1"

@@ -43,4 +43,4 @@ import * as MP4Muxer from "mp4-muxer";

this.encoderOptions.codec || this.extension === "mp4"
? AVC.getCodec({ name: "High", level: "4" })
: VP.getCodec({ name: "VP9", profile: 0, level: "1", bitDepth: 8 });
? AVC.getCodec({ profile: "High", level: "4" }) // avc1.640028
: VP.getCodec({ name: "VP9", profile: 0, level: "1", bitDepth: 8 }); // vp09.00.10.08

@@ -60,7 +60,11 @@ const CCCC = codec.split(".")[0];

? // Supported: "avc" | "hevc"
CCCC.startsWith("hev")
CCCC.startsWith("hev") || CCCC.startsWith("hvc") // https://www.w3.org/TR/webcodecs-hevc-codec-registration/#fully-qualified-codec-strings
? "hevc"
: "avc"
: // Supported: "V_VP8" | "V_VP9" (TODO: V_AV1)
`V_${VP.VP_CODECS.find((codec) => codec.cccc === CCCC).name}`,
: // Supported: "V_VP8" | "V_VP9" | "V_AV1"
`V_${
CCCC.startsWith("av01")
? "AV1"
: VP.VP_CODECS.find((codec) => codec.cccc === CCCC).name
}`,
width: this.width,

@@ -67,0 +71,0 @@ height: this.height,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc