Skip to content

🎥 Make videos programmatically with React

type ProResProfile in core

JonnyBurgerc9a25582f5b3
diff --git a/packages/cli/src/config/prores-profile.ts b/packages/cli/src/config/prores-profile.ts
index 421ae77533..63dfdc817d 100644
--- a/packages/cli/src/config/prores-profile.ts
+++ b/packages/cli/src/config/prores-profile.ts
@@ -1,11 +1,15 @@
-import type {ProResProfile} from '@remotion/renderer';
+import type {_InternalTypes} from 'remotion';
-let proResProfile: ProResProfile | undefined;
+let proResProfile: _InternalTypes['ProResProfile'] | undefined;
-export const getProResProfile = (): ProResProfile | undefined => {
+export const getProResProfile = ():
+ | _InternalTypes['ProResProfile']
+ | undefined => {
return proResProfile;
};
-export const setProResProfile = (profile: ProResProfile | undefined) => {
+export const setProResProfile = (
+ profile: _InternalTypes['ProResProfile'] | undefined,
+) => {
proResProfile = profile;
};
diff --git a/packages/cli/src/parse-command-line.ts b/packages/cli/src/parse-command-line.ts
index f7b9990d8c..94467a5ff9 100644
--- a/packages/cli/src/parse-command-line.ts
+++ b/packages/cli/src/parse-command-line.ts
@@ -4,12 +4,12 @@ import type {
Codec,
OpenGlRenderer,
PixelFormat,
- ProResProfile,
StillImageFormat,
VideoImageFormat,
} from '@remotion/renderer';
import type {TypeOfOption} from '@remotion/renderer/client';
import {BrowserSafeApis} from '@remotion/renderer/client';
+import type {_InternalTypes} from 'remotion';
import {Config, ConfigInternals} from './config';
import {Log} from './log';
import {parsedCli} from './parsed-cli';
@@ -39,7 +39,7 @@ export type CommandLineOptions = {
['browser-executable']: BrowserExecutable;
['pixel-format']: PixelFormat;
['image-format']: VideoImageFormat | StillImageFormat;
- ['prores-profile']: ProResProfile;
+ ['prores-profile']: _InternalTypes['ProResProfile'];
[x264Option.cliFlag]: TypeOfOption<typeof x264Option>;
['bundle-cache']: string;
['env-file']: string;
@@ -175,7 +175,7 @@ export const parseCommandLine = () => {
if (parsedCli['prores-profile']) {
Config.setProResProfile(
- String(parsedCli['prores-profile']) as ProResProfile,
+ String(parsedCli['prores-profile']) as _InternalTypes['ProResProfile'],
);
}
diff --git a/packages/cli/src/render-flows/render.ts b/packages/cli/src/render-flows/render.ts
index d38c7bca0e..ee5e4057ec 100644
--- a/packages/cli/src/render-flows/render.ts
+++ b/packages/cli/src/render-flows/render.ts
@@ -14,7 +14,6 @@ import type {
NumberOfGifLoops,
OnLog,
PixelFormat,
- ProResProfile,
RenderMediaOnDownload,
VideoImageFormat,
X264Preset,
@@ -35,6 +34,7 @@ import {formatBytes, type ArtifactProgress} from '@remotion/studio-shared';
import fs, {existsSync} from 'node:fs';
import os from 'node:os';
import path from 'node:path';
+import type {_InternalTypes} from 'remotion';
import {NoReactInternals} from 'remotion/no-react';
import {defaultBrowserDownloadProgress} from '../browser-download-bar';
import {chalk} from '../chalk';
@@ -160,7 +160,7 @@ export const renderVideoFlow = async ({
encodingBufferSize: string | null;
muted: boolean;
enforceAudioTrack: boolean;
- proResProfile: ProResProfile | undefined;
+ proResProfile: _InternalTypes['ProResProfile'] | undefined;
x264Preset: X264Preset | null;
pixelFormat: PixelFormat;
numberOfGifLoops: NumberOfGifLoops;
diff --git a/packages/cloudrun/src/api/render-media-on-cloudrun.ts b/packages/cloudrun/src/api/render-media-on-cloudrun.ts
index fc6bda9c12..a14fbcbbd4 100644
--- a/packages/cloudrun/src/api/render-media-on-cloudrun.ts
+++ b/packages/cloudrun/src/api/render-media-on-cloudrun.ts
@@ -4,12 +4,12 @@ import {
type FrameRange,
type LogLevel,
type PixelFormat,
- type ProResProfile,
type ToOptions,
type VideoImageFormat,
} from '@remotion/renderer';
import {BrowserSafeApis} from '@remotion/renderer/client';
import {wrapWithErrorHandling} from '@remotion/renderer/error-handling';
+import type {_InternalTypes} from 'remotion';
import {NoReactInternals} from 'remotion/no-react';
import {VERSION} from 'remotion/version';
import type {z} from 'zod';
@@ -47,7 +47,7 @@ type InternalRenderMediaOnCloudrun = {
codec: CloudrunCodec;
audioCodec: AudioCodec | undefined;
jpegQuality: number | undefined;
- proResProfile: ProResProfile | undefined;
+ proResProfile: _InternalTypes['ProResProfile'] | undefined;
pixelFormat: PixelFormat | undefined;
imageFormat: VideoImageFormat | undefined;
everyNthFrame: number | undefined;
@@ -84,7 +84,7 @@ export type RenderMediaOnCloudrunInput = {
audioCodec?: AudioCodec;
encodingMaxRate?: string | null;
encodingBufferSize?: string | null;
- proResProfile?: ProResProfile;
+ proResProfile?: _InternalTypes['ProResProfile'];
pixelFormat?: PixelFormat;
imageFormat?: VideoImageFormat;
everyNthFrame?: number;
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index 9513822f40..a4286227b6 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -15,6 +15,7 @@ import {useIsPlayer} from './is-player.js';
import type {LogLevel} from './log.js';
import {checkMultipleRemotionVersions} from './multiple-versions-warning.js';
import {Null} from './Null.js';
+import type {ProResProfile} from './prores-profile.js';
import type {PixelFormat, VideoImageFormat} from './render-types.js';
import {Sequence} from './Sequence.js';
import type {VideoConfig} from './video-config.js';
@@ -255,4 +256,5 @@ export type _InternalTypes = {
AudioOrVideoAsset: AudioOrVideoAsset;
TRenderAsset: TRenderAsset;
LoopDisplay: LoopDisplay;
+ ProResProfile: ProResProfile;
};
diff --git a/packages/core/src/no-react.ts b/packages/core/src/no-react.ts
index d540618a79..c9734af97c 100644
--- a/packages/core/src/no-react.ts
+++ b/packages/core/src/no-react.ts
@@ -26,6 +26,7 @@ import {
} from './input-props-serialization';
import {DATE_TOKEN, FILE_TOKEN} from './input-props-serialization.js';
import {colorNames, processColor} from './interpolate-colors';
+import {proResProfileOptions} from './prores-profile';
import {truthy} from './truthy';
import {ENABLE_V5_BREAKING_CHANGES} from './v5-flag';
import {validateFrame} from './validate-frame';
@@ -62,4 +63,5 @@ export const NoReactInternals = {
DATE_TOKEN,
FILE_TOKEN,
validateCodec,
+ proResProfileOptions,
};
diff --git a/packages/core/src/prores-profile.ts b/packages/core/src/prores-profile.ts
new file mode 100644
index 0000000000..6294faae8d
--- /dev/null
+++ b/packages/core/src/prores-profile.ts
@@ -0,0 +1,10 @@
+export const proResProfileOptions = [
+ '4444-xq',
+ '4444',
+ 'hq',
+ 'standard',
+ 'light',
+ 'proxy',
+] as const;
+
+export type ProResProfile = (typeof proResProfileOptions)[number];
diff --git a/packages/renderer/src/client.ts b/packages/renderer/src/client.ts
index 0ad7a2f2cf..7379e62551 100644
--- a/packages/renderer/src/client.ts
+++ b/packages/renderer/src/client.ts
@@ -1,3 +1,4 @@
+import {NoReactInternals} from 'remotion/no-react';
import {DEFAULT_TIMEOUT} from './browser/TimeoutSettings';
import {validCodecs} from './codec';
import {
@@ -32,7 +33,6 @@ import {
validPixelFormats,
validPixelFormatsForCodec,
} from './pixel-format';
-import {proResProfileOptions} from './prores-profile';
import {validateOutputFilename} from './validate-output-filename';
export {AvailableOptions, TypeOfOption} from './options';
export {HardwareAccelerationOption} from './options/hardware-acceleration';
@@ -43,7 +43,7 @@ export const BrowserSafeApis = {
validAudioCodecs,
getDefaultCrfForCodec,
getValidCrfRanges,
- proResProfileOptions,
+ proResProfileOptions: NoReactInternals.proResProfileOptions,
x264PresetOptions,
hardwareAccelerationOptions,
validPixelFormats,
diff --git a/packages/renderer/src/get-prores-profile-name.ts b/packages/renderer/src/get-prores-profile-name.ts
index 8adbc64d0e..029a7c0e5d 100644
--- a/packages/renderer/src/get-prores-profile-name.ts
+++ b/packages/renderer/src/get-prores-profile-name.ts
@@ -1,9 +1,9 @@
+import type {_InternalTypes} from 'remotion';
import type {Codec} from './codec';
-import type {ProResProfile} from './prores-profile';
export const getProResProfileName = (
codec: Codec,
- proResProfile: ProResProfile | undefined,
+ proResProfile: _InternalTypes['ProResProfile'] | undefined,
): string | null => {
if (codec !== 'prores') {
return null;
diff --git a/packages/renderer/src/index.ts b/packages/renderer/src/index.ts
index a8411bdb60..4ed3a506ba 100644
--- a/packages/renderer/src/index.ts
+++ b/packages/renderer/src/index.ts
@@ -113,7 +113,6 @@ export {AnyRemotionOption, RemotionOption, ToOptions} from './options/option';
export {X264Preset} from './options/x264-preset';
export {PixelFormat} from './pixel-format';
export {RemotionServer} from './prepare-server';
-export {ProResProfile} from './prores-profile';
export {OnArtifact, RenderFramesOptions, renderFrames} from './render-frames';
export {
InternalRenderMediaOptions,
diff --git a/packages/renderer/src/prespawn-ffmpeg.ts b/packages/renderer/src/prespawn-ffmpeg.ts
index 73862f6291..9706d2db43 100644
--- a/packages/renderer/src/prespawn-ffmpeg.ts
+++ b/packages/renderer/src/prespawn-ffmpeg.ts
@@ -1,3 +1,4 @@
+import type {_InternalTypes} from 'remotion';
import {callFf} from './call-ffmpeg';
import type {HardwareAccelerationOption} from './client';
import type {Codec} from './codec';
@@ -17,7 +18,6 @@ import {
DEFAULT_PIXEL_FORMAT,
validateSelectedPixelFormatAndCodecCombination,
} from './pixel-format';
-import type {ProResProfile} from './prores-profile';
import {validateDimension, validateFps} from './validate';
import {validateEvenDimensionsWithCodec} from './validate-even-dimensions-with-codec';
@@ -45,7 +45,7 @@ type PreStitcherOptions = {
crf: number | null | undefined;
x264Preset: X264Preset | null;
onProgress: (progress: number) => void;
- proResProfile: ProResProfile | undefined;
+ proResProfile: _InternalTypes['ProResProfile'] | undefined;
logLevel: LogLevel;
imageFormat: VideoImageFormat;
ffmpegOverride: FfmpegOverrideFn;
diff --git a/packages/renderer/src/prores-profile.ts b/packages/renderer/src/prores-profile.ts
index 4f6e5a6064..fd1b7e7c52 100644
--- a/packages/renderer/src/prores-profile.ts
+++ b/packages/renderer/src/prores-profile.ts
@@ -1,22 +1,13 @@
+import {type _InternalTypes} from 'remotion';
+import {NoReactInternals} from 'remotion/no-react';
import type {Codec} from './codec';
-export const proResProfileOptions = [
- '4444-xq',
- '4444',
- 'hq',
- 'standard',
- 'light',
- 'proxy',
-] as const;
-
-export type ProResProfile = (typeof proResProfileOptions)[number];
-
export const validateSelectedCodecAndProResCombination = ({
codec,
proResProfile,
}: {
codec: Codec;
- proResProfile: ProResProfile | undefined;
+ proResProfile: _InternalTypes['ProResProfile'] | undefined;
}) => {
if (typeof proResProfile !== 'undefined' && codec !== 'prores') {
throw new TypeError(
@@ -26,10 +17,12 @@ export const validateSelectedCodecAndProResCombination = ({
if (
proResProfile !== undefined &&
- !proResProfileOptions.includes(proResProfile as ProResProfile)
+ !NoReactInternals.proResProfileOptions.includes(
+ proResProfile as _InternalTypes['ProResProfile'],
+ )
) {
throw new TypeError(
- `The ProRes profile "${proResProfile}" is not valid. Valid options are ${proResProfileOptions
+ `The ProRes profile "${proResProfile}" is not valid. Valid options are ${NoReactInternals.proResProfileOptions
.map((p) => `"${p}"`)
.join(', ')}`,
);
diff --git a/packages/renderer/src/render-media.ts b/packages/renderer/src/render-media.ts
index 5741fb9511..8a57859054 100644
--- a/packages/renderer/src/render-media.ts
+++ b/packages/renderer/src/render-media.ts
@@ -2,6 +2,7 @@ import type {ExecaChildProcess} from 'execa';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
+import type {_InternalTypes} from 'remotion';
import type {VideoConfig} from 'remotion/no-react';
import {NoReactInternals} from 'remotion/no-react';
import {type RenderMediaOnDownload} from './assets/download-and-map-assets-to-file';
@@ -54,7 +55,6 @@ import type {RemotionServer} from './prepare-server';
import {makeOrReuseServer} from './prepare-server';
import {prespawnFfmpeg} from './prespawn-ffmpeg';
import {shouldUseParallelEncoding} from './prestitcher-memory-usage';
-import type {ProResProfile} from './prores-profile';
import {validateSelectedCodecAndProResCombination} from './prores-profile';
import type {OnArtifact} from './render-frames';
import {internalRenderFrames} from './render-frames';
@@ -111,7 +111,7 @@ export type InternalRenderMediaOptions = {
overwrite: boolean;
onProgress: RenderMediaOnProgress;
onDownload: RenderMediaOnDownload;
- proResProfile: ProResProfile | undefined;
+ proResProfile: _InternalTypes['ProResProfile'] | undefined;
onBrowserLog: ((log: BrowserLog) => void) | null;
onStart: (data: OnStartData) => void;
chromiumOptions: ChromiumOptions;
@@ -159,7 +159,7 @@ export type RenderMediaOptions = Prettify<{
overwrite?: boolean;
onProgress?: RenderMediaOnProgress;
onDownload?: RenderMediaOnDownload;
- proResProfile?: ProResProfile;
+ proResProfile?: _InternalTypes['ProResProfile'];
/**
* @deprecated Use "logLevel": "verbose" instead
*/
diff --git a/packages/renderer/src/stitch-frames-to-video.ts b/packages/renderer/src/stitch-frames-to-video.ts
index cb942ee408..46c68d3571 100644
--- a/packages/renderer/src/stitch-frames-to-video.ts
+++ b/packages/renderer/src/stitch-frames-to-video.ts
@@ -1,5 +1,6 @@
import {cpSync, promises, rmSync} from 'node:fs';
import path from 'node:path';
+import type {_InternalTypes} from 'remotion';
import type {RenderMediaOnDownload} from './assets/download-and-map-assets-to-file';
import type {RenderAssetInfo} from './assets/download-map';
import {cleanDownloadMap} from './assets/download-map';
@@ -33,7 +34,6 @@ import {
DEFAULT_PIXEL_FORMAT,
validateSelectedPixelFormatAndCodecCombination,
} from './pixel-format';
-import type {ProResProfile} from './prores-profile';
import {validateSelectedCodecAndProResCombination} from './prores-profile';
import {getShouldRenderAudio} from './render-has-audio';
import {validateDimension, validateFps} from './validate';
@@ -58,7 +58,7 @@ type InternalStitchFramesToVideoOptions = {
crf: number | null;
onProgress?: null | ((progress: number) => void);
onDownload: undefined | RenderMediaOnDownload;
- proResProfile: undefined | ProResProfile;
+ proResProfile: undefined | _InternalTypes['ProResProfile'];
logLevel: LogLevel;
cancelSignal: CancelSignal | null;
preEncodedFileLocation: string | null;
@@ -91,7 +91,7 @@ export type StitchFramesToVideoOptions = {
crf?: number | null;
onProgress?: (progress: number) => void;
onDownload?: RenderMediaOnDownload;
- proResProfile?: ProResProfile;
+ proResProfile?: _InternalTypes['ProResProfile'];
verbose?: boolean;
cancelSignal?: CancelSignal;
muted?: boolean;
diff --git a/packages/studio-shared/src/api-requests.ts b/packages/studio-shared/src/api-requests.ts
index f8c481fc73..9f390874e7 100644
--- a/packages/studio-shared/src/api-requests.ts
+++ b/packages/studio-shared/src/api-requests.ts
@@ -5,12 +5,12 @@ import type {
ColorSpace,
LogLevel,
PixelFormat,
- ProResProfile,
StillImageFormat,
VideoImageFormat,
X264Preset,
} from '@remotion/renderer';
import type {HardwareAccelerationOption} from '@remotion/renderer/client';
+import type {_InternalTypes} from 'remotion';
import type {RecastCodemod, VisualControlChange} from './codemods';
import type {PackageManager} from './package-manager';
import type {ProjectInfo} from './project-info';
@@ -68,7 +68,7 @@ type AddRenderRequestDynamicFields =
endFrame: number;
muted: boolean;
enforceAudioTrack: boolean;
- proResProfile: ProResProfile | null;
+ proResProfile: _InternalTypes['ProResProfile'] | null;
x264Preset: X264Preset | null;
pixelFormat: PixelFormat;
audioBitrate: string | null;
diff --git a/packages/studio-shared/src/render-defaults.ts b/packages/studio-shared/src/render-defaults.ts
index b51b536583..78b4497d0d 100644
--- a/packages/studio-shared/src/render-defaults.ts
+++ b/packages/studio-shared/src/render-defaults.ts
@@ -6,12 +6,12 @@ import type {
LogLevel,
OpenGlRenderer,
PixelFormat,
- ProResProfile,
StillImageFormat,
VideoImageFormat,
X264Preset,
} from '@remotion/renderer';
import type {HardwareAccelerationOption} from '@remotion/renderer/client';
+import type {_InternalTypes} from 'remotion';
import type {GitSource} from './git-source';
import type {PackageManager} from './package-manager';
@@ -28,7 +28,7 @@ export type RenderDefaults = {
videoImageFormat: VideoImageFormat;
audioCodec: AudioCodec | null;
enforceAudioTrack: boolean;
- proResProfile: ProResProfile;
+ proResProfile: _InternalTypes['ProResProfile'];
x264Preset: X264Preset;
pixelFormat: PixelFormat;
audioBitrate: string | null;
diff --git a/packages/studio-shared/src/render-job.ts b/packages/studio-shared/src/render-job.ts
index 6e2d20d0c8..e64c5e42fb 100644
--- a/packages/studio-shared/src/render-job.ts
+++ b/packages/studio-shared/src/render-job.ts
@@ -6,7 +6,6 @@ import type {
LogLevel,
makeCancelSignal,
PixelFormat,
- ProResProfile,
StillImageFormat,
StitchingState,
VideoImageFormat,
@@ -139,7 +138,7 @@ type RenderJobDynamicFields =
endFrame: number;
muted: boolean;
enforceAudioTrack: boolean;
- proResProfile: ProResProfile | null;
+ proResProfile: _InternalTypes['ProResProfile'] | null;
x264Preset: X264Preset | null;
pixelFormat: PixelFormat;
audioBitrate: string | null;
@@ -160,6 +159,7 @@ type RenderJobDynamicFields =
import type {ChromiumOptions, OpenGlRenderer} from '@remotion/renderer';
import type {HardwareAccelerationOption} from '@remotion/renderer/client';
+import type {_InternalTypes} from 'remotion';
export type RequiredChromiumOptions = Required<ChromiumOptions>;
export type UiOpenGlOptions = OpenGlRenderer | 'default';
diff --git a/packages/studio/src/components/RenderButton.tsx b/packages/studio/src/components/RenderButton.tsx
index dc279ef4b6..66216b8322 100644
--- a/packages/studio/src/components/RenderButton.tsx
+++ b/packages/studio/src/components/RenderButton.tsx
@@ -6,11 +6,11 @@ import type {
LogLevel,
OpenGlRenderer,
PixelFormat,
- ProResProfile,
X264Preset,
} from '@remotion/renderer';
import type {SVGProps} from 'react';
import React, {useCallback, useContext, useMemo} from 'react';
+import type {_InternalTypes} from 'remotion';
import {Internals} from 'remotion';
import {StudioServerConnectionCtx} from '../helpers/client-id';
import {areKeyboardShortcutsDisabled} from '../helpers/use-keybinding';
@@ -82,7 +82,8 @@ export const RenderButton: React.FC = () => {
minConcurrency: defaults.minConcurrency,
initialMuted: defaults.muted,
initialEnforceAudioTrack: defaults.enforceAudioTrack,
- initialProResProfile: defaults.proResProfile as ProResProfile,
+ initialProResProfile:
+ defaults.proResProfile as _InternalTypes['ProResProfile'],
initialx264Preset: defaults.x264Preset as X264Preset,
initialPixelFormat: defaults.pixelFormat as PixelFormat,
initialAudioBitrate: defaults.audioBitrate,
diff --git a/packages/studio/src/components/RenderModal/RenderModal.tsx b/packages/studio/src/components/RenderModal/RenderModal.tsx
index 63225aa6b7..ee74723ca8 100644
--- a/packages/studio/src/components/RenderModal/RenderModal.tsx
+++ b/packages/studio/src/components/RenderModal/RenderModal.tsx
@@ -6,7 +6,6 @@ import type {
LogLevel,
OpenGlRenderer,
PixelFormat,
- ProResProfile,
StillImageFormat,
VideoImageFormat,
X264Preset,
@@ -27,6 +26,7 @@ import React, {
useRef,
useState,
} from 'react';
+import type {_InternalTypes} from 'remotion';
import {ShortcutHint} from '../../error-overlay/remotion-overlay/ShortcutHint';
import {BLUE, BLUE_DISABLED} from '../../helpers/colors';
import {
@@ -209,7 +209,7 @@ type RenderModalProps = {
readonly maxConcurrency: number;
readonly initialMuted: boolean;
readonly initialEnforceAudioTrack: boolean;
- readonly initialProResProfile: ProResProfile;
+ readonly initialProResProfile: _InternalTypes['ProResProfile'];
readonly initialx264Preset: X264Preset;
readonly initialPixelFormat: PixelFormat;
readonly initialVideoBitrate: string | null;
@@ -445,9 +445,9 @@ const RenderModal: React.FC<
const [startFrameOrNull, setStartFrame] = useState<number | null>(
() => inFrameMark ?? null,
);
- const [proResProfileSetting, setProResProfile] = useState<ProResProfile>(
- () => initialProResProfile,
- );
+ const [proResProfileSetting, setProResProfile] = useState<
+ _InternalTypes['ProResProfile']
+ >(() => initialProResProfile);
const [x264PresetSetting, setx264Preset] = useState<X264Preset>(
() => initialx264Preset,
);
diff --git a/packages/studio/src/components/RenderModal/RenderModalBasic.tsx b/packages/studio/src/components/RenderModal/RenderModalBasic.tsx
index dc8be1ccad..6cdfcc4227 100644
--- a/packages/studio/src/components/RenderModal/RenderModalBasic.tsx
+++ b/packages/studio/src/components/RenderModal/RenderModalBasic.tsx
@@ -1,9 +1,9 @@
-import type {Codec, LogLevel, ProResProfile} from '@remotion/renderer';
+import type {Codec, LogLevel} from '@remotion/renderer';
import {BrowserSafeApis} from '@remotion/renderer/client';
import {NoReactAPIs} from '@remotion/renderer/pure';
import type {ChangeEvent} from 'react';
import React, {useCallback, useMemo} from 'react';
-import type {VideoConfig} from 'remotion';
+import type {_InternalTypes, VideoConfig} from 'remotion';
import {labelProResProfile} from '../../helpers/prores-labels';
import {useFileExistence} from '../../helpers/use-file-existence';
import {Checkmark} from '../../icons/Checkmark';
@@ -32,9 +32,9 @@ export const RenderModalBasic: React.FC<{
readonly codec: Codec;
readonly setVideoCodec: (newCodec: Codec) => void;
readonly outName: string;
- readonly proResProfile: ProResProfile | null;
+ readonly proResProfile: _InternalTypes['ProResProfile'] | null;
readonly setProResProfile: React.Dispatch<
- React.SetStateAction<ProResProfile>
+ React.SetStateAction<_InternalTypes['ProResProfile']>
>;
readonly frame: number;
readonly setFrame: React.Dispatch<React.SetStateAction<number>>;
diff --git a/packages/studio/src/components/RenderQueue/actions.ts b/packages/studio/src/components/RenderQueue/actions.ts
index fe53d58ab5..05b7605224 100644
--- a/packages/studio/src/components/RenderQueue/actions.ts
+++ b/packages/studio/src/components/RenderQueue/actions.ts
@@ -5,7 +5,6 @@ import type {
ColorSpace,
LogLevel,
PixelFormat,
- ProResProfile,
StillImageFormat,
VideoImageFormat,
X264Preset,
@@ -21,6 +20,7 @@ import type {
RequiredChromiumOptions,
VisualControlChange,
} from '@remotion/studio-shared';
+import type {_InternalTypes} from 'remotion';
import {NoReactInternals} from 'remotion/no-react';
import {callApi} from '../call-api';
@@ -225,7 +225,7 @@ export const addVideoRenderJob = ({
endFrame: number;
muted: boolean;
enforceAudioTrack: boolean;
- proResProfile: ProResProfile | null;
+ proResProfile: _InternalTypes['ProResProfile'] | null;
x264Preset: X264Preset | null;
pixelFormat: PixelFormat;
audioBitrate: string | null;
diff --git a/packages/studio/src/components/SidebarRenderButton.tsx b/packages/studio/src/components/SidebarRenderButton.tsx
index caf650abc5..4570a20b59 100644
--- a/packages/studio/src/components/SidebarRenderButton.tsx
+++ b/packages/studio/src/components/SidebarRenderButton.tsx
@@ -5,7 +5,6 @@ import type {
LogLevel,
OpenGlRenderer,
PixelFormat,
- ProResProfile,
X264Preset,
} from '@remotion/renderer';
import type {SVGProps} from 'react';
@@ -62,7 +61,8 @@ export const SidebarRenderButton: React.FC<{
minConcurrency: defaults.minConcurrency,
initialMuted: defaults.muted,
initialEnforceAudioTrack: defaults.enforceAudioTrack,
- initialProResProfile: defaults.proResProfile as ProResProfile,
+ initialProResProfile:
+ defaults.proResProfile as _InternalTypes['ProResProfile'],
initialx264Preset: defaults.x264Preset as X264Preset,
initialPixelFormat: defaults.pixelFormat as PixelFormat,
initialAudioBitrate: defaults.audioBitrate,
diff --git a/packages/studio/src/helpers/prores-labels.ts b/packages/studio/src/helpers/prores-labels.ts
index 6b6910e1f7..fed0ecbcf5 100644
--- a/packages/studio/src/helpers/prores-labels.ts
+++ b/packages/studio/src/helpers/prores-labels.ts
@@ -1,6 +1,8 @@
-import type {ProResProfile} from '@remotion/renderer';
+import type {_InternalTypes} from 'remotion';
-export const labelProResProfile = (profile: ProResProfile) => {
+export const labelProResProfile = (
+ profile: _InternalTypes['ProResProfile'],
+) => {
if (profile === '4444') {
return '4444';
}
diff --git a/packages/studio/src/helpers/retry-payload.ts b/packages/studio/src/helpers/retry-payload.ts
index 4a3da95074..2d3b2244f2 100644
--- a/packages/studio/src/helpers/retry-payload.ts
+++ b/packages/studio/src/helpers/retry-payload.ts
@@ -3,10 +3,10 @@ import type {
Codec,
ColorSpace,
PixelFormat,
- ProResProfile,
X264Preset,
} from '@remotion/renderer';
import type {RenderJob} from '@remotion/studio-shared';
+import type {_InternalTypes} from 'remotion';
import {NoReactInternals} from 'remotion/no-react';
import type {RenderModalState} from '../state/modals';
@@ -31,7 +31,8 @@ export const makeRetryPayload = (job: RenderJob): RenderModalState => {
minConcurrency: defaults.minConcurrency,
initialMuted: defaults.muted,
initialEnforceAudioTrack: defaults.enforceAudioTrack,
- initialProResProfile: defaults.proResProfile as ProResProfile,
+ initialProResProfile:
+ defaults.proResProfile as _InternalTypes['ProResProfile'],
initialx264Preset: defaults.x264Preset as X264Preset,
initialPixelFormat: defaults.pixelFormat as PixelFormat,
initialAudioBitrate: defaults.audioBitrate,
@@ -84,7 +85,8 @@ export const makeRetryPayload = (job: RenderJob): RenderModalState => {
minConcurrency: defaults.minConcurrency,
initialMuted: defaults.muted,
initialEnforceAudioTrack: defaults.enforceAudioTrack,
- initialProResProfile: defaults.proResProfile as ProResProfile,
+ initialProResProfile:
+ defaults.proResProfile as _InternalTypes['ProResProfile'],
initialx264Preset: defaults.x264Preset as X264Preset,
initialPixelFormat: defaults.pixelFormat as PixelFormat,
initialAudioBitrate: defaults.audioBitrate,
@@ -140,7 +142,8 @@ export const makeRetryPayload = (job: RenderJob): RenderModalState => {
initialMuted: job.muted,
initialEnforceAudioTrack: job.enforceAudioTrack,
initialProResProfile:
- job.proResProfile ?? (defaults.proResProfile as ProResProfile),
+ job.proResProfile ??
+ (defaults.proResProfile as _InternalTypes['ProResProfile']),
initialx264Preset: job.x264Preset ?? (defaults.x264Preset as X264Preset),
initialPixelFormat: job.pixelFormat,
initialAudioBitrate: job.audioBitrate,
diff --git a/packages/studio/src/state/modals.ts b/packages/studio/src/state/modals.ts
index 3fe6807ebe..bedede9aac 100644
--- a/packages/studio/src/state/modals.ts
+++ b/packages/studio/src/state/modals.ts
@@ -6,7 +6,6 @@ import type {
LogLevel,
OpenGlRenderer,
PixelFormat,
- ProResProfile,
StillImageFormat,
VideoImageFormat,
X264Preset,
@@ -15,6 +14,7 @@ import type {HardwareAccelerationOption} from '@remotion/renderer/client';
import type {PackageManager} from '@remotion/studio-shared';
import type React from 'react';
import {createContext} from 'react';
+import type {_InternalTypes} from 'remotion';
import type {CompType} from '../components/NewComposition/DuplicateComposition';
import type {QuickSwitcherMode} from '../components/QuickSwitcher/NoResults';
import type {RenderType} from '../components/RenderModal/RenderModalAdvanced';
@@ -32,7 +32,7 @@ export type RenderModalState = {
initialConcurrency: number;
initialMuted: boolean;
initialEnforceAudioTrack: boolean;
- initialProResProfile: ProResProfile;
+ initialProResProfile: _InternalTypes['ProResProfile'];
initialx264Preset: X264Preset;
initialPixelFormat: PixelFormat;
initialVideoBitrate: string | null;