@remotion/vercel 4.0.448 → 4.0.449

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.
@@ -1829,6 +1829,7 @@ try {
1829
1829
  mediaCacheSizeInBytes: config.mediaCacheSizeInBytes,
1830
1830
  offthreadVideoThreads: config.offthreadVideoThreads,
1831
1831
  repro: config.repro,
1832
+ sampleRate: config.sampleRate,
1832
1833
  puppeteerInstance: browser,
1833
1834
  onProgress: (progress) => {
1834
1835
  console.log(JSON.stringify({
@@ -2201,7 +2202,8 @@ async function renderMediaOnVercel({
2201
2202
  hardwareAcceleration = "disable",
2202
2203
  offthreadVideoCacheSizeInBytes,
2203
2204
  mediaCacheSizeInBytes,
2204
- offthreadVideoThreads
2205
+ offthreadVideoThreads,
2206
+ sampleRate
2205
2207
  }) {
2206
2208
  const serveUrl = `/vercel/sandbox/${REMOTION_SANDBOX_BUNDLE_DIR}`;
2207
2209
  const renderConfig = {
@@ -2246,7 +2248,8 @@ async function renderMediaOnVercel({
2246
2248
  chromeMode: "headless-shell",
2247
2249
  browserExecutable: null,
2248
2250
  binariesDirectory: null,
2249
- repro: false
2251
+ repro: false,
2252
+ sampleRate: sampleRate ?? 48000
2250
2253
  };
2251
2254
  const renderCmd = await sandbox.runCommand({
2252
2255
  cmd: "node",
@@ -1,6 +1,6 @@
1
1
  import type { Sandbox } from '@vercel/sandbox';
2
2
  import type { AudioCodec, Bitrate, ChromiumOptions, Codec, ColorSpace, FrameRange, HardwareAccelerationOption, LogLevel, PixelFormat, ProResProfile, RenderMediaOnVercelProgress, VideoImageFormat, X264Preset } from './types';
3
- export declare function renderMediaOnVercel({ sandbox, compositionId, inputProps, onProgress, outputFile, codec, crf, imageFormat, pixelFormat, envVariables, frameRange, everyNthFrame, proResProfile, chromiumOptions, scale, preferLossless, enforceAudioTrack, disallowParallelEncoding, concurrency, metadata, licenseKey, videoBitrate, audioBitrate, encodingMaxRate, encodingBufferSize, muted, numberOfGifLoops, x264Preset, colorSpace, jpegQuality, audioCodec, logLevel, timeoutInMilliseconds, forSeamlessAacConcatenation, separateAudioTo, hardwareAcceleration, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, offthreadVideoThreads }: {
3
+ export declare function renderMediaOnVercel({ sandbox, compositionId, inputProps, onProgress, outputFile, codec, crf, imageFormat, pixelFormat, envVariables, frameRange, everyNthFrame, proResProfile, chromiumOptions, scale, preferLossless, enforceAudioTrack, disallowParallelEncoding, concurrency, metadata, licenseKey, videoBitrate, audioBitrate, encodingMaxRate, encodingBufferSize, muted, numberOfGifLoops, x264Preset, colorSpace, jpegQuality, audioCodec, logLevel, timeoutInMilliseconds, forSeamlessAacConcatenation, separateAudioTo, hardwareAcceleration, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, offthreadVideoThreads, sampleRate }: {
4
4
  sandbox: Sandbox;
5
5
  compositionId: string;
6
6
  inputProps: Record<string, unknown>;
@@ -40,6 +40,7 @@ export declare function renderMediaOnVercel({ sandbox, compositionId, inputProps
40
40
  offthreadVideoCacheSizeInBytes?: number | null;
41
41
  mediaCacheSizeInBytes?: number | null;
42
42
  offthreadVideoThreads?: number | null;
43
+ sampleRate?: number;
43
44
  }): Promise<{
44
45
  sandboxFilePath: string;
45
46
  contentType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/vercel",
3
- "version": "4.0.448",
3
+ "version": "4.0.449",
4
4
  "description": "Render Remotion videos on Vercel Sandbox",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "format": "oxfmt src",
16
16
  "lint": "eslint src",
17
17
  "watch": "tsgo -w",
18
- "make": "bun --env-file=../.env.bundle bundle.ts && tsgo"
18
+ "make": "bun --env-file=../.env.bundle bundle.ts && tsgo && tsgo -p tsconfig.scripts.json"
19
19
  },
20
20
  "author": "Jonny Burger <jonny@remotion.dev>",
21
21
  "contributors": [],
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "../tsconfig.settings.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "skipLibCheck": true,
6
+ "target": "ES2022",
7
+ "module": "es2022",
8
+ "moduleResolution": "bundler",
9
+ "noEmit": true,
10
+ "composite": false,
11
+ "declaration": false
12
+ },
13
+ "include": ["src/scripts"]
14
+ }