@remotion/studio 4.0.465 → 4.0.467

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.
Files changed (68) hide show
  1. package/dist/components/CompositionSelectorItem.js +16 -79
  2. package/dist/components/CurrentAsset.js +8 -54
  3. package/dist/components/EditorContent.js +1 -3
  4. package/dist/components/Menu/MenuItem.d.ts +1 -1
  5. package/dist/components/Modals.js +1 -1
  6. package/dist/components/NewComposition/MenuContent.js +1 -0
  7. package/dist/components/NewComposition/ValidationMessage.d.ts +1 -0
  8. package/dist/components/NewComposition/ValidationMessage.js +3 -3
  9. package/dist/components/RenderButton.js +1 -0
  10. package/dist/components/RenderModal/DataEditor.js +8 -2
  11. package/dist/components/RenderModal/RenderModalAdvanced.d.ts +1 -11
  12. package/dist/components/RenderModal/RenderModalAdvanced.js +4 -50
  13. package/dist/components/RenderModal/RenderModalEncoding.d.ts +37 -0
  14. package/dist/components/RenderModal/RenderModalEncoding.js +165 -0
  15. package/dist/components/RenderModal/RenderModalPicture.d.ts +1 -22
  16. package/dist/components/RenderModal/RenderModalPicture.js +6 -84
  17. package/dist/components/RenderModal/ServerRenderModal.d.ts +1 -0
  18. package/dist/components/RenderModal/ServerRenderModal.js +16 -4
  19. package/dist/components/RenderModal/get-render-modal-warnings.d.ts +7 -1
  20. package/dist/components/RenderModal/get-render-modal-warnings.js +21 -7
  21. package/dist/components/RenderQueue/actions.d.ts +2 -1
  22. package/dist/components/RenderQueue/actions.js +2 -1
  23. package/dist/components/SidebarRenderButton.js +1 -0
  24. package/dist/components/Timeline/Timeline.js +6 -4
  25. package/dist/components/Timeline/TimelineEffectFieldRow.js +2 -1
  26. package/dist/components/Timeline/TimelineEffectGroupRow.d.ts +1 -0
  27. package/dist/components/Timeline/TimelineEffectGroupRow.js +18 -2
  28. package/dist/components/Timeline/TimelineExpandedRow.d.ts +1 -1
  29. package/dist/components/Timeline/TimelineExpandedRow.js +1 -1
  30. package/dist/components/Timeline/TimelineExpandedSection.js +9 -2
  31. package/dist/components/Timeline/TimelineExpandedTrackKeyframes.d.ts +7 -0
  32. package/dist/components/Timeline/TimelineExpandedTrackKeyframes.js +124 -0
  33. package/dist/components/Timeline/TimelineListItem.js +21 -3
  34. package/dist/components/Timeline/TimelineMediaInfo.d.ts +5 -0
  35. package/dist/components/Timeline/TimelineMediaInfo.js +173 -0
  36. package/dist/components/Timeline/TimelineSchemaField.js +2 -1
  37. package/dist/components/Timeline/TimelineStack/index.js +7 -47
  38. package/dist/components/Timeline/TimelineTracks.js +2 -16
  39. package/dist/components/Timeline/TimelineVideoInfo.js +2 -2
  40. package/dist/components/Timeline/get-timeline-keyframes.d.ts +6 -0
  41. package/dist/components/Timeline/get-timeline-keyframes.js +22 -0
  42. package/dist/components/composition-menu-items.d.ts +12 -0
  43. package/dist/components/composition-menu-items.js +166 -0
  44. package/dist/esm/chunk-5gtx3pza.js +9 -0
  45. package/dist/esm/{chunk-pqk2qd0d.js → chunk-vwnse6c9.js} +4297 -3547
  46. package/dist/esm/index.mjs +0 -16
  47. package/dist/esm/internals.mjs +4295 -3560
  48. package/dist/esm/previewEntry.mjs +4049 -3314
  49. package/dist/esm/renderEntry.mjs +3 -4
  50. package/dist/helpers/format-media-duration.d.ts +1 -0
  51. package/dist/helpers/format-media-duration.js +14 -0
  52. package/dist/helpers/get-timeline-sequence-layout.js +4 -3
  53. package/dist/helpers/make-render-command.d.ts +2 -2
  54. package/dist/helpers/make-render-command.js +2 -1
  55. package/dist/helpers/open-in-editor.d.ts +8 -0
  56. package/dist/helpers/open-in-editor.js +58 -1
  57. package/dist/helpers/render-modal-sections.d.ts +1 -1
  58. package/dist/helpers/render-modal-sections.js +35 -5
  59. package/dist/helpers/retry-payload.js +3 -0
  60. package/dist/helpers/timeline-layout.d.ts +11 -6
  61. package/dist/helpers/timeline-layout.js +28 -8
  62. package/dist/helpers/use-max-media-duration.js +25 -28
  63. package/dist/helpers/use-media-metadata.d.ts +10 -0
  64. package/dist/helpers/use-media-metadata.js +135 -0
  65. package/dist/helpers/use-menu-structure.js +43 -0
  66. package/dist/state/modals.d.ts +1 -0
  67. package/package.json +10 -10
  68. package/dist/esm/chunk-6jf1natv.js +0 -25
@@ -3,18 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CompositionSelectorItem = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const client_id_1 = require("../helpers/client-id");
6
7
  const colors_1 = require("../helpers/colors");
7
8
  const is_composition_still_1 = require("../helpers/is-composition-still");
9
+ const noop_1 = require("../helpers/noop");
8
10
  const sidebar_scroll_into_view_1 = require("../helpers/sidebar-scroll-into-view");
9
11
  const folder_1 = require("../icons/folder");
10
12
  const still_1 = require("../icons/still");
11
13
  const video_1 = require("../icons/video");
12
14
  const modals_1 = require("../state/modals");
15
+ const composition_menu_items_1 = require("./composition-menu-items");
13
16
  const CompositionContextButton_1 = require("./CompositionContextButton");
14
17
  const ContextMenu_1 = require("./ContextMenu");
15
18
  const layout_1 = require("./layout");
16
- const NotificationCenter_1 = require("./Notifications/NotificationCenter");
17
19
  const SidebarRenderButton_1 = require("./SidebarRenderButton");
20
+ const use_resolved_stack_1 = require("./Timeline/use-resolved-stack");
18
21
  const COMPOSITION_ITEM_HEIGHT = 32;
19
22
  const itemStyle = {
20
23
  paddingRight: 10,
@@ -103,88 +106,22 @@ const CompositionSelectorItem = ({ item, level, currentComposition, tabIndex, se
103
106
  }
104
107
  }, [onClick]);
105
108
  const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
109
+ const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
110
+ .previewServerState.type;
111
+ const resolvedLocation = (0, use_resolved_stack_1.useResolvedStack)(item.type === 'composition' ? item.composition.stack : null);
106
112
  const contextMenu = (0, react_1.useMemo)(() => {
107
113
  if (item.type === 'composition') {
108
- return [
109
- {
110
- id: 'duplicate',
111
- keyHint: null,
112
- label: `Duplicate...`,
113
- leftItem: null,
114
- onClick: () => {
115
- setSelectedModal({
116
- type: 'duplicate-comp',
117
- compositionId: item.composition.id,
118
- compositionType: item.composition.durationInFrames === 1
119
- ? 'still'
120
- : 'composition',
121
- });
122
- },
123
- quickSwitcherLabel: null,
124
- subMenu: null,
125
- type: 'item',
126
- value: 'duplicate',
127
- },
128
- {
129
- id: 'rename',
130
- keyHint: null,
131
- label: `Rename...`,
132
- leftItem: null,
133
- onClick: () => {
134
- setSelectedModal({
135
- type: 'rename-comp',
136
- compositionId: item.composition.id,
137
- });
138
- },
139
- quickSwitcherLabel: null,
140
- subMenu: null,
141
- type: 'item',
142
- value: 'rename',
143
- },
144
- {
145
- id: 'delete',
146
- keyHint: null,
147
- label: `Delete...`,
148
- leftItem: null,
149
- onClick: () => {
150
- setSelectedModal({
151
- type: 'delete-comp',
152
- compositionId: item.composition.id,
153
- });
154
- },
155
- quickSwitcherLabel: null,
156
- subMenu: null,
157
- type: 'item',
158
- value: 'delete',
159
- },
160
- {
161
- type: 'divider',
162
- id: 'copy-id-divider',
163
- },
164
- {
165
- id: 'copy-id',
166
- keyHint: null,
167
- label: `Copy ID`,
168
- leftItem: null,
169
- onClick: () => {
170
- navigator.clipboard
171
- .writeText(item.composition.id)
172
- .catch((err) => {
173
- (0, NotificationCenter_1.showNotification)(`Could not copy to clipboard: ${err.message}`, 1000);
174
- })
175
- .then(() => {
176
- (0, NotificationCenter_1.showNotification)('Copied to clipboard', 1000);
177
- });
178
- },
179
- quickSwitcherLabel: null,
180
- subMenu: null,
181
- type: 'item',
182
- value: 'remove',
183
- },
184
- ];
114
+ return (0, composition_menu_items_1.getCompositionMenuItems)({
115
+ closeMenu: noop_1.noop,
116
+ composition: item.composition,
117
+ connectionStatus,
118
+ resolvedLocation,
119
+ setSelectedModal,
120
+ readOnlyStudio: window.remotion_isReadOnlyStudio,
121
+ });
185
122
  }
186
123
  return [];
187
- }, [item, setSelectedModal]);
124
+ }, [connectionStatus, item, resolvedLocation, setSelectedModal]);
188
125
  if (item.type === 'folder') {
189
126
  return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
190
127
  jsx_runtime_1.jsxs("button", { style: style, onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, tabIndex: tabIndex, onClick: onClick, type: "button", title: item.folderName, children: [item.expanded ? (jsx_runtime_1.jsx(folder_1.ExpandedFolderIcon, { style: iconStyle, color: hovered || selected ? 'white' : colors_1.LIGHT_TEXT })) : (jsx_runtime_1.jsx(folder_1.CollapsedFolderIcon, { color: hovered || selected ? 'white' : colors_1.LIGHT_TEXT, style: iconStyle })), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx("div", { style: label, children: item.folderName })
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CurrentAsset = exports.CURRENT_ASSET_HEIGHT = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const studio_shared_1 = require("@remotion/studio-shared");
6
- const mediabunny_1 = require("mediabunny");
7
6
  const react_1 = require("react");
8
7
  const remotion_1 = require("remotion");
9
8
  const colors_1 = require("../helpers/colors");
10
- const get_duration_or_compute_1 = require("../helpers/get-duration-or-compute");
9
+ const format_media_duration_1 = require("../helpers/format-media-duration");
10
+ const use_media_metadata_1 = require("../helpers/use-media-metadata");
11
11
  const use_static_files_1 = require("./use-static-files");
12
12
  exports.CURRENT_ASSET_HEIGHT = 80;
13
13
  const container = {
@@ -38,16 +38,6 @@ const row = {
38
38
  lineHeight: '18px',
39
39
  backgroundColor: colors_1.BACKGROUND,
40
40
  };
41
- const formatDuration = (seconds) => {
42
- const h = Math.floor(seconds / 3600);
43
- const m = Math.floor((seconds % 3600) / 60);
44
- const s = seconds % 60;
45
- const sFixed = s.toFixed(2).padStart(5, '0');
46
- if (h > 0) {
47
- return `${h}:${String(m).padStart(2, '0')}:${sFixed}`;
48
- }
49
- return `${String(m).padStart(2, '0')}:${sFixed}`;
50
- };
51
41
  const CurrentAsset = () => {
52
42
  var _a;
53
43
  const { canvasContent } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
@@ -61,46 +51,8 @@ const CurrentAsset = () => {
61
51
  const file = staticFiles.find((f) => f.name === assetName);
62
52
  return (_a = file === null || file === void 0 ? void 0 : file.sizeInBytes) !== null && _a !== void 0 ? _a : null;
63
53
  }, [assetName, staticFiles]);
64
- const [mediaMetadata, setMediaMetadata] = (0, react_1.useState)(null);
65
- (0, react_1.useEffect)(() => {
66
- setMediaMetadata(null);
67
- if (!assetName) {
68
- return;
69
- }
70
- const url = (0, remotion_1.staticFile)(assetName);
71
- const input = new mediabunny_1.Input({
72
- formats: mediabunny_1.ALL_FORMATS,
73
- source: new mediabunny_1.UrlSource(url),
74
- });
75
- Promise.all([
76
- (0, get_duration_or_compute_1.getDurationOrCompute)(input),
77
- input.getFormat(),
78
- input.getPrimaryVideoTrack(),
79
- ])
80
- .then(async ([duration, format, videoTrack]) => {
81
- if (videoTrack && (await videoTrack.isLive())) {
82
- throw new Error('Live streams are not currently supported by Remotion. Sorry! Source: ' +
83
- url);
84
- }
85
- if (videoTrack && (await videoTrack.isRelativeToUnixEpoch())) {
86
- throw new Error('Streams with UNIX timestamps are not currently supported by Remotion. Sorry! Source: ' +
87
- url);
88
- }
89
- setMediaMetadata({
90
- duration,
91
- format: format.name,
92
- width: videoTrack ? await videoTrack.getDisplayWidth() : null,
93
- height: videoTrack ? await videoTrack.getDisplayHeight() : null,
94
- });
95
- })
96
- .catch(() => {
97
- // InputDisposedError (user navigated away) and
98
- // non-media files (e.g. .png, .json) — ignore silently
99
- });
100
- return () => {
101
- input.dispose();
102
- };
103
- }, [assetName]);
54
+ const src = assetName ? (0, remotion_1.staticFile)(assetName) : null;
55
+ const mediaMetadata = (0, use_media_metadata_1.useMediaMetadata)(src);
104
56
  if (!assetName) {
105
57
  return jsx_runtime_1.jsx("div", { style: container });
106
58
  }
@@ -110,12 +62,14 @@ const CurrentAsset = () => {
110
62
  subtitleParts.push((0, studio_shared_1.formatBytes)(sizeInBytes));
111
63
  }
112
64
  if (mediaMetadata) {
113
- subtitleParts.push(mediaMetadata.format);
65
+ if (mediaMetadata.format) {
66
+ subtitleParts.push(mediaMetadata.format);
67
+ }
114
68
  if (mediaMetadata.width !== null && mediaMetadata.height !== null) {
115
69
  subtitleParts.push(`${mediaMetadata.width}x${mediaMetadata.height}`);
116
70
  }
117
71
  }
118
72
  return (jsx_runtime_1.jsx("div", { style: container, children: jsx_runtime_1.jsx("div", { style: row, children: jsx_runtime_1.jsxs("div", { children: [
119
- jsx_runtime_1.jsx("div", { style: title, children: fileName }), subtitleParts.length > 0 ? (jsx_runtime_1.jsx("div", { style: subtitle, children: subtitleParts.join(' · ') })) : null, mediaMetadata ? (jsx_runtime_1.jsx("div", { style: subtitle, children: formatDuration(mediaMetadata.duration) })) : null] }) }) }));
73
+ jsx_runtime_1.jsx("div", { style: title, children: fileName }), subtitleParts.length > 0 ? (jsx_runtime_1.jsx("div", { style: subtitle, children: subtitleParts.join(' · ') })) : null, mediaMetadata ? (jsx_runtime_1.jsx("div", { style: subtitle, children: (0, format_media_duration_1.formatMediaDuration)(mediaMetadata.duration) })) : null] }) }) }));
120
74
  };
121
75
  exports.CurrentAsset = CurrentAsset;
@@ -4,7 +4,6 @@ exports.EditorContent = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const remotion_1 = require("remotion");
7
- const is_current_selected_still_1 = require("../helpers/is-current-selected-still");
8
7
  const InitialCompositionLoader_1 = require("./InitialCompositionLoader");
9
8
  const MenuToolbar_1 = require("./MenuToolbar");
10
9
  const SplitterContainer_1 = require("./Splitter/SplitterContainer");
@@ -20,9 +19,8 @@ const container = {
20
19
  height: 0,
21
20
  };
22
21
  const EditorContent = ({ readOnlyStudio, children }) => {
23
- const isStill = (0, is_current_selected_still_1.useIsStill)();
24
22
  const { canvasContent } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
25
- const showTimeline = canvasContent !== null && !isStill && canvasContent.type === 'composition';
23
+ const showTimeline = canvasContent !== null && canvasContent.type === 'composition';
26
24
  return (jsx_runtime_1.jsxs("div", { style: container, children: [
27
25
  jsx_runtime_1.jsx(InitialCompositionLoader_1.InitialCompositionLoader, {}), jsx_runtime_1.jsx(MenuToolbar_1.MenuToolbar, { readOnlyStudio: readOnlyStudio }), jsx_runtime_1.jsxs(SplitterContainer_1.SplitterContainer, { orientation: "horizontal", id: "top-to-bottom", maxFlex: 0.9, minFlex: 0.2, defaultFlex: 0.75, children: [
28
26
  jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { sticky: null, type: "flexer", children: children }), jsx_runtime_1.jsx(SplitterHandle_1.SplitterHandle, { allowToCollapse: "none", onCollapse: noop }), jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { sticky: null, type: "anti-flexer", children: showTimeline ? jsx_runtime_1.jsx(Timeline_1.Timeline, {}) : jsx_runtime_1.jsx(TimelineEmptyState_1.TimelineEmptyState, {}) })
@@ -1,7 +1,7 @@
1
1
  import type { SetStateAction } from 'react';
2
2
  import React from 'react';
3
3
  import type { ComboboxValue } from '../NewComposition/ComboBox';
4
- export type MenuId = 'remotion' | 'file' | 'view' | 'install' | 'tools' | 'help';
4
+ export type MenuId = 'remotion' | 'file' | 'view' | 'composition' | 'install' | 'tools' | 'help';
5
5
  export type Menu = {
6
6
  id: MenuId;
7
7
  label: React.ReactNode;
@@ -26,6 +26,6 @@ const Modals = ({ readOnlyStudio }) => {
26
26
  'connected';
27
27
  return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [modalContextType && modalContextType.type === 'duplicate-comp' && (jsx_runtime_1.jsx(DuplicateComposition_1.DuplicateComposition, { compositionType: modalContextType.compositionType, compositionId: modalContextType.compositionId })), modalContextType && modalContextType.type === 'delete-comp' && (jsx_runtime_1.jsx(DeleteComposition_1.DeleteComposition, { compositionId: modalContextType.compositionId })), modalContextType && modalContextType.type === 'rename-comp' && (jsx_runtime_1.jsx(RenameComposition_1.RenameComposition, { compositionId: modalContextType.compositionId })), modalContextType && modalContextType.type === 'input-props-override' && (jsx_runtime_1.jsx(OverrideInputProps_1.OverrideInputPropsModal, {})), modalContextType && modalContextType.type === 'web-render' && (jsx_runtime_1.jsx(WebRenderModal_1.WebRenderModalWithLoader, { ...modalContextType })), modalContextType &&
28
28
  modalContextType.type === 'server-render' &&
29
- (canRender || modalContextType.readOnlyStudio) ? (jsx_runtime_1.jsx(ServerRenderModal_1.RenderModalWithLoader, { readOnlyStudio: (_a = modalContextType.readOnlyStudio) !== null && _a !== void 0 ? _a : false, initialFrame: modalContextType.initialFrame, initialDarkMode: modalContextType.initialDarkMode, compositionId: modalContextType.compositionId, initialVideoImageFormat: modalContextType.initialVideoImageFormat, initialJpegQuality: modalContextType.initialJpegQuality, initialScale: modalContextType.initialScale, initialLogLevel: modalContextType.initialLogLevel, initialOffthreadVideoCacheSizeInBytes: modalContextType.initialOffthreadVideoCacheSizeInBytes, initialOffthreadVideoThreads: modalContextType.initialOffthreadVideoThreads, initialMediaCacheSizeInBytes: modalContextType.initialMediaCacheSizeInBytes, initialConcurrency: modalContextType.initialConcurrency, maxConcurrency: modalContextType.maxConcurrency, minConcurrency: modalContextType.minConcurrency, initialStillImageFormat: modalContextType.initialStillImageFormat, initialMuted: modalContextType.initialMuted, initialEnforceAudioTrack: modalContextType.initialEnforceAudioTrack, initialProResProfile: modalContextType.initialProResProfile, initialx264Preset: modalContextType.initialx264Preset, initialPixelFormat: modalContextType.initialPixelFormat, initialAudioBitrate: modalContextType.initialAudioBitrate, initialVideoBitrate: modalContextType.initialVideoBitrate, initialEveryNthFrame: modalContextType.initialEveryNthFrame, initialNumberOfGifLoops: modalContextType.initialNumberOfGifLoops, initialDelayRenderTimeout: modalContextType.initialDelayRenderTimeout, initialEnvVariables: modalContextType.initialEnvVariables, initialDisableWebSecurity: modalContextType.initialDisableWebSecurity, initialGl: modalContextType.initialOpenGlRenderer, initialHeadless: modalContextType.initialHeadless, initialIgnoreCertificateErrors: modalContextType.initialIgnoreCertificateErrors, initialEncodingBufferSize: modalContextType.initialEncodingBufferSize, initialEncodingMaxRate: modalContextType.initialEncodingMaxRate, initialUserAgent: modalContextType.initialUserAgent, initialColorSpace: modalContextType.initialColorSpace, initialMultiProcessOnLinux: modalContextType.initialMultiProcessOnLinux, initialRepro: modalContextType.initialRepro, initialBeep: modalContextType.initialBeep, initialForSeamlessAacConcatenation: modalContextType.initialForSeamlessAacConcatenation, defaultProps: modalContextType.defaultProps, inFrameMark: modalContextType.inFrameMark, outFrameMark: modalContextType.outFrameMark, defaultConfigurationAudioCodec: modalContextType.defaultConfigurationAudioCodec, defaultConfigurationVideoCodec: modalContextType.defaultConfigurationVideoCodec, renderTypeOfLastRender: modalContextType.renderTypeOfLastRender, defaultMetadata: modalContextType.defaulMetadata, initialHardwareAcceleration: modalContextType.initialHardwareAcceleration, initialSampleRate: modalContextType.initialSampleRate, initialChromeMode: modalContextType.initialChromeMode, renderDefaults: modalContextType.renderDefaults })) : null, modalContextType && modalContextType.type === 'render-progress' && (jsx_runtime_1.jsx(RenderStatusModal_1.RenderStatusModal, { jobId: modalContextType.jobId })), modalContextType && modalContextType.type === 'update' && (jsx_runtime_1.jsx(UpdateModal_1.UpdateModal, { info: modalContextType.info, knownBugs: modalContextType.knownBugs })), modalContextType && modalContextType.type === 'install-packages' && (jsx_runtime_1.jsx(InstallPackage_1.InstallPackageModal, { packageManager: modalContextType.packageManager })), modalContextType && modalContextType.type === 'quick-switcher' && (jsx_runtime_1.jsx(QuickSwitcher_1.default, { readOnlyStudio: readOnlyStudio, invocationTimestamp: modalContextType.invocationTimestamp, initialMode: modalContextType.mode })), process.env.ASK_AI_ENABLED && jsx_runtime_1.jsx(AskAiModal_1.AskAiModal, {})] }));
29
+ (canRender || modalContextType.readOnlyStudio) ? (jsx_runtime_1.jsx(ServerRenderModal_1.RenderModalWithLoader, { readOnlyStudio: (_a = modalContextType.readOnlyStudio) !== null && _a !== void 0 ? _a : false, initialFrame: modalContextType.initialFrame, initialDarkMode: modalContextType.initialDarkMode, compositionId: modalContextType.compositionId, initialVideoImageFormat: modalContextType.initialVideoImageFormat, initialJpegQuality: modalContextType.initialJpegQuality, initialScale: modalContextType.initialScale, initialLogLevel: modalContextType.initialLogLevel, initialOffthreadVideoCacheSizeInBytes: modalContextType.initialOffthreadVideoCacheSizeInBytes, initialOffthreadVideoThreads: modalContextType.initialOffthreadVideoThreads, initialMediaCacheSizeInBytes: modalContextType.initialMediaCacheSizeInBytes, initialConcurrency: modalContextType.initialConcurrency, maxConcurrency: modalContextType.maxConcurrency, minConcurrency: modalContextType.minConcurrency, initialStillImageFormat: modalContextType.initialStillImageFormat, initialMuted: modalContextType.initialMuted, initialEnforceAudioTrack: modalContextType.initialEnforceAudioTrack, initialProResProfile: modalContextType.initialProResProfile, initialx264Preset: modalContextType.initialx264Preset, initialGopSize: modalContextType.initialGopSize, initialPixelFormat: modalContextType.initialPixelFormat, initialAudioBitrate: modalContextType.initialAudioBitrate, initialVideoBitrate: modalContextType.initialVideoBitrate, initialEveryNthFrame: modalContextType.initialEveryNthFrame, initialNumberOfGifLoops: modalContextType.initialNumberOfGifLoops, initialDelayRenderTimeout: modalContextType.initialDelayRenderTimeout, initialEnvVariables: modalContextType.initialEnvVariables, initialDisableWebSecurity: modalContextType.initialDisableWebSecurity, initialGl: modalContextType.initialOpenGlRenderer, initialHeadless: modalContextType.initialHeadless, initialIgnoreCertificateErrors: modalContextType.initialIgnoreCertificateErrors, initialEncodingBufferSize: modalContextType.initialEncodingBufferSize, initialEncodingMaxRate: modalContextType.initialEncodingMaxRate, initialUserAgent: modalContextType.initialUserAgent, initialColorSpace: modalContextType.initialColorSpace, initialMultiProcessOnLinux: modalContextType.initialMultiProcessOnLinux, initialRepro: modalContextType.initialRepro, initialBeep: modalContextType.initialBeep, initialForSeamlessAacConcatenation: modalContextType.initialForSeamlessAacConcatenation, defaultProps: modalContextType.defaultProps, inFrameMark: modalContextType.inFrameMark, outFrameMark: modalContextType.outFrameMark, defaultConfigurationAudioCodec: modalContextType.defaultConfigurationAudioCodec, defaultConfigurationVideoCodec: modalContextType.defaultConfigurationVideoCodec, renderTypeOfLastRender: modalContextType.renderTypeOfLastRender, defaultMetadata: modalContextType.defaulMetadata, initialHardwareAcceleration: modalContextType.initialHardwareAcceleration, initialSampleRate: modalContextType.initialSampleRate, initialChromeMode: modalContextType.initialChromeMode, renderDefaults: modalContextType.renderDefaults })) : null, modalContextType && modalContextType.type === 'render-progress' && (jsx_runtime_1.jsx(RenderStatusModal_1.RenderStatusModal, { jobId: modalContextType.jobId })), modalContextType && modalContextType.type === 'update' && (jsx_runtime_1.jsx(UpdateModal_1.UpdateModal, { info: modalContextType.info, knownBugs: modalContextType.knownBugs })), modalContextType && modalContextType.type === 'install-packages' && (jsx_runtime_1.jsx(InstallPackage_1.InstallPackageModal, { packageManager: modalContextType.packageManager })), modalContextType && modalContextType.type === 'quick-switcher' && (jsx_runtime_1.jsx(QuickSwitcher_1.default, { readOnlyStudio: readOnlyStudio, invocationTimestamp: modalContextType.invocationTimestamp, initialMode: modalContextType.mode })), process.env.ASK_AI_ENABLED && jsx_runtime_1.jsx(AskAiModal_1.AskAiModal, {})] }));
30
30
  };
31
31
  exports.Modals = Modals;
@@ -19,6 +19,7 @@ const container = {
19
19
  marginLeft: 0 - BORDER_SIZE,
20
20
  overflowY: 'auto',
21
21
  overflowX: 'hidden',
22
+ scrollbarGutter: 'auto',
22
23
  minWidth: 200,
23
24
  maxWidth: styles_1.MAX_MENU_WIDTH,
24
25
  };
@@ -5,4 +5,5 @@ export declare const ValidationMessage: React.FC<{
5
5
  readonly message: string;
6
6
  readonly align: 'flex-start' | 'flex-end';
7
7
  readonly type: 'warning' | 'error';
8
+ readonly action?: React.ReactNode;
8
9
  }>;
@@ -22,7 +22,7 @@ const label = {
22
22
  color: 'white',
23
23
  fontFamily: 'sans-serif',
24
24
  };
25
- const ValidationMessage = ({ message, align, type }) => {
25
+ const ValidationMessage = ({ message, align, type, action }) => {
26
26
  const finalStyle = (0, react_1.useMemo)(() => {
27
27
  return {
28
28
  ...style,
@@ -30,7 +30,7 @@ const ValidationMessage = ({ message, align, type }) => {
30
30
  };
31
31
  }, [type]);
32
32
  return (jsx_runtime_1.jsx("div", { style: container, children: jsx_runtime_1.jsxs(layout_1.Row, { align: "center", justify: align, children: [
33
- jsx_runtime_1.jsx(exports.WarningTriangle, { style: finalStyle }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx("div", { style: label, children: message })
34
- ] }) }));
33
+ jsx_runtime_1.jsx(exports.WarningTriangle, { style: finalStyle }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx("div", { style: label, children: message }), action ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
34
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), action] })) : null] }) }));
35
35
  };
36
36
  exports.ValidationMessage = ValidationMessage;
@@ -195,6 +195,7 @@ const RenderButton = ({ readOnlyStudio, }) => {
195
195
  initialEnforceAudioTrack: defaults.enforceAudioTrack,
196
196
  initialProResProfile: defaults.proResProfile,
197
197
  initialx264Preset: defaults.x264Preset,
198
+ initialGopSize: defaults.gopSize,
198
199
  initialPixelFormat: null,
199
200
  initialAudioBitrate: defaults.audioBitrate,
200
201
  initialVideoBitrate: defaults.videoBitrate,
@@ -84,6 +84,13 @@ const tabWrapper = {
84
84
  flexDirection: 'row',
85
85
  alignItems: 'center',
86
86
  };
87
+ const resolveLinkStyle = {
88
+ color: colors_1.BLUE,
89
+ fontSize: 13,
90
+ fontFamily: 'sans-serif',
91
+ textDecoration: 'underline',
92
+ whiteSpace: 'nowrap',
93
+ };
87
94
  const persistanceKey = 'remotion.show-render-modalwarning';
88
95
  const getPersistedShowWarningState = () => {
89
96
  const val = localStorage.getItem(persistanceKey);
@@ -222,8 +229,7 @@ const DataEditor = ({ unresolvedComposition, defaultProps, setDefaultProps, prop
222
229
  jsx_runtime_1.jsxs("div", { style: tabWrapper, children: [
223
230
  jsx_runtime_1.jsx(SegmentedControl_1.SegmentedControl, { items: modeItems, needsWrapping: false }), jsx_runtime_1.jsx(layout_1.Flex, {}), warnings.length > 0 ? (jsx_runtime_1.jsx(WarningIndicatorButton_1.WarningIndicatorButton, { setShowWarning: setShowWarning, showWarning: showWarning, warningCount: warnings.length })) : null] }), showWarning && warnings.length > 0
224
231
  ? warnings.map((warning) => (jsx_runtime_1.jsxs(react_1.default.Fragment, { children: [
225
- jsx_runtime_1.jsx(layout_1.Spacing, { y: 1 }), jsx_runtime_1.jsx(ValidationMessage_1.ValidationMessage, { message: warning, align: "flex-start", type: "warning" })
226
- ] }, warning)))
232
+ jsx_runtime_1.jsx(layout_1.Spacing, { y: 1 }), jsx_runtime_1.jsx(ValidationMessage_1.ValidationMessage, { message: warning.message, align: "flex-start", type: "warning", action: warning.resolveLink ? (jsx_runtime_1.jsx("a", { href: warning.resolveLink, target: "_blank", rel: "noopener noreferrer", style: resolveLinkStyle, children: "Resolve" })) : null })] }, warning.id)))
227
233
  : null] }), mode === 'schema' ? (jsx_runtime_1.jsx(SchemaEditor_1.SchemaEditor, { value: defaultProps, setValue: setDefaultProps, schema: schema })) : (jsx_runtime_1.jsx(RenderModalJSONPropsEditor_1.RenderModalJSONPropsEditor, { value: defaultProps !== null && defaultProps !== void 0 ? defaultProps : {}, setValue: jsonEditorSetValue, onSave: onSave, serializedJSON: serializedJSON, defaultProps: unresolvedComposition.defaultProps, schema: schema, compositionId: unresolvedComposition.id }))] }));
228
234
  };
229
235
  exports.DataEditor = DataEditor;
@@ -1,5 +1,4 @@
1
- import type { ChromeMode, Codec, X264Preset } from '@remotion/renderer';
2
- import type { HardwareAccelerationOption } from '@remotion/renderer/client';
1
+ import type { ChromeMode } from '@remotion/renderer';
3
2
  import type { UiOpenGlOptions } from '@remotion/studio-shared';
4
3
  import React from 'react';
5
4
  export type RenderType = 'still' | 'video' | 'audio' | 'sequence';
@@ -11,8 +10,6 @@ export declare const RenderModalAdvanced: React.FC<{
11
10
  readonly concurrency: number;
12
11
  readonly delayRenderTimeout: number;
13
12
  readonly setDelayRenderTimeout: React.Dispatch<React.SetStateAction<number>>;
14
- readonly disallowParallelEncoding: boolean;
15
- readonly setDisallowParallelEncoding: React.Dispatch<React.SetStateAction<boolean>>;
16
13
  readonly setDisableWebSecurity: React.Dispatch<React.SetStateAction<boolean>>;
17
14
  readonly setIgnoreCertificateErrors: React.Dispatch<React.SetStateAction<boolean>>;
18
15
  readonly setHeadless: React.Dispatch<React.SetStateAction<boolean>>;
@@ -23,19 +20,12 @@ export declare const RenderModalAdvanced: React.FC<{
23
20
  readonly setOpenGlOption: React.Dispatch<React.SetStateAction<UiOpenGlOptions>>;
24
21
  readonly chromeModeOption: ChromeMode;
25
22
  readonly setChromeModeOption: React.Dispatch<React.SetStateAction<ChromeMode>>;
26
- readonly envVariables: [string, string][];
27
- readonly setEnvVariables: React.Dispatch<React.SetStateAction<[string, string][]>>;
28
- readonly x264Preset: X264Preset | null;
29
- readonly setx264Preset: React.Dispatch<React.SetStateAction<X264Preset>>;
30
- readonly hardwareAcceleration: HardwareAccelerationOption;
31
- readonly setHardwareAcceleration: React.Dispatch<React.SetStateAction<HardwareAccelerationOption>>;
32
23
  readonly offthreadVideoCacheSizeInBytes: number | null;
33
24
  readonly setOffthreadVideoCacheSizeInBytes: React.Dispatch<React.SetStateAction<number | null>>;
34
25
  readonly mediaCacheSizeInBytes: number | null;
35
26
  readonly setMediaCacheSizeInBytes: React.Dispatch<React.SetStateAction<number | null>>;
36
27
  readonly offthreadVideoThreads: number | null;
37
28
  readonly setOffthreadVideoThreads: React.Dispatch<React.SetStateAction<number | null>>;
38
- readonly codec: Codec;
39
29
  readonly enableMultiProcessOnLinux: boolean;
40
30
  readonly darkMode: boolean;
41
31
  readonly setDarkMode: React.Dispatch<React.SetStateAction<boolean>>;
@@ -4,7 +4,6 @@ exports.RenderModalAdvanced = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const client_1 = require("@remotion/renderer/client");
6
6
  const react_1 = require("react");
7
- const presets_labels_1 = require("../../helpers/presets-labels");
8
7
  const Checkmark_1 = require("../../icons/Checkmark");
9
8
  const Checkbox_1 = require("../Checkbox");
10
9
  const layout_1 = require("../layout");
@@ -14,13 +13,12 @@ const RemInput_1 = require("../NewComposition/RemInput");
14
13
  const layout_2 = require("./layout");
15
14
  const NumberSetting_1 = require("./NumberSetting");
16
15
  const OptionExplainerBubble_1 = require("./OptionExplainerBubble");
17
- const RenderModalEnvironmentVariables_1 = require("./RenderModalEnvironmentVariables");
18
16
  const RenderModalHr_1 = require("./RenderModalHr");
19
17
  const container = {
20
18
  flex: 1,
21
19
  overflowY: 'auto',
22
20
  };
23
- const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setConcurrency, concurrency, delayRenderTimeout, setDelayRenderTimeout, disallowParallelEncoding, setDisallowParallelEncoding, setDisableWebSecurity, setIgnoreCertificateErrors, setHeadless, headless, ignoreCertificateErrors, disableWebSecurity, openGlOption, setOpenGlOption, setEnvVariables, envVariables, setx264Preset, x264Preset, codec, setMediaCacheSizeInBytes, mediaCacheSizeInBytes, offthreadVideoCacheSizeInBytes, setOffthreadVideoCacheSizeInBytes, offthreadVideoThreads, setOffthreadVideoThreads, enableMultiProcessOnLinux, setChromiumMultiProcessOnLinux, setUserAgent, userAgent, beep, setBeep, repro, setRepro, hardwareAcceleration, chromeModeOption, setChromeModeOption, setHardwareAcceleration, darkMode, setDarkMode, }) => {
21
+ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setConcurrency, concurrency, delayRenderTimeout, setDelayRenderTimeout, setDisableWebSecurity, setIgnoreCertificateErrors, setHeadless, headless, ignoreCertificateErrors, disableWebSecurity, openGlOption, setOpenGlOption, setMediaCacheSizeInBytes, mediaCacheSizeInBytes, offthreadVideoCacheSizeInBytes, setOffthreadVideoCacheSizeInBytes, offthreadVideoThreads, setOffthreadVideoThreads, enableMultiProcessOnLinux, setChromiumMultiProcessOnLinux, setUserAgent, userAgent, beep, setBeep, repro, setRepro, chromeModeOption, setChromeModeOption, darkMode, setDarkMode, }) => {
24
22
  const extendedOpenGlOptions = (0, react_1.useMemo)(() => {
25
23
  return [
26
24
  'angle',
@@ -64,9 +62,6 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
64
62
  return null;
65
63
  });
66
64
  }, [setUserAgent]);
67
- const onDisallowParallelEncodingChanged = (0, react_1.useCallback)((e) => {
68
- setDisallowParallelEncoding(e.target.checked);
69
- }, [setDisallowParallelEncoding]);
70
65
  const onDisableWebSecurityChanged = (0, react_1.useCallback)((e) => {
71
66
  setDisableWebSecurity(e.target.checked);
72
67
  }, [setDisableWebSecurity]);
@@ -123,37 +118,6 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
123
118
  };
124
119
  });
125
120
  }, [chromeModeOption, setChromeModeOption]);
126
- const x264PresetOptions = (0, react_1.useMemo)(() => {
127
- return client_1.BrowserSafeApis.x264PresetOptions.map((option) => {
128
- return {
129
- label: (0, presets_labels_1.labelx264Preset)(option),
130
- onClick: () => setx264Preset(option),
131
- key: option,
132
- type: 'item',
133
- id: option,
134
- keyHint: null,
135
- leftItem: x264Preset === option ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
136
- quickSwitcherLabel: null,
137
- subMenu: null,
138
- value: option,
139
- };
140
- });
141
- }, [setx264Preset, x264Preset]);
142
- const hardwareAccelerationValues = (0, react_1.useMemo)(() => {
143
- return client_1.BrowserSafeApis.hardwareAccelerationOptions.map((option) => {
144
- return {
145
- label: option,
146
- onClick: () => setHardwareAcceleration(option),
147
- leftItem: hardwareAcceleration === option ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
148
- subMenu: null,
149
- quickSwitcherLabel: null,
150
- type: 'item',
151
- id: option,
152
- keyHint: null,
153
- value: option,
154
- };
155
- });
156
- }, [hardwareAcceleration, setHardwareAcceleration]);
157
121
  const changeMediaCacheSizeInBytes = (0, react_1.useCallback)((cb) => {
158
122
  setMediaCacheSizeInBytes((prev) => {
159
123
  if (prev === null) {
@@ -187,21 +151,11 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
187
151
  return cb;
188
152
  });
189
153
  }, [setOffthreadVideoThreads]);
190
- return (jsx_runtime_1.jsxs("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'still' ? null : (jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { min: minConcurrency, max: maxConcurrency, step: 1, name: "Concurrency", formatter: (w) => `${w}x`, onValueChanged: setConcurrency, value: concurrency })), renderMode === 'video' && codec === 'h264' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
191
- jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["x264 Preset",
192
- jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "x264Option" })
193
- ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { title: x264Preset, selectedId: x264Preset, values: x264PresetOptions }) })
194
- ] })) : null, renderMode === 'video' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
195
- jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Hardware acceleration",
196
- jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "hardwareAccelerationOption" })
197
- ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { title: hardwareAcceleration, selectedId: hardwareAcceleration, values: hardwareAccelerationValues }) })
198
- ] })) : null, jsx_runtime_1.jsx(NumberSetting_1.NumberSetting
154
+ return (jsx_runtime_1.jsxs("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'still' ? null : (jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { min: minConcurrency, max: maxConcurrency, step: 1, name: "Concurrency", formatter: (w) => `${w}x`, onValueChanged: setConcurrency, value: concurrency })), jsx_runtime_1.jsx(NumberSetting_1.NumberSetting
199
155
  // Also appears in packages/renderer/src/validate-puppeteer-timeout.ts
200
156
  , {
201
157
  // Also appears in packages/renderer/src/validate-puppeteer-timeout.ts
202
- min: 7000, max: 900000, name: "delayRender() timeout", onValueChanged: setDelayRenderTimeout, formatter: (w) => `${w}ms`, step: 1000, hint: "delayRenderTimeoutInMillisecondsOption", value: delayRenderTimeout }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
203
- jsx_runtime_1.jsx("div", { style: layout_2.label, children: "No parallel encoding" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: disallowParallelEncoding, onChange: onDisallowParallelEncodingChanged, name: "disallow-parallel-encoding" }) })
204
- ] }), renderMode === 'audio' ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
158
+ min: 7000, max: 900000, name: "delayRender() timeout", onValueChanged: setDelayRenderTimeout, formatter: (w) => `${w}ms`, step: 1000, hint: "delayRenderTimeoutInMillisecondsOption", value: delayRenderTimeout }), renderMode === 'audio' ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
205
159
  jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Custom @remotion/media cache size",
206
160
  jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "mediaCacheSizeInBytesOption" })
207
161
  ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: mediaCacheSizeInBytes !== null, onChange: toggleCustomMediaCacheSizeInBytes, name: "media-cache-size" }) })
@@ -250,7 +204,7 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
250
204
  jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Beep when finished ",
251
205
  jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "beepOnFinishOption" })
252
206
  ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: beep, onChange: onPlayBeepSound, name: "beep-when-finished" }) })
253
- ] }), jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {}), jsx_runtime_1.jsx(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })
207
+ ] })
254
208
  ] }));
255
209
  };
256
210
  exports.RenderModalAdvanced = RenderModalAdvanced;
@@ -0,0 +1,37 @@
1
+ import type { ColorSpace, Codec, PixelFormat, X264Preset } from '@remotion/renderer';
2
+ import type { HardwareAccelerationOption } from '@remotion/renderer/client';
3
+ import React from 'react';
4
+ import type { ComboboxValue } from '../NewComposition/ComboBox';
5
+ import type { RenderType } from './RenderModalAdvanced';
6
+ declare const qualityControlModes: readonly ["crf", "bitrate"];
7
+ export type QualityControl = (typeof qualityControlModes)[number];
8
+ export declare const RenderModalEncoding: React.FC<{
9
+ readonly renderMode: RenderType;
10
+ readonly codec: Codec;
11
+ readonly qualityControlType: QualityControl | null;
12
+ readonly setQualityControl: React.Dispatch<React.SetStateAction<QualityControl>>;
13
+ readonly shouldDisplayQualityControlPicker: boolean;
14
+ readonly crf: number | null;
15
+ readonly minCrf: number;
16
+ readonly maxCrf: number;
17
+ readonly setCrf: React.Dispatch<React.SetStateAction<number>>;
18
+ readonly customTargetVideoBitrate: string;
19
+ readonly setCustomTargetVideoBitrateValue: React.Dispatch<React.SetStateAction<string>>;
20
+ readonly encodingBufferSize: string | null;
21
+ readonly setEncodingBufferSize: React.Dispatch<React.SetStateAction<string | null>>;
22
+ readonly encodingMaxRate: string | null;
23
+ readonly setEncodingMaxRate: React.Dispatch<React.SetStateAction<string | null>>;
24
+ readonly pixelFormat: PixelFormat;
25
+ readonly pixelFormatOptions: ComboboxValue[];
26
+ readonly colorSpace: ColorSpace;
27
+ readonly setColorSpace: React.Dispatch<React.SetStateAction<ColorSpace>>;
28
+ readonly x264Preset: X264Preset | null;
29
+ readonly setx264Preset: React.Dispatch<React.SetStateAction<X264Preset>>;
30
+ readonly gopSize: number | null;
31
+ readonly setGopSize: React.Dispatch<React.SetStateAction<number | null>>;
32
+ readonly hardwareAcceleration: HardwareAccelerationOption;
33
+ readonly setHardwareAcceleration: React.Dispatch<React.SetStateAction<HardwareAccelerationOption>>;
34
+ readonly disallowParallelEncoding: boolean;
35
+ readonly setDisallowParallelEncoding: React.Dispatch<React.SetStateAction<boolean>>;
36
+ }>;
37
+ export {};