@remotion/studio 4.0.447 → 4.0.448

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.
@@ -155,7 +155,8 @@ var renderContent = (Root) => {
155
155
  defaultOutName: bundleMode.compositionDefaultOutName,
156
156
  defaultVideoImageFormat: bundleMode.compositionDefaultVideoImageFormat,
157
157
  defaultPixelFormat: bundleMode.compositionDefaultPixelFormat,
158
- defaultProResProfile: bundleMode.compositionDefaultProResProfile
158
+ defaultProResProfile: bundleMode.compositionDefaultProResProfile,
159
+ defaultSampleRate: bundleMode.compositionDefaultSampleRate
159
160
  },
160
161
  initialCompositions: [],
161
162
  children: /* @__PURE__ */ jsx(Internals.RemotionRootContexts, {
@@ -208,7 +209,7 @@ var renderContent = (Root) => {
208
209
  renderToDOM(/* @__PURE__ */ jsx("div", {
209
210
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
210
211
  }));
211
- import("./chunk-ase93hmz.js").then(({ StudioInternals }) => {
212
+ import("./chunk-9s6mbe6g.js").then(({ StudioInternals }) => {
212
213
  window.remotion_isStudio = true;
213
214
  window.remotion_isReadOnlyStudio = true;
214
215
  window.remotion_inputProps = "{}";
@@ -10,7 +10,7 @@ export declare const normalizeServeUrlForRenderCommand: ({ locationHref, composi
10
10
  type StrictRequired<T> = {
11
11
  [K in keyof T]-?: Exclude<T[K], undefined>;
12
12
  };
13
- type RenderMediaCommandOptions = Omit<StrictRequired<Pick<RenderMediaOptions, 'codec' | 'crf' | 'concurrency' | 'disallowParallelEncoding' | 'muted' | 'enforceAudioTrack' | 'everyNthFrame' | 'numberOfGifLoops' | 'colorSpace' | 'scale' | 'logLevel' | 'repro' | 'metadata' | 'jpegQuality' | 'pixelFormat' | 'proResProfile' | 'x264Preset' | 'audioCodec' | 'forSeamlessAacConcatenation' | 'separateAudioTo' | 'hardwareAcceleration' | 'chromeMode' | 'offthreadVideoCacheSizeInBytes' | 'offthreadVideoThreads' | 'mediaCacheSizeInBytes' | 'audioBitrate' | 'videoBitrate' | 'encodingMaxRate' | 'encodingBufferSize'>>, 'audioBitrate' | 'videoBitrate' | 'encodingMaxRate' | 'encodingBufferSize' | 'jpegQuality' | 'proResProfile'> & {
13
+ type RenderMediaCommandOptions = Omit<StrictRequired<Pick<RenderMediaOptions, 'codec' | 'crf' | 'concurrency' | 'disallowParallelEncoding' | 'muted' | 'enforceAudioTrack' | 'everyNthFrame' | 'numberOfGifLoops' | 'colorSpace' | 'scale' | 'logLevel' | 'repro' | 'metadata' | 'jpegQuality' | 'pixelFormat' | 'proResProfile' | 'x264Preset' | 'audioCodec' | 'forSeamlessAacConcatenation' | 'separateAudioTo' | 'hardwareAcceleration' | 'chromeMode' | 'offthreadVideoCacheSizeInBytes' | 'offthreadVideoThreads' | 'mediaCacheSizeInBytes' | 'audioBitrate' | 'videoBitrate' | 'encodingMaxRate' | 'encodingBufferSize' | 'sampleRate'>>, 'audioBitrate' | 'videoBitrate' | 'encodingMaxRate' | 'encodingBufferSize' | 'jpegQuality' | 'proResProfile'> & {
14
14
  audioBitrate: string | null;
15
15
  videoBitrate: string | null;
16
16
  encodingMaxRate: string | null;
@@ -44,8 +44,9 @@ type ReadOnlyStudioRenderCommandInput = RenderMediaCommandOptions & RenderStillC
44
44
  multiProcessOnLinux: boolean;
45
45
  darkMode: boolean;
46
46
  beepOnFinish: boolean;
47
+ sampleRate: number;
47
48
  envVariables: Record<string, string>;
48
49
  inputProps: Record<string, unknown>;
49
50
  };
50
- export declare const makeReadOnlyStudioRenderCommand: ({ remotionVersion, locationHref, compositionId, outName, renderMode, renderDefaults, durationInFrames, concurrency, frame, startFrame, endFrame, stillImageFormat, sequenceImageFormat, videoImageFormat, jpegQuality, codec, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, crf, videoBitrate, audioBitrate, audioCodec, everyNthFrame, numberOfGifLoops, disallowParallelEncoding, encodingBufferSize, encodingMaxRate, forSeamlessAacConcatenation, separateAudioTo, colorSpace, scale, logLevel, delayRenderTimeout, hardwareAcceleration, chromeMode, headless, disableWebSecurity, ignoreCertificateErrors, gl, userAgent, multiProcessOnLinux, darkMode, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, mediaCacheSizeInBytes, beepOnFinish, repro, metadata, envVariables, inputProps, }: ReadOnlyStudioRenderCommandInput) => string;
51
+ export declare const makeReadOnlyStudioRenderCommand: ({ remotionVersion, locationHref, compositionId, outName, renderMode, renderDefaults, durationInFrames, concurrency, frame, startFrame, endFrame, stillImageFormat, sequenceImageFormat, videoImageFormat, jpegQuality, codec, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, crf, videoBitrate, audioBitrate, audioCodec, everyNthFrame, numberOfGifLoops, disallowParallelEncoding, encodingBufferSize, encodingMaxRate, forSeamlessAacConcatenation, separateAudioTo, colorSpace, scale, logLevel, delayRenderTimeout, hardwareAcceleration, chromeMode, headless, disableWebSecurity, ignoreCertificateErrors, gl, userAgent, multiProcessOnLinux, darkMode, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, mediaCacheSizeInBytes, beepOnFinish, repro, metadata, sampleRate, envVariables, inputProps, }: ReadOnlyStudioRenderCommandInput) => string;
51
52
  export {};
@@ -80,7 +80,7 @@ const renderMediaValueFlag = (option, value, defaultValue) => {
80
80
  const renderMediaBooleanFlag = (option, value, defaultValue) => {
81
81
  return booleanFlag(getRenderMediaFlag(option), value, defaultValue);
82
82
  };
83
- const makeReadOnlyStudioRenderCommand = ({ remotionVersion, locationHref, compositionId, outName, renderMode, renderDefaults, durationInFrames, concurrency, frame, startFrame, endFrame, stillImageFormat, sequenceImageFormat, videoImageFormat, jpegQuality, codec, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, crf, videoBitrate, audioBitrate, audioCodec, everyNthFrame, numberOfGifLoops, disallowParallelEncoding, encodingBufferSize, encodingMaxRate, forSeamlessAacConcatenation, separateAudioTo, colorSpace, scale, logLevel, delayRenderTimeout, hardwareAcceleration, chromeMode, headless, disableWebSecurity, ignoreCertificateErrors, gl, userAgent, multiProcessOnLinux, darkMode, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, mediaCacheSizeInBytes, beepOnFinish, repro, metadata, envVariables, inputProps, }) => {
83
+ const makeReadOnlyStudioRenderCommand = ({ remotionVersion, locationHref, compositionId, outName, renderMode, renderDefaults, durationInFrames, concurrency, frame, startFrame, endFrame, stillImageFormat, sequenceImageFormat, videoImageFormat, jpegQuality, codec, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, crf, videoBitrate, audioBitrate, audioCodec, everyNthFrame, numberOfGifLoops, disallowParallelEncoding, encodingBufferSize, encodingMaxRate, forSeamlessAacConcatenation, separateAudioTo, colorSpace, scale, logLevel, delayRenderTimeout, hardwareAcceleration, chromeMode, headless, disableWebSecurity, ignoreCertificateErrors, gl, userAgent, multiProcessOnLinux, darkMode, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, mediaCacheSizeInBytes, beepOnFinish, repro, metadata, sampleRate, envVariables, inputProps, }) => {
84
84
  var _a;
85
85
  const serveUrl = (0, exports.normalizeServeUrlForRenderCommand)({
86
86
  locationHref,
@@ -168,6 +168,9 @@ const makeReadOnlyStudioRenderCommand = ({ remotionVersion, locationHref, compos
168
168
  if (audioCodec !== defaultAudioCodec) {
169
169
  addFlagWithValue(flags, getRenderMediaFlag('audioCodec'), audioCodec);
170
170
  }
171
+ addValueFlagsIfChanged(flags, [
172
+ renderMediaValueFlag('sampleRate', sampleRate, renderDefaults.sampleRate),
173
+ ]);
171
174
  }
172
175
  addTrueBooleanFlagsIfChanged(flags, [
173
176
  renderMediaBooleanFlag('disallowParallelEncoding', disallowParallelEncoding, false),
@@ -55,6 +55,7 @@ const makeRetryPayload = (job) => {
55
55
  defaulMetadata: job.metadata,
56
56
  renderTypeOfLastRender: 'still',
57
57
  initialHardwareAcceleration: defaults.hardwareAcceleration,
58
+ initialSampleRate: defaults.sampleRate,
58
59
  initialChromeMode: job.chromeMode,
59
60
  initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
60
61
  renderDefaults: defaults,
@@ -108,6 +109,7 @@ const makeRetryPayload = (job) => {
108
109
  defaulMetadata: job.metadata,
109
110
  renderTypeOfLastRender: 'sequence',
110
111
  initialHardwareAcceleration: defaults.hardwareAcceleration,
112
+ initialSampleRate: defaults.sampleRate,
111
113
  initialChromeMode: job.chromeMode,
112
114
  initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
113
115
  renderDefaults: defaults,
@@ -161,6 +163,7 @@ const makeRetryPayload = (job) => {
161
163
  defaulMetadata: job.metadata,
162
164
  renderTypeOfLastRender: 'video',
163
165
  initialHardwareAcceleration: job.hardwareAcceleration,
166
+ initialSampleRate: job.sampleRate,
164
167
  initialChromeMode: job.chromeMode,
165
168
  initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
166
169
  renderDefaults: defaults,
@@ -185,6 +185,7 @@ const renderContent = (Root) => {
185
185
  defaultVideoImageFormat: bundleMode.compositionDefaultVideoImageFormat,
186
186
  defaultPixelFormat: bundleMode.compositionDefaultPixelFormat,
187
187
  defaultProResProfile: bundleMode.compositionDefaultProResProfile,
188
+ defaultSampleRate: bundleMode.compositionDefaultSampleRate,
188
189
  }, initialCompositions: [], children: jsx_runtime_1.jsx(remotion_1.Internals.RemotionRootContexts, { frameState: null, audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: (_a = window.remotion_logLevel) !== null && _a !== void 0 ? _a : 'info', numberOfAudioTags: 0, audioLatencyHint: (_b = window.remotion_audioLatencyHint) !== null && _b !== void 0 ? _b : 'interactive', visualModeEnabled: false, children: jsx_runtime_1.jsxs(remotion_1.Internals.RenderAssetManagerProvider, { collectAssets: null, children: [
189
190
  jsx_runtime_1.jsx(Root, {}), jsx_runtime_1.jsx(GetVideoComposition, { state: bundleMode })
190
191
  ] }) }) }));
@@ -70,6 +70,7 @@ export type RenderModalState = {
70
70
  initialEncodingBufferSize: string | null;
71
71
  initialForSeamlessAacConcatenation: boolean;
72
72
  initialHardwareAcceleration: HardwareAccelerationOption;
73
+ initialSampleRate: number;
73
74
  initialBeep: boolean;
74
75
  initialRepro: boolean;
75
76
  initialChromeMode: ChromeMode;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.447",
6
+ "version": "4.0.448",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "semver": "7.5.3",
29
- "remotion": "4.0.447",
30
- "@remotion/player": "4.0.447",
31
- "@remotion/media-utils": "4.0.447",
32
- "@remotion/renderer": "4.0.447",
33
- "@remotion/web-renderer": "4.0.447",
34
- "@remotion/studio-shared": "4.0.447",
35
- "@remotion/zod-types": "4.0.447",
29
+ "remotion": "4.0.448",
30
+ "@remotion/player": "4.0.448",
31
+ "@remotion/media-utils": "4.0.448",
32
+ "@remotion/renderer": "4.0.448",
33
+ "@remotion/web-renderer": "4.0.448",
34
+ "@remotion/studio-shared": "4.0.448",
35
+ "@remotion/zod-types": "4.0.448",
36
36
  "mediabunny": "1.39.2",
37
37
  "memfs": "3.4.3",
38
38
  "source-map": "0.7.3",
@@ -43,7 +43,7 @@
43
43
  "react": "19.2.3",
44
44
  "react-dom": "19.2.3",
45
45
  "@types/semver": "^7.3.4",
46
- "@remotion/eslint-config-internal": "4.0.447",
46
+ "@remotion/eslint-config-internal": "4.0.448",
47
47
  "eslint": "9.19.0",
48
48
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
49
49
  },