@remotion/lambda-client 4.0.438 → 4.0.440

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/cjs/index.js CHANGED
@@ -70055,6 +70055,10 @@ var PERCENTAGE = NUMBER + "%";
70055
70055
  function call(...args) {
70056
70056
  return "\\(\\s*(" + args.join(")\\s*,\\s*(") + ")\\s*\\)";
70057
70057
  }
70058
+ var MODERN_VALUE = "(?:none|[-+]?\\d*\\.?\\d+(?:%|deg|rad|grad|turn)?)";
70059
+ function modernColorCall(name) {
70060
+ return new RegExp(name + "\\(\\s*(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")(?:\\s*\\/\\s*(" + MODERN_VALUE + "))?\\s*\\)");
70061
+ }
70058
70062
  function getMatchers() {
70059
70063
  const cachedMatchers = {
70060
70064
  rgb: undefined,
@@ -70065,7 +70069,12 @@ function getMatchers() {
70065
70069
  hex4: undefined,
70066
70070
  hex5: undefined,
70067
70071
  hex6: undefined,
70068
- hex8: undefined
70072
+ hex8: undefined,
70073
+ oklch: undefined,
70074
+ oklab: undefined,
70075
+ lab: undefined,
70076
+ lch: undefined,
70077
+ hwb: undefined
70069
70078
  };
70070
70079
  if (cachedMatchers.rgb === undefined) {
70071
70080
  cachedMatchers.rgb = new RegExp("rgb" + call(NUMBER, NUMBER, NUMBER));
@@ -70076,6 +70085,11 @@ function getMatchers() {
70076
70085
  cachedMatchers.hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
70077
70086
  cachedMatchers.hex6 = /^#([0-9a-fA-F]{6})$/;
70078
70087
  cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
70088
+ cachedMatchers.oklch = modernColorCall("oklch");
70089
+ cachedMatchers.oklab = modernColorCall("oklab");
70090
+ cachedMatchers.lab = modernColorCall("lab");
70091
+ cachedMatchers.lch = modernColorCall("lch");
70092
+ cachedMatchers.hwb = modernColorCall("hwb");
70079
70093
  }
70080
70094
  return cachedMatchers;
70081
70095
  }
@@ -70139,6 +70153,96 @@ function parsePercentage(str) {
70139
70153
  }
70140
70154
  return int / 100;
70141
70155
  }
70156
+ function parseModernComponent(str, percentScale) {
70157
+ if (str === "none")
70158
+ return 0;
70159
+ if (str.endsWith("%")) {
70160
+ return Number.parseFloat(str) / 100 * percentScale;
70161
+ }
70162
+ return Number.parseFloat(str);
70163
+ }
70164
+ function parseHueAngle(str) {
70165
+ if (str === "none")
70166
+ return 0;
70167
+ if (str.endsWith("rad")) {
70168
+ return Number.parseFloat(str) * 180 / Math.PI;
70169
+ }
70170
+ if (str.endsWith("grad"))
70171
+ return Number.parseFloat(str) * 0.9;
70172
+ if (str.endsWith("turn"))
70173
+ return Number.parseFloat(str) * 360;
70174
+ return Number.parseFloat(str);
70175
+ }
70176
+ function parseModernAlpha(str) {
70177
+ if (str === undefined || str === "none")
70178
+ return 1;
70179
+ if (str.endsWith("%")) {
70180
+ return Math.max(0, Math.min(1, Number.parseFloat(str) / 100));
70181
+ }
70182
+ return Math.max(0, Math.min(1, Number.parseFloat(str)));
70183
+ }
70184
+ function linearToSrgb(c) {
70185
+ if (c <= 0.0031308)
70186
+ return 12.92 * c;
70187
+ return 1.055 * c ** (1 / 2.4) - 0.055;
70188
+ }
70189
+ function clamp01(v) {
70190
+ return Math.max(0, Math.min(1, v));
70191
+ }
70192
+ function rgbFloatToInt(r, g, b, alpha) {
70193
+ const ri = Math.round(clamp01(r) * 255);
70194
+ const gi = Math.round(clamp01(g) * 255);
70195
+ const bi = Math.round(clamp01(b) * 255);
70196
+ const ai = Math.round(clamp01(alpha) * 255);
70197
+ return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
70198
+ }
70199
+ function oklabToSrgb(L, a, b) {
70200
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
70201
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
70202
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
70203
+ const l = l_ * l_ * l_;
70204
+ const m = m_ * m_ * m_;
70205
+ const s = s_ * s_ * s_;
70206
+ const rLin = 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
70207
+ const gLin = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
70208
+ const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
70209
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
70210
+ }
70211
+ function labToSrgb(L, a, b) {
70212
+ const epsilon = 216 / 24389;
70213
+ const kappa = 24389 / 27;
70214
+ const Xn = 0.95047;
70215
+ const Yn = 1;
70216
+ const Zn = 1.08883;
70217
+ const fy = (L + 16) / 116;
70218
+ const fx = a / 500 + fy;
70219
+ const fz = fy - b / 200;
70220
+ const fx3 = fx * fx * fx;
70221
+ const fz3 = fz * fz * fz;
70222
+ const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
70223
+ const yr = L > kappa * epsilon ? ((L + 16) / 116) ** 3 : L / kappa;
70224
+ const zr = fz3 > epsilon ? fz3 : (116 * fz - 16) / kappa;
70225
+ const X = xr * Xn;
70226
+ const Y = yr * Yn;
70227
+ const Z = zr * Zn;
70228
+ const rLin = 3.2404542 * X - 1.5371385 * Y - 0.4985314 * Z;
70229
+ const gLin = -0.969266 * X + 1.8760108 * Y + 0.041556 * Z;
70230
+ const bLin = 0.0556434 * X - 0.2040259 * Y + 1.0572252 * Z;
70231
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
70232
+ }
70233
+ function hwbToSrgb(h, w, bk) {
70234
+ if (w + bk >= 1) {
70235
+ const gray = w / (w + bk);
70236
+ return [gray, gray, gray];
70237
+ }
70238
+ const q = 1;
70239
+ const p = 0;
70240
+ const r = hue2rgb(p, q, h + 1 / 3);
70241
+ const g = hue2rgb(p, q, h);
70242
+ const bl = hue2rgb(p, q, h - 1 / 3);
70243
+ const factor = 1 - w - bk;
70244
+ return [r * factor + w, g * factor + w, bl * factor + w];
70245
+ }
70142
70246
  var colorNames = {
70143
70247
  transparent: 0,
70144
70248
  aliceblue: 4042850303,
@@ -70337,6 +70441,58 @@ function normalizeColor(color) {
70337
70441
  return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0;
70338
70442
  }
70339
70443
  }
70444
+ if (matchers.oklch) {
70445
+ if (match = matchers.oklch.exec(color)) {
70446
+ const L = parseModernComponent(match[1], 1);
70447
+ const C = parseModernComponent(match[2], 0.4);
70448
+ const H = parseHueAngle(match[3]);
70449
+ const alpha = parseModernAlpha(match[4]);
70450
+ const hRad = H * Math.PI / 180;
70451
+ const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
70452
+ return rgbFloatToInt(r, g, b, alpha);
70453
+ }
70454
+ }
70455
+ if (matchers.oklab) {
70456
+ if (match = matchers.oklab.exec(color)) {
70457
+ const L = parseModernComponent(match[1], 1);
70458
+ const a = parseModernComponent(match[2], 0.4);
70459
+ const b = parseModernComponent(match[3], 0.4);
70460
+ const alpha = parseModernAlpha(match[4]);
70461
+ const [r, g, bl] = oklabToSrgb(L, a, b);
70462
+ return rgbFloatToInt(r, g, bl, alpha);
70463
+ }
70464
+ }
70465
+ if (matchers.lab) {
70466
+ if (match = matchers.lab.exec(color)) {
70467
+ const L = parseModernComponent(match[1], 100);
70468
+ const a = parseModernComponent(match[2], 125);
70469
+ const b = parseModernComponent(match[3], 125);
70470
+ const alpha = parseModernAlpha(match[4]);
70471
+ const [r, g, bl] = labToSrgb(L, a, b);
70472
+ return rgbFloatToInt(r, g, bl, alpha);
70473
+ }
70474
+ }
70475
+ if (matchers.lch) {
70476
+ if (match = matchers.lch.exec(color)) {
70477
+ const L = parseModernComponent(match[1], 100);
70478
+ const C = parseModernComponent(match[2], 150);
70479
+ const H = parseHueAngle(match[3]);
70480
+ const alpha = parseModernAlpha(match[4]);
70481
+ const hRad = H * Math.PI / 180;
70482
+ const [r, g, bl] = labToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
70483
+ return rgbFloatToInt(r, g, bl, alpha);
70484
+ }
70485
+ }
70486
+ if (matchers.hwb) {
70487
+ if (match = matchers.hwb.exec(color)) {
70488
+ const H = parseHueAngle(match[1]);
70489
+ const W = parseModernComponent(match[2], 1);
70490
+ const B = parseModernComponent(match[3], 1);
70491
+ const alpha = parseModernAlpha(match[4]);
70492
+ const [r, g, bl] = hwbToSrgb(H / 360, W, B);
70493
+ return rgbFloatToInt(r, g, bl, alpha);
70494
+ }
70495
+ }
70340
70496
  throw new Error(`invalid color string ${color} provided`);
70341
70497
  }
70342
70498
  function processColor(color) {
@@ -70381,6 +70537,7 @@ var validCodecs = [
70381
70537
  "h265",
70382
70538
  "vp8",
70383
70539
  "vp9",
70540
+ "av1",
70384
70541
  "mp3",
70385
70542
  "aac",
70386
70543
  "wav",
@@ -70578,7 +70735,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
70578
70735
  }
70579
70736
  }
70580
70737
  };
70581
- var VERSION = "4.0.438";
70738
+ var VERSION = "4.0.440";
70582
70739
  var isColorSupported = () => {
70583
70740
  const env = process.env || {};
70584
70741
  const isForceDisabled = "NO_COLOR" in env;
@@ -71313,6 +71470,10 @@ var support = {
71313
71470
  video: true,
71314
71471
  audio: true
71315
71472
  },
71473
+ av1: {
71474
+ video: true,
71475
+ audio: true
71476
+ },
71316
71477
  mp3: {
71317
71478
  audio: true,
71318
71479
  video: false
@@ -71352,6 +71513,7 @@ var validCodecs2 = [
71352
71513
  "h265",
71353
71514
  "vp8",
71354
71515
  "vp9",
71516
+ "av1",
71355
71517
  "mp3",
71356
71518
  "aac",
71357
71519
  "wav",
@@ -71407,6 +71569,14 @@ var defaultFileExtensionMap = {
71407
71569
  "pcm-16": { possible: ["mkv"], default: "mkv" }
71408
71570
  }
71409
71571
  },
71572
+ av1: {
71573
+ default: "mp4",
71574
+ forAudioCodec: {
71575
+ aac: { possible: ["mp4", "mkv"], default: "mp4" },
71576
+ opus: { possible: ["webm", "mkv"], default: "webm" },
71577
+ "pcm-16": { possible: ["mkv"], default: "mkv" }
71578
+ }
71579
+ },
71410
71580
  mp3: {
71411
71581
  default: "mp3",
71412
71582
  forAudioCodec: {
@@ -71602,6 +71772,7 @@ var supportedAudioCodecs = {
71602
71772
  avi: [],
71603
71773
  gif: [],
71604
71774
  h265: ["aac", "pcm-16"],
71775
+ av1: ["aac", "opus", "pcm-16"],
71605
71776
  mp3: ["mp3", "pcm-16"],
71606
71777
  prores: ["aac", "pcm-16"],
71607
71778
  vp8: ["opus", "pcm-16"],
@@ -71637,6 +71808,10 @@ var defaultAudioCodecs = {
71637
71808
  lossless: "pcm-16",
71638
71809
  compressed: "aac"
71639
71810
  },
71811
+ av1: {
71812
+ lossless: "pcm-16",
71813
+ compressed: "aac"
71814
+ },
71640
71815
  mp3: {
71641
71816
  lossless: "pcm-16",
71642
71817
  compressed: "mp3"
@@ -69398,6 +69398,10 @@ var PERCENTAGE = NUMBER + "%";
69398
69398
  function call(...args) {
69399
69399
  return "\\(\\s*(" + args.join(")\\s*,\\s*(") + ")\\s*\\)";
69400
69400
  }
69401
+ var MODERN_VALUE = "(?:none|[-+]?\\d*\\.?\\d+(?:%|deg|rad|grad|turn)?)";
69402
+ function modernColorCall(name) {
69403
+ return new RegExp(name + "\\(\\s*(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")(?:\\s*\\/\\s*(" + MODERN_VALUE + "))?\\s*\\)");
69404
+ }
69401
69405
  function getMatchers() {
69402
69406
  const cachedMatchers = {
69403
69407
  rgb: undefined,
@@ -69408,7 +69412,12 @@ function getMatchers() {
69408
69412
  hex4: undefined,
69409
69413
  hex5: undefined,
69410
69414
  hex6: undefined,
69411
- hex8: undefined
69415
+ hex8: undefined,
69416
+ oklch: undefined,
69417
+ oklab: undefined,
69418
+ lab: undefined,
69419
+ lch: undefined,
69420
+ hwb: undefined
69412
69421
  };
69413
69422
  if (cachedMatchers.rgb === undefined) {
69414
69423
  cachedMatchers.rgb = new RegExp("rgb" + call(NUMBER, NUMBER, NUMBER));
@@ -69419,6 +69428,11 @@ function getMatchers() {
69419
69428
  cachedMatchers.hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
69420
69429
  cachedMatchers.hex6 = /^#([0-9a-fA-F]{6})$/;
69421
69430
  cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
69431
+ cachedMatchers.oklch = modernColorCall("oklch");
69432
+ cachedMatchers.oklab = modernColorCall("oklab");
69433
+ cachedMatchers.lab = modernColorCall("lab");
69434
+ cachedMatchers.lch = modernColorCall("lch");
69435
+ cachedMatchers.hwb = modernColorCall("hwb");
69422
69436
  }
69423
69437
  return cachedMatchers;
69424
69438
  }
@@ -69482,6 +69496,96 @@ function parsePercentage(str) {
69482
69496
  }
69483
69497
  return int / 100;
69484
69498
  }
69499
+ function parseModernComponent(str, percentScale) {
69500
+ if (str === "none")
69501
+ return 0;
69502
+ if (str.endsWith("%")) {
69503
+ return Number.parseFloat(str) / 100 * percentScale;
69504
+ }
69505
+ return Number.parseFloat(str);
69506
+ }
69507
+ function parseHueAngle(str) {
69508
+ if (str === "none")
69509
+ return 0;
69510
+ if (str.endsWith("rad")) {
69511
+ return Number.parseFloat(str) * 180 / Math.PI;
69512
+ }
69513
+ if (str.endsWith("grad"))
69514
+ return Number.parseFloat(str) * 0.9;
69515
+ if (str.endsWith("turn"))
69516
+ return Number.parseFloat(str) * 360;
69517
+ return Number.parseFloat(str);
69518
+ }
69519
+ function parseModernAlpha(str) {
69520
+ if (str === undefined || str === "none")
69521
+ return 1;
69522
+ if (str.endsWith("%")) {
69523
+ return Math.max(0, Math.min(1, Number.parseFloat(str) / 100));
69524
+ }
69525
+ return Math.max(0, Math.min(1, Number.parseFloat(str)));
69526
+ }
69527
+ function linearToSrgb(c) {
69528
+ if (c <= 0.0031308)
69529
+ return 12.92 * c;
69530
+ return 1.055 * c ** (1 / 2.4) - 0.055;
69531
+ }
69532
+ function clamp01(v) {
69533
+ return Math.max(0, Math.min(1, v));
69534
+ }
69535
+ function rgbFloatToInt(r, g, b, alpha) {
69536
+ const ri = Math.round(clamp01(r) * 255);
69537
+ const gi = Math.round(clamp01(g) * 255);
69538
+ const bi = Math.round(clamp01(b) * 255);
69539
+ const ai = Math.round(clamp01(alpha) * 255);
69540
+ return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
69541
+ }
69542
+ function oklabToSrgb(L, a, b) {
69543
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
69544
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
69545
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
69546
+ const l = l_ * l_ * l_;
69547
+ const m = m_ * m_ * m_;
69548
+ const s = s_ * s_ * s_;
69549
+ const rLin = 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
69550
+ const gLin = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
69551
+ const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
69552
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
69553
+ }
69554
+ function labToSrgb(L, a, b) {
69555
+ const epsilon = 216 / 24389;
69556
+ const kappa = 24389 / 27;
69557
+ const Xn = 0.95047;
69558
+ const Yn = 1;
69559
+ const Zn = 1.08883;
69560
+ const fy = (L + 16) / 116;
69561
+ const fx = a / 500 + fy;
69562
+ const fz = fy - b / 200;
69563
+ const fx3 = fx * fx * fx;
69564
+ const fz3 = fz * fz * fz;
69565
+ const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
69566
+ const yr = L > kappa * epsilon ? ((L + 16) / 116) ** 3 : L / kappa;
69567
+ const zr = fz3 > epsilon ? fz3 : (116 * fz - 16) / kappa;
69568
+ const X = xr * Xn;
69569
+ const Y = yr * Yn;
69570
+ const Z = zr * Zn;
69571
+ const rLin = 3.2404542 * X - 1.5371385 * Y - 0.4985314 * Z;
69572
+ const gLin = -0.969266 * X + 1.8760108 * Y + 0.041556 * Z;
69573
+ const bLin = 0.0556434 * X - 0.2040259 * Y + 1.0572252 * Z;
69574
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
69575
+ }
69576
+ function hwbToSrgb(h, w, bk) {
69577
+ if (w + bk >= 1) {
69578
+ const gray = w / (w + bk);
69579
+ return [gray, gray, gray];
69580
+ }
69581
+ const q = 1;
69582
+ const p = 0;
69583
+ const r = hue2rgb(p, q, h + 1 / 3);
69584
+ const g = hue2rgb(p, q, h);
69585
+ const bl = hue2rgb(p, q, h - 1 / 3);
69586
+ const factor = 1 - w - bk;
69587
+ return [r * factor + w, g * factor + w, bl * factor + w];
69588
+ }
69485
69589
  var colorNames = {
69486
69590
  transparent: 0,
69487
69591
  aliceblue: 4042850303,
@@ -69680,6 +69784,58 @@ function normalizeColor(color) {
69680
69784
  return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0;
69681
69785
  }
69682
69786
  }
69787
+ if (matchers.oklch) {
69788
+ if (match = matchers.oklch.exec(color)) {
69789
+ const L = parseModernComponent(match[1], 1);
69790
+ const C = parseModernComponent(match[2], 0.4);
69791
+ const H = parseHueAngle(match[3]);
69792
+ const alpha = parseModernAlpha(match[4]);
69793
+ const hRad = H * Math.PI / 180;
69794
+ const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
69795
+ return rgbFloatToInt(r, g, b, alpha);
69796
+ }
69797
+ }
69798
+ if (matchers.oklab) {
69799
+ if (match = matchers.oklab.exec(color)) {
69800
+ const L = parseModernComponent(match[1], 1);
69801
+ const a = parseModernComponent(match[2], 0.4);
69802
+ const b = parseModernComponent(match[3], 0.4);
69803
+ const alpha = parseModernAlpha(match[4]);
69804
+ const [r, g, bl] = oklabToSrgb(L, a, b);
69805
+ return rgbFloatToInt(r, g, bl, alpha);
69806
+ }
69807
+ }
69808
+ if (matchers.lab) {
69809
+ if (match = matchers.lab.exec(color)) {
69810
+ const L = parseModernComponent(match[1], 100);
69811
+ const a = parseModernComponent(match[2], 125);
69812
+ const b = parseModernComponent(match[3], 125);
69813
+ const alpha = parseModernAlpha(match[4]);
69814
+ const [r, g, bl] = labToSrgb(L, a, b);
69815
+ return rgbFloatToInt(r, g, bl, alpha);
69816
+ }
69817
+ }
69818
+ if (matchers.lch) {
69819
+ if (match = matchers.lch.exec(color)) {
69820
+ const L = parseModernComponent(match[1], 100);
69821
+ const C = parseModernComponent(match[2], 150);
69822
+ const H = parseHueAngle(match[3]);
69823
+ const alpha = parseModernAlpha(match[4]);
69824
+ const hRad = H * Math.PI / 180;
69825
+ const [r, g, bl] = labToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
69826
+ return rgbFloatToInt(r, g, bl, alpha);
69827
+ }
69828
+ }
69829
+ if (matchers.hwb) {
69830
+ if (match = matchers.hwb.exec(color)) {
69831
+ const H = parseHueAngle(match[1]);
69832
+ const W = parseModernComponent(match[2], 1);
69833
+ const B = parseModernComponent(match[3], 1);
69834
+ const alpha = parseModernAlpha(match[4]);
69835
+ const [r, g, bl] = hwbToSrgb(H / 360, W, B);
69836
+ return rgbFloatToInt(r, g, bl, alpha);
69837
+ }
69838
+ }
69683
69839
  throw new Error(`invalid color string ${color} provided`);
69684
69840
  }
69685
69841
  function processColor(color) {
@@ -69724,6 +69880,7 @@ var validCodecs = [
69724
69880
  "h265",
69725
69881
  "vp8",
69726
69882
  "vp9",
69883
+ "av1",
69727
69884
  "mp3",
69728
69885
  "aac",
69729
69886
  "wav",
@@ -69921,7 +70078,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
69921
70078
  }
69922
70079
  }
69923
70080
  };
69924
- var VERSION = "4.0.438";
70081
+ var VERSION = "4.0.440";
69925
70082
  var isColorSupported = () => {
69926
70083
  const env = process.env || {};
69927
70084
  const isForceDisabled = "NO_COLOR" in env;
@@ -70656,6 +70813,10 @@ var support = {
70656
70813
  video: true,
70657
70814
  audio: true
70658
70815
  },
70816
+ av1: {
70817
+ video: true,
70818
+ audio: true
70819
+ },
70659
70820
  mp3: {
70660
70821
  audio: true,
70661
70822
  video: false
@@ -70695,6 +70856,7 @@ var validCodecs2 = [
70695
70856
  "h265",
70696
70857
  "vp8",
70697
70858
  "vp9",
70859
+ "av1",
70698
70860
  "mp3",
70699
70861
  "aac",
70700
70862
  "wav",
@@ -70750,6 +70912,14 @@ var defaultFileExtensionMap = {
70750
70912
  "pcm-16": { possible: ["mkv"], default: "mkv" }
70751
70913
  }
70752
70914
  },
70915
+ av1: {
70916
+ default: "mp4",
70917
+ forAudioCodec: {
70918
+ aac: { possible: ["mp4", "mkv"], default: "mp4" },
70919
+ opus: { possible: ["webm", "mkv"], default: "webm" },
70920
+ "pcm-16": { possible: ["mkv"], default: "mkv" }
70921
+ }
70922
+ },
70753
70923
  mp3: {
70754
70924
  default: "mp3",
70755
70925
  forAudioCodec: {
@@ -70945,6 +71115,7 @@ var supportedAudioCodecs = {
70945
71115
  avi: [],
70946
71116
  gif: [],
70947
71117
  h265: ["aac", "pcm-16"],
71118
+ av1: ["aac", "opus", "pcm-16"],
70948
71119
  mp3: ["mp3", "pcm-16"],
70949
71120
  prores: ["aac", "pcm-16"],
70950
71121
  vp8: ["opus", "pcm-16"],
@@ -70980,6 +71151,10 @@ var defaultAudioCodecs = {
70980
71151
  lossless: "pcm-16",
70981
71152
  compressed: "aac"
70982
71153
  },
71154
+ av1: {
71155
+ lossless: "pcm-16",
71156
+ compressed: "aac"
71157
+ },
70983
71158
  mp3: {
70984
71159
  lossless: "pcm-16",
70985
71160
  compressed: "mp3"
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda-client"
4
4
  },
5
5
  "name": "@remotion/lambda-client",
6
- "version": "4.0.438",
6
+ "version": "4.0.440",
7
7
  "main": "dist/cjs/index.js",
8
8
  "sideEffects": false,
9
9
  "scripts": {
@@ -27,10 +27,10 @@
27
27
  "@aws-sdk/lib-storage": "3.986.0",
28
28
  "mime-types": "2.1.34",
29
29
  "@aws-sdk/credential-provider-ini": "3.972.5",
30
- "@remotion/serverless-client": "4.0.438",
30
+ "@remotion/serverless-client": "4.0.440",
31
31
  "@types/express": "^5.0.0",
32
32
  "express": "4.21.0",
33
- "@remotion/eslint-config-internal": "4.0.438",
33
+ "@remotion/eslint-config-internal": "4.0.440",
34
34
  "eslint": "9.19.0",
35
35
  "next": "16.1.7",
36
36
  "@types/mime-types": "2.1.1",