@remotion/cli 4.0.0-alpha4 → 4.0.0-alpha6
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/ansi/ansi-diff.d.ts +2 -1
- package/dist/ansi/ansi-diff.js +14 -20
- package/dist/ansi/ansi-split.d.ts +1 -0
- package/dist/ansi/ansi-split.js +16 -3
- package/dist/benchmark.js +64 -23
- package/dist/better-opn/index.js +3 -3
- package/dist/cloudrun-command.d.ts +1 -0
- package/dist/cloudrun-command.js +27 -0
- package/dist/codemods/update-default-props.d.ts +5 -0
- package/dist/codemods/update-default-props.js +143 -0
- package/dist/color-math.d.ts +2 -0
- package/dist/color-math.js +13 -0
- package/dist/composition-prompts.d.ts +3 -4
- package/dist/composition-prompts.js +0 -1
- package/dist/compositions.js +10 -4
- package/dist/config/bitrate.d.ts +2 -2
- package/dist/config/bitrate.js +2 -2
- package/dist/config/browser.d.ts +1 -3
- package/dist/config/browser.js +2 -12
- package/dist/config/codec.d.ts +0 -4
- package/dist/config/codec.js +1 -21
- package/dist/config/image-format.d.ts +5 -3
- package/dist/config/image-format.js +32 -10
- package/dist/config/index.d.ts +255 -14
- package/dist/config/index.js +16 -49
- package/dist/config/jpeg-quality.d.ts +2 -0
- package/dist/config/jpeg-quality.js +17 -0
- package/dist/config/public-dir.d.ts +1 -1
- package/dist/config/scale.d.ts +2 -1
- package/dist/convert-entry-point-to-serve-url.d.ts +1 -0
- package/dist/convert-entry-point-to-serve-url.js +15 -0
- package/dist/determine-image-format.d.ts +5 -4
- package/dist/determine-image-format.js +17 -4
- package/dist/download-progress.d.ts +2 -2
- package/dist/download-progress.js +12 -3
- package/dist/editor/components/Canvas.js +3 -0
- package/dist/editor/components/Checkbox.d.ts +6 -0
- package/dist/editor/components/Checkbox.js +42 -0
- package/dist/editor/components/CheckerboardProvider.d.ts +4 -0
- package/dist/editor/components/CheckerboardProvider.js +24 -0
- package/dist/editor/components/CompositionSelector.js +2 -4
- package/dist/editor/components/CompositionSelectorItem.d.ts +3 -3
- package/dist/editor/components/CompositionSelectorItem.js +24 -6
- package/dist/editor/components/CurrentComposition.js +4 -19
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +51 -0
- package/dist/editor/components/Editor.js +2 -11
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.js +10 -86
- package/dist/editor/components/GlobalKeybindings.js +4 -0
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/InlineAction.d.ts +7 -0
- package/dist/editor/components/InlineAction.js +31 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.js +5 -4
- package/dist/editor/components/MediaVolumeProvider.d.ts +4 -0
- package/dist/editor/components/MediaVolumeProvider.js +25 -0
- package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -1
- package/dist/editor/components/Menu/MenuSubItem.js +15 -3
- package/dist/editor/components/Menu/is-menu-item.d.ts +2 -0
- package/dist/editor/components/Menu/is-menu-item.js +3 -1
- package/dist/editor/components/Menu/styles.d.ts +4 -0
- package/dist/editor/components/Menu/styles.js +13 -4
- package/dist/editor/components/MenuToolbar.js +16 -3
- package/dist/editor/components/ModalContainer.d.ts +2 -0
- package/dist/editor/components/ModalContainer.js +12 -3
- package/dist/editor/components/ModalHeader.js +6 -2
- package/dist/editor/components/Modals.d.ts +2 -0
- package/dist/editor/components/Modals.js +23 -0
- package/dist/editor/components/ModalsProvider.d.ts +4 -0
- package/dist/editor/components/ModalsProvider.js +17 -0
- package/dist/editor/components/NewComposition/CancelButton.js +3 -0
- package/dist/editor/components/NewComposition/ComboBox.js +23 -15
- package/dist/editor/components/NewComposition/InputDragger.d.ts +4 -0
- package/dist/editor/components/NewComposition/InputDragger.js +12 -7
- package/dist/editor/components/NewComposition/MenuContent.js +14 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js +2 -2
- package/dist/editor/components/NewComposition/NewComposition.js +8 -5
- package/dist/editor/components/NewComposition/RemInput.d.ts +14 -2
- package/dist/editor/components/NewComposition/RemInput.js +24 -9
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +7 -0
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +53 -0
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +7 -0
- package/dist/editor/components/NewComposition/RemTextarea.js +92 -0
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +2 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +18 -8
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +1 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +11 -1
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -4
- package/dist/editor/components/Notifications/ServerDisconnected.js +4 -14
- package/dist/editor/components/PlayPause.js +6 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +3 -0
- package/dist/editor/components/PlaybackRateSelector.d.ts +0 -2
- package/dist/editor/components/PlaybackRateSelector.js +5 -6
- package/dist/editor/components/PlayerEmitterContext.d.ts +4 -0
- package/dist/editor/components/PlayerEmitterContext.js +11 -0
- package/dist/editor/components/Preview.d.ts +0 -1
- package/dist/editor/components/Preview.js +4 -4
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +8 -3
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +4 -2
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +0 -27
- package/dist/editor/components/QuickSwitcher/algolia-search.js +2 -3
- package/dist/editor/components/RenderButton.d.ts +2 -0
- package/dist/editor/components/RenderButton.js +103 -0
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/CliCopyButton.js +55 -0
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +15 -0
- package/dist/editor/components/RenderModal/CrfSetting.js +42 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +16 -0
- package/dist/editor/components/RenderModal/EnvInput.d.ts +11 -0
- package/dist/editor/components/RenderModal/EnvInput.js +74 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +42 -0
- package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +5 -0
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +78 -0
- package/dist/editor/components/RenderModal/InfoBubble.d.ts +5 -0
- package/dist/editor/components/RenderModal/InfoBubble.js +115 -0
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +5 -0
- package/dist/editor/components/RenderModal/InfoTooltip.js +41 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +5 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +17 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +17 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +12 -0
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/MutedSetting.js +16 -0
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +26 -0
- package/dist/editor/components/RenderModal/NumberSetting.d.ts +12 -0
- package/dist/editor/components/RenderModal/NumberSetting.js +29 -0
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +5 -0
- package/dist/editor/components/RenderModal/OptionExplainer.js +55 -0
- package/dist/editor/components/RenderModal/RenderModal.d.ts +35 -0
- package/dist/editor/components/RenderModal/RenderModal.js +597 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +26 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +61 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +17 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.js +46 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +23 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.js +79 -0
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +20 -0
- package/dist/editor/components/RenderModal/RenderModalData.js +249 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +5 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +55 -0
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +9 -0
- package/dist/editor/components/RenderModal/RenderModalGif.js +19 -0
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +2 -0
- package/dist/editor/components/RenderModal/RenderModalHr.js +18 -0
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +10 -0
- package/dist/editor/components/RenderModal/RenderModalInput.js +13 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.js +109 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +28 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.js +54 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +4 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.js +72 -0
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/ScaleSetting.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +39 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.js +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +59 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +40 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +84 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +116 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +76 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +55 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +72 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +23 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +9 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +88 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +64 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +52 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +48 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +84 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +49 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +158 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +6 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +24 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +2 -0
- package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +6 -0
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +49 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +15 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +34 -0
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +2 -0
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +18 -0
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +2 -0
- package/dist/editor/components/RenderModal/human-readable-codec.js +36 -0
- package/dist/editor/components/RenderModal/layout.d.ts +7 -0
- package/dist/editor/components/RenderModal/layout.js +45 -0
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +14 -0
- package/dist/editor/components/RenderModal/out-name-checker.js +80 -0
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +5 -0
- package/dist/editor/components/RenderQueue/CircularProgress.js +18 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +40 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +43 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +37 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +26 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +2 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.js +14 -0
- package/dist/editor/components/RenderQueue/actions.d.ts +58 -0
- package/dist/editor/components/RenderQueue/actions.js +120 -0
- package/dist/editor/components/RenderQueue/context.d.ts +18 -0
- package/dist/editor/components/RenderQueue/context.js +49 -0
- package/dist/editor/components/RenderQueue/index.d.ts +2 -0
- package/dist/editor/components/RenderQueue/index.js +43 -0
- package/dist/editor/components/RenderQueue/item-style.d.ts +2 -0
- package/dist/editor/components/RenderQueue/item-style.js +21 -0
- package/dist/editor/components/RendersTab.d.ts +6 -0
- package/dist/editor/components/RendersTab.js +43 -0
- package/dist/editor/components/RightPanel.d.ts +8 -0
- package/dist/editor/components/RightPanel.js +76 -0
- package/dist/editor/components/SegmentedControl.d.ts +11 -0
- package/dist/editor/components/SegmentedControl.js +62 -0
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +4 -0
- package/dist/editor/components/SetTimelineInOutProvider.js +19 -0
- package/dist/editor/components/SidebarCollapserControls.d.ts +2 -0
- package/dist/editor/components/SidebarCollapserControls.js +135 -0
- package/dist/editor/components/SidebarRenderButton.d.ts +6 -0
- package/dist/editor/components/SidebarRenderButton.js +85 -0
- package/dist/editor/components/SizeSelector.d.ts +0 -1
- package/dist/editor/components/SizeSelector.js +3 -3
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +1 -2
- package/dist/editor/components/Splitter/SplitterHandle.js +15 -7
- package/dist/editor/components/Tabs/index.d.ts +11 -0
- package/dist/editor/components/Tabs/index.js +58 -0
- package/dist/editor/components/Tabs/vertical.d.ts +7 -0
- package/dist/editor/components/Tabs/vertical.js +43 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +1 -1
- package/dist/editor/components/Timeline/Timeline.js +1 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +1 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +4 -5
- package/dist/editor/components/Timeline/TimelineListItem.js +2 -1
- package/dist/editor/components/Timeline/TimelineScrollable.js +2 -1
- package/dist/editor/components/Timeline/TimelineSequence.js +2 -14
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +2 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.js +2 -5
- package/dist/editor/components/Timeline/imperative-state.d.ts +0 -4
- package/dist/editor/components/Timeline/imperative-state.js +13 -13
- package/dist/editor/components/Timeline/is-collapsed.js +2 -3
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +5 -6
- package/dist/editor/components/TimelineInOutToggle.js +3 -0
- package/dist/editor/components/TopPanel.d.ts +1 -0
- package/dist/editor/components/TopPanel.js +30 -16
- package/dist/editor/components/ZoomGesturesProvider.d.ts +4 -0
- package/dist/editor/components/ZoomGesturesProvider.js +24 -0
- package/dist/editor/components/ZoomPersistor.d.ts +0 -1
- package/dist/editor/components/ZoomPersistor.js +2 -3
- package/dist/editor/components/get-zod-if-possible.d.ts +10 -0
- package/dist/editor/components/get-zod-if-possible.js +79 -0
- package/dist/editor/components/layout.d.ts +3 -1
- package/dist/editor/components/layout.js +9 -7
- package/dist/editor/helpers/calculate-timeline.d.ts +0 -4
- package/dist/editor/helpers/client-id.d.ts +17 -0
- package/dist/editor/helpers/client-id.js +46 -0
- package/dist/editor/helpers/colors.d.ts +4 -2
- package/dist/editor/helpers/colors.js +7 -4
- package/dist/editor/helpers/convert-env-variables.d.ts +2 -0
- package/dist/editor/helpers/convert-env-variables.js +20 -0
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -3
- package/dist/editor/helpers/create-folder-tree.js +3 -4
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +2 -1
- package/dist/editor/helpers/is-composition-still.d.ts +2 -2
- package/dist/editor/helpers/is-composition-still.js +3 -0
- package/dist/editor/helpers/prores-labels.d.ts +2 -0
- package/dist/editor/helpers/prores-labels.js +25 -0
- package/dist/editor/helpers/render-modal-sections.d.ts +10 -0
- package/dist/editor/helpers/render-modal-sections.js +32 -0
- package/dist/editor/helpers/use-breakpoint.d.ts +1 -0
- package/dist/editor/helpers/use-breakpoint.js +17 -0
- package/dist/editor/helpers/use-file-existence.d.ts +1 -0
- package/dist/editor/helpers/use-file-existence.js +66 -0
- package/dist/editor/helpers/use-keybinding.d.ts +1 -0
- package/dist/editor/helpers/use-keybinding.js +9 -0
- package/dist/editor/helpers/use-menu-structure.js +99 -51
- package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/audio.d.ts +2 -0
- package/dist/editor/icons/audio.js +6 -0
- package/dist/editor/icons/caret.d.ts +4 -1
- package/dist/editor/icons/caret.js +17 -1
- package/dist/editor/icons/data.d.ts +2 -0
- package/dist/editor/icons/data.js +8 -0
- package/dist/editor/icons/file.d.ts +2 -0
- package/dist/editor/icons/file.js +6 -0
- package/dist/editor/icons/folder.d.ts +6 -2
- package/dist/editor/icons/folder.js +4 -4
- package/dist/editor/icons/frame.d.ts +2 -0
- package/dist/editor/icons/frame.js +6 -0
- package/dist/editor/icons/gear.d.ts +2 -0
- package/dist/editor/icons/gear.js +6 -0
- package/dist/editor/icons/gif.d.ts +2 -0
- package/dist/editor/icons/gif.js +6 -0
- package/dist/editor/icons/render.d.ts +9 -0
- package/dist/editor/icons/render.js +12 -0
- package/dist/editor/icons/still.d.ts +3 -1
- package/dist/editor/icons/still.js +2 -2
- package/dist/editor/icons/video.d.ts +5 -0
- package/dist/editor/icons/video.js +8 -0
- package/dist/editor/state/keybindings.d.ts +2 -1
- package/dist/editor/state/modals.d.ts +38 -0
- package/dist/editor/state/preview-size.d.ts +0 -1
- package/dist/editor/state/preview-size.js +3 -4
- package/dist/editor/state/sidebar.d.ts +7 -3
- package/dist/editor/state/sidebar.js +42 -13
- package/dist/editor/state/timeline-ref.d.ts +2 -1
- package/dist/editor/state/z-index.d.ts +0 -5
- package/dist/editor/state/z-index.js +16 -6
- package/dist/entry-point.js +17 -17
- package/dist/event-source-events.d.ts +15 -0
- package/dist/event-source.d.ts +2 -0
- package/dist/event-source.js +31 -5
- package/dist/ffmpeg.d.ts +2 -0
- package/dist/ffmpeg.js +26 -0
- package/dist/file-watcher.d.ts +9 -0
- package/dist/file-watcher.js +35 -0
- package/dist/get-cli-options.d.ts +3 -12
- package/dist/get-cli-options.js +11 -64
- package/dist/get-composition-id.d.ts +7 -3
- package/dist/get-composition-id.js +17 -3
- package/dist/get-composition-with-dimension-override.d.ts +5 -4
- package/dist/get-composition-with-dimension-override.js +6 -2
- package/dist/get-config-file-name.d.ts +0 -2
- package/dist/get-config-file-name.js +11 -11
- package/dist/get-default-out-name.d.ts +5 -0
- package/dist/get-default-out-name.js +10 -0
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +48 -57
- package/dist/get-filename.d.ts +5 -1
- package/dist/get-filename.js +6 -4
- package/dist/get-final-output-codec.d.ts +2 -1
- package/dist/get-final-output-codec.js +4 -1
- package/dist/get-input-props.d.ts +1 -5
- package/dist/get-input-props.js +18 -20
- package/dist/get-network-address.js +2 -2
- package/dist/image-formats.d.ts +5 -2
- package/dist/image-formats.js +16 -6
- package/dist/index.d.ts +91 -22
- package/dist/index.js +16 -13
- package/dist/list-of-remotion-packages.js +1 -0
- package/dist/load-config.js +9 -9
- package/dist/log.d.ts +14 -0
- package/dist/log.js +24 -8
- package/dist/parse-command-line.d.ts +5 -5
- package/dist/parse-command-line.js +6 -14
- package/dist/preview-server/api-routes.d.ts +4 -0
- package/dist/preview-server/api-routes.js +21 -0
- package/dist/preview-server/api-types.d.ts +25 -0
- package/dist/preview-server/api-types.js +2 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +2 -2
- package/dist/preview-server/dev-middleware/middleware.d.ts +1 -2
- package/dist/preview-server/dev-middleware/middleware.js +8 -9
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +5 -5
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +17 -17
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +8 -4
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +12 -8
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +2 -1
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -1
- package/dist/preview-server/file-existence-watchers.d.ts +13 -0
- package/dist/preview-server/file-existence-watchers.js +62 -0
- package/dist/preview-server/get-absolute-public-dir.js +3 -3
- package/dist/preview-server/get-package-manager.js +3 -3
- package/dist/preview-server/handler.d.ts +9 -0
- package/dist/preview-server/handler.js +34 -0
- package/dist/preview-server/hot-middleware/client.js +2 -2
- package/dist/preview-server/hot-middleware/index.d.ts +1 -1
- package/dist/preview-server/hot-middleware/index.js +2 -2
- package/dist/preview-server/live-events.d.ts +3 -1
- package/dist/preview-server/live-events.js +22 -2
- package/dist/preview-server/parse-body.d.ts +2 -0
- package/dist/preview-server/parse-body.js +16 -0
- package/dist/preview-server/project-info.js +5 -5
- package/dist/preview-server/public-folder.d.ts +0 -5
- package/dist/preview-server/public-folder.js +11 -12
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +10 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.js +13 -0
- package/dist/preview-server/render-queue/job.d.ts +138 -0
- package/dist/preview-server/render-queue/job.js +2 -0
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +3 -0
- package/dist/preview-server/render-queue/make-retry-payload.js +91 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +1 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.js +43 -0
- package/dist/preview-server/render-queue/process-still.d.ts +8 -0
- package/dist/preview-server/render-queue/process-still.js +46 -0
- package/dist/preview-server/render-queue/process-video.d.ts +8 -0
- package/dist/preview-server/render-queue/process-video.js +63 -0
- package/dist/preview-server/render-queue/queue.d.ts +9 -0
- package/dist/preview-server/render-queue/queue.js +212 -0
- package/dist/preview-server/routes/add-render.d.ts +3 -0
- package/dist/preview-server/routes/add-render.js +76 -0
- package/dist/preview-server/routes/can-update-default-props.d.ts +4 -0
- package/dist/preview-server/routes/can-update-default-props.js +39 -0
- package/dist/preview-server/routes/cancel-render.d.ts +3 -0
- package/dist/preview-server/routes/cancel-render.js +9 -0
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +3 -0
- package/dist/preview-server/routes/open-in-file-explorer.js +8 -0
- package/dist/preview-server/routes/remove-render.d.ts +3 -0
- package/dist/preview-server/routes/remove-render.js +9 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.js +13 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +13 -0
- package/dist/preview-server/routes/update-default-props.d.ts +3 -0
- package/dist/preview-server/routes/update-default-props.js +24 -0
- package/dist/preview-server/routes.d.ts +3 -2
- package/dist/preview-server/routes.js +79 -21
- package/dist/preview-server/serve-static.d.ts +1 -1
- package/dist/preview-server/serve-static.js +7 -7
- package/dist/preview-server/start-server.js +3 -2
- package/dist/preview.js +12 -25
- package/dist/previewEntry.js +2 -3
- package/dist/print-compositions.d.ts +2 -2
- package/dist/print-error.js +4 -2
- package/dist/print-help.js +4 -8
- package/dist/progress-bar.d.ts +17 -37
- package/dist/progress-bar.js +102 -41
- package/dist/progress-types.d.ts +32 -0
- package/dist/progress-types.js +17 -0
- package/dist/render-flows/render.d.ts +47 -0
- package/dist/render-flows/render.js +293 -0
- package/dist/render-flows/still.d.ts +29 -0
- package/dist/render-flows/still.js +174 -0
- package/dist/render.js +42 -232
- package/dist/required-chromium-options.d.ts +3 -0
- package/dist/required-chromium-options.js +2 -0
- package/dist/resolve-from.js +5 -5
- package/dist/select-composition.d.ts +2 -1
- package/dist/setup-cache.d.ts +12 -9
- package/dist/setup-cache.js +29 -20
- package/dist/still.js +25 -130
- package/dist/upgrade.js +2 -2
- package/dist/user-passed-output-location.js +2 -7
- package/dist/versions.js +2 -2
- package/package.json +22 -7
- package/styles/styles.css +13 -3
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getUserPreferredVideoImageFormat = exports.getUserPreferredStillImageFormat = exports.setVideoImageFormat = exports.setStillImageFormat = void 0;
|
|
4
4
|
const renderer_1 = require("@remotion/renderer");
|
|
5
5
|
const truthy_1 = require("../truthy");
|
|
6
|
-
let
|
|
7
|
-
|
|
6
|
+
let currentStillImageFormat;
|
|
7
|
+
let currentVideoImageFormat;
|
|
8
|
+
const setStillImageFormat = (format) => {
|
|
8
9
|
if (typeof format === 'undefined') {
|
|
9
|
-
|
|
10
|
+
currentStillImageFormat = undefined;
|
|
10
11
|
return;
|
|
11
12
|
}
|
|
12
|
-
if (!renderer_1.RenderInternals.
|
|
13
|
+
if (!renderer_1.RenderInternals.validStillImageFormats.includes(format)) {
|
|
13
14
|
throw new TypeError([
|
|
14
15
|
`Value ${format} is not valid as an image format.`,
|
|
15
16
|
// @ts-expect-error
|
|
@@ -18,10 +19,31 @@ const setImageFormat = (format) => {
|
|
|
18
19
|
.filter(truthy_1.truthy)
|
|
19
20
|
.join(' '));
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
currentStillImageFormat = format;
|
|
22
23
|
};
|
|
23
|
-
exports.
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
exports.setStillImageFormat = setStillImageFormat;
|
|
25
|
+
const setVideoImageFormat = (format) => {
|
|
26
|
+
if (typeof format === 'undefined') {
|
|
27
|
+
currentVideoImageFormat = undefined;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (!renderer_1.RenderInternals.validVideoImageFormats.includes(format)) {
|
|
31
|
+
throw new TypeError([
|
|
32
|
+
`Value ${format} is not valid as a video image format.`,
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
format === 'jpg' ? 'Did you mean "jpeg"?' : null,
|
|
35
|
+
]
|
|
36
|
+
.filter(truthy_1.truthy)
|
|
37
|
+
.join(' '));
|
|
38
|
+
}
|
|
39
|
+
currentVideoImageFormat = format;
|
|
40
|
+
};
|
|
41
|
+
exports.setVideoImageFormat = setVideoImageFormat;
|
|
42
|
+
const getUserPreferredStillImageFormat = () => {
|
|
43
|
+
return currentStillImageFormat;
|
|
44
|
+
};
|
|
45
|
+
exports.getUserPreferredStillImageFormat = getUserPreferredStillImageFormat;
|
|
46
|
+
const getUserPreferredVideoImageFormat = () => {
|
|
47
|
+
return currentVideoImageFormat;
|
|
26
48
|
};
|
|
27
|
-
exports.
|
|
49
|
+
exports.getUserPreferredVideoImageFormat = getUserPreferredVideoImageFormat;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,22 +1,263 @@
|
|
|
1
1
|
import * as Logging from './log';
|
|
2
2
|
import type { WebpackConfiguration } from '@remotion/bundler';
|
|
3
|
-
import type {
|
|
3
|
+
import type { BrowserExecutable, CodecOrUndefined, Crf, FrameRange, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
4
4
|
import type { Concurrency } from './concurrency';
|
|
5
|
+
import type { Loop } from './number-of-gif-loops';
|
|
5
6
|
import type { WebpackOverrideFn } from './override-webpack';
|
|
6
|
-
|
|
7
|
+
declare global {
|
|
8
|
+
interface RemotionBundlingOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Specify the entry point so you don't have to specify it in the
|
|
11
|
+
* CLI command
|
|
12
|
+
*/
|
|
13
|
+
readonly setEntryPoint: (src: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Whether Webpack bundles should be cached to make
|
|
16
|
+
* subsequent renders faster. Default: true
|
|
17
|
+
*/
|
|
18
|
+
readonly setCachingEnabled: (flag: boolean) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Define on which port Remotion should start it's HTTP servers during preview and rendering.
|
|
21
|
+
* By default, Remotion will try to find a free port.
|
|
22
|
+
* If you specify a port, but it's not available, Remotion will throw an error.
|
|
23
|
+
*/
|
|
24
|
+
readonly setPort: (port: number | undefined) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Define the location of the public/ directory.
|
|
27
|
+
* By default it is a folder named "public" inside the current working directory.
|
|
28
|
+
* You can set an absolute path or a relative path that will be resolved from the closest package.json location.
|
|
29
|
+
*/
|
|
30
|
+
readonly setPublicDir: (publicDir: string | null) => void;
|
|
31
|
+
readonly overrideWebpackConfig: (f: WebpackOverrideFn) => void;
|
|
32
|
+
}
|
|
33
|
+
interface RemotionConfigObject {
|
|
34
|
+
/**
|
|
35
|
+
* Change the maximum amount of tracks that are shown in the timeline.
|
|
36
|
+
* @param maxTracks The maximum amount of timeline tracks that you would like to show.
|
|
37
|
+
* @default 15
|
|
38
|
+
*/
|
|
39
|
+
readonly setMaxTimelineTracks: (maxTracks: number) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Enable Keyboard shortcuts in the Remotion Preview.
|
|
42
|
+
* @param enabled Boolean whether to enable the keyboard shortcuts
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Set number of shared audio tags. https://www.remotion.dev/docs/player/autoplay#use-the-numberofsharedaudiotags-property
|
|
48
|
+
* @param numberOfAudioTags
|
|
49
|
+
* @default 0
|
|
50
|
+
*/
|
|
51
|
+
readonly setNumberOfSharedAudioTags: (numberOfAudioTags: number) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Enable Webpack polling instead of file system listeners for hot reloading in the preview.
|
|
54
|
+
* This is useful if you are using a remote directory or a virtual machine.
|
|
55
|
+
* @param interval
|
|
56
|
+
* @default null
|
|
57
|
+
*/
|
|
58
|
+
readonly setWebpackPollingInMilliseconds: (interval: number | null) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Whether Remotion should open a browser when starting the Preview.
|
|
61
|
+
* @param should
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
readonly setShouldOpenBrowser: (should: boolean) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Set the log level.
|
|
67
|
+
* Acceptable values: 'error' | 'warning' | 'info' | 'verbose'
|
|
68
|
+
* Default value: 'info'
|
|
69
|
+
*
|
|
70
|
+
* Set this to 'verbose' to get browser logs and other IO.
|
|
71
|
+
*/
|
|
72
|
+
readonly setLevel: (newLogLevel: 'verbose' | 'info' | 'warn' | 'error') => void;
|
|
73
|
+
/**
|
|
74
|
+
* Specify executable path for the browser to use.
|
|
75
|
+
* Default: null, which will make Remotion find or download a version of said browser.
|
|
76
|
+
*/
|
|
77
|
+
readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Set how many milliseconds a frame may take to render before it times out.
|
|
80
|
+
* Default: `30000`
|
|
81
|
+
*/
|
|
82
|
+
readonly setDelayRenderTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Renamed to `setDelayRenderTimeoutInMilliseconds`.
|
|
85
|
+
* Set how many milliseconds a frame may take to render before it times out.
|
|
86
|
+
* Default: `30000`
|
|
87
|
+
*/
|
|
88
|
+
readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Setting deciding whether to disable CORS and other Chrome security features.
|
|
91
|
+
* Default: false
|
|
92
|
+
*/
|
|
93
|
+
readonly setChromiumDisableWebSecurity: (should: boolean) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Setting whether to ignore any invalid SSL certificates, such as self-signed ones.
|
|
96
|
+
* Default: false
|
|
97
|
+
*/
|
|
98
|
+
readonly setChromiumIgnoreCertificateErrors: (should: boolean) => void;
|
|
99
|
+
/**
|
|
100
|
+
* If false, will open an actual browser during rendering to observe progress.
|
|
101
|
+
* Default: true
|
|
102
|
+
*/
|
|
103
|
+
readonly setChromiumHeadlessMode: (should: boolean) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
|
|
106
|
+
* Default: 'swangle' in Lambda, null elsewhere.
|
|
107
|
+
*/
|
|
108
|
+
readonly setChromiumOpenGlRenderer: (renderer: 'swangle' | 'angle' | 'egl' | 'swiftshader') => void;
|
|
109
|
+
/**
|
|
110
|
+
* Set the user agent for Chrome. Only works during rendering.
|
|
111
|
+
* Default is the default user agent for Chrome
|
|
112
|
+
*/
|
|
113
|
+
readonly setChromiumUserAgent: (userAgent: string | null) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Set a custom location for a .env file.
|
|
116
|
+
* Default: `.env`
|
|
117
|
+
*/
|
|
118
|
+
readonly setDotEnvLocation: (file: string) => void;
|
|
119
|
+
/**
|
|
120
|
+
* Sets how many Puppeteer instances will work on rendering your video in parallel.
|
|
121
|
+
* Default: `null`, meaning half of the threads available on your CPU.
|
|
122
|
+
*/
|
|
123
|
+
readonly setConcurrency: (newConcurrency: Concurrency) => void;
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated Renamed to `setJpegQuality`.
|
|
126
|
+
*/
|
|
127
|
+
readonly setQuality: (q: never) => void;
|
|
128
|
+
/**
|
|
129
|
+
* @deprecated Separated into `setStillImageFormat()` and `setVideoImageFormat()`.
|
|
130
|
+
*/
|
|
131
|
+
readonly setImageFormat: (q: never) => void;
|
|
132
|
+
/**
|
|
133
|
+
* Set the JPEG quality for the frames.
|
|
134
|
+
* Must be between 0 and 100.
|
|
135
|
+
* Default: 80
|
|
136
|
+
*/
|
|
137
|
+
readonly setJpegQuality: (q: number | undefined) => void;
|
|
138
|
+
/** Decide the image format for still renders.
|
|
139
|
+
*/
|
|
140
|
+
readonly setStillImageFormat: (format: StillImageFormat) => void;
|
|
141
|
+
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
|
|
142
|
+
* PNG is slower, but supports transparency.
|
|
143
|
+
*/
|
|
144
|
+
readonly setVideoImageFormat: (format: VideoImageFormat) => void;
|
|
145
|
+
/**
|
|
146
|
+
* Render only a subset of a video.
|
|
147
|
+
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
|
|
148
|
+
* Pass in a single number `20` to only render a single frame as an image.
|
|
149
|
+
* The frame count starts at 0.
|
|
150
|
+
*/
|
|
151
|
+
readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Scales the output dimensions by a factor.
|
|
154
|
+
* Default: 1.
|
|
155
|
+
*/
|
|
156
|
+
readonly setScale: (newScale: number) => void;
|
|
157
|
+
/**
|
|
158
|
+
* Specify which frames should be picked for rendering a GIF
|
|
159
|
+
* Default: 1, which means every frame
|
|
160
|
+
* https://remotion.dev/docs/render-as-gif
|
|
161
|
+
*/
|
|
162
|
+
readonly setEveryNthFrame: (frame: number) => void;
|
|
163
|
+
/**
|
|
164
|
+
* Specify the number of Loop a GIF should have.
|
|
165
|
+
* Default: null (means GIF will loop infinite)
|
|
166
|
+
*/
|
|
167
|
+
readonly setNumberOfGifLoops: (newLoop: Loop) => void;
|
|
168
|
+
/**
|
|
169
|
+
* Disable audio output.
|
|
170
|
+
* Default: false
|
|
171
|
+
*/
|
|
172
|
+
readonly setMuted: (muted: boolean) => void;
|
|
173
|
+
/**
|
|
174
|
+
* Don't render an audio track if it would be silent.
|
|
175
|
+
* Default: true
|
|
176
|
+
*/
|
|
177
|
+
readonly setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
|
|
178
|
+
/**
|
|
179
|
+
* Set the output file location string. Default: `out/{composition}.{codec}`
|
|
180
|
+
*/
|
|
181
|
+
readonly setOutputLocation: (newOutputLocation: string) => void;
|
|
182
|
+
/**
|
|
183
|
+
* If the video file already exists, should Remotion overwrite
|
|
184
|
+
* the output? Default: true
|
|
185
|
+
*/
|
|
186
|
+
readonly setOverwriteOutput: (newOverwrite: boolean) => void;
|
|
187
|
+
/**
|
|
188
|
+
* Sets the pixel format in FFMPEG.
|
|
189
|
+
* See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
|
|
190
|
+
* You can override this using the `--pixel-format` Cli flag.
|
|
191
|
+
*/
|
|
192
|
+
readonly setPixelFormat: (format: 'yuv420p' | 'yuva420p' | 'yuv422p' | 'yuv444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv444p10le' | 'yuva444p10le') => void;
|
|
193
|
+
/**
|
|
194
|
+
* Specify the codec for stitching the frames into a video.
|
|
195
|
+
* Can be `h264` (default), `h265`, `vp8` or `vp9`
|
|
196
|
+
*/
|
|
197
|
+
readonly setCodec: (newCodec: CodecOrUndefined) => void;
|
|
198
|
+
/**
|
|
199
|
+
* Set the Constant Rate Factor to pass to FFMPEG.
|
|
200
|
+
* Lower values mean better quality, but be aware that the ranges of
|
|
201
|
+
* possible values greatly differs between codecs.
|
|
202
|
+
*/
|
|
203
|
+
readonly setCrf: (newCrf: Crf) => void;
|
|
204
|
+
/**
|
|
205
|
+
* Set to true if don't want a video but an image sequence as the output.
|
|
206
|
+
*/
|
|
207
|
+
readonly setImageSequence: (newImageSequence: boolean) => void;
|
|
208
|
+
/**
|
|
209
|
+
* Overrides the height of a composition
|
|
210
|
+
*/
|
|
211
|
+
readonly overrideHeight: (newHeight: number) => void;
|
|
212
|
+
/**
|
|
213
|
+
* Overrides the width of a composition
|
|
214
|
+
*/
|
|
215
|
+
readonly overrideWidth: (newWidth: number) => void;
|
|
216
|
+
/**
|
|
217
|
+
* Set the ProRes profile.
|
|
218
|
+
* This method is only valid if the codec has been set to 'prores'.
|
|
219
|
+
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
|
|
220
|
+
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
|
|
221
|
+
*/
|
|
222
|
+
readonly setProResProfile: (profile: '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy' | undefined) => void;
|
|
223
|
+
/**
|
|
224
|
+
* Override the arguments that Remotion passes to FFMPEG.
|
|
225
|
+
* Consult https://remotion.dev/docs/renderer/render-media#ffmpegoverride before using this feature.
|
|
226
|
+
*/
|
|
227
|
+
readonly overrideFfmpegCommand: (command: (info: {
|
|
228
|
+
type: 'pre-stitcher' | 'stitcher';
|
|
229
|
+
args: string[];
|
|
230
|
+
}) => string[]) => void;
|
|
231
|
+
/**
|
|
232
|
+
* Set a target audio bitrate to be passed to FFMPEG.
|
|
233
|
+
*/
|
|
234
|
+
readonly setAudioBitrate: (bitrate: string | null) => void;
|
|
235
|
+
/**
|
|
236
|
+
* Set a target video bitrate to be passed to FFMPEG.
|
|
237
|
+
* Mutually exclusive with setCrf().
|
|
238
|
+
*/
|
|
239
|
+
readonly setVideoBitrate: (bitrate: string | null) => void;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
declare type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
|
|
243
|
+
/**
|
|
244
|
+
* Set the audio codec to use for the output video.
|
|
245
|
+
* See the Encoding guide in the docs for defaults and available options.
|
|
246
|
+
*/
|
|
247
|
+
setAudioCodec: (codec: 'pcm-16' | 'aac' | 'mp3' | 'opus') => void;
|
|
248
|
+
};
|
|
249
|
+
export declare const Config: FlatConfig;
|
|
7
250
|
export type { Concurrency, WebpackConfiguration, WebpackOverrideFn };
|
|
8
251
|
export declare const ConfigInternals: {
|
|
9
|
-
getRange: () =>
|
|
10
|
-
getOutputCodecOrUndefined: () =>
|
|
11
|
-
|
|
12
|
-
getBrowser: () => import("@remotion/renderer").Browser | null;
|
|
252
|
+
getRange: () => FrameRange | null;
|
|
253
|
+
getOutputCodecOrUndefined: () => CodecOrUndefined;
|
|
254
|
+
getBrowser: () => null;
|
|
13
255
|
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
14
256
|
getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
|
|
15
257
|
getShouldOverwrite: ({ defaultValue, }: {
|
|
16
258
|
defaultValue: boolean;
|
|
17
259
|
}) => boolean;
|
|
18
|
-
getBrowserExecutable: () =>
|
|
19
|
-
getCustomFfprobeExecutable: () => import("@remotion/renderer").FfmpegExecutable;
|
|
260
|
+
getBrowserExecutable: () => BrowserExecutable;
|
|
20
261
|
getScale: () => number;
|
|
21
262
|
getServerPort: () => number | undefined;
|
|
22
263
|
getChromiumDisableWebSecurity: () => boolean;
|
|
@@ -26,12 +267,13 @@ export declare const ConfigInternals: {
|
|
|
26
267
|
getEveryNthFrame: () => number;
|
|
27
268
|
getConcurrency: () => string | number | null;
|
|
28
269
|
getCurrentPuppeteerTimeout: () => number;
|
|
29
|
-
|
|
270
|
+
getJpegQuality: () => number | undefined;
|
|
30
271
|
getAudioCodec: () => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
31
272
|
getStillFrame: () => number;
|
|
32
|
-
getShouldOutputImageSequence: (frameRange:
|
|
273
|
+
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
|
|
33
274
|
getDotEnvLocation: () => string | null;
|
|
34
|
-
|
|
275
|
+
getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
276
|
+
getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
|
|
35
277
|
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
36
278
|
getWebpackCaching: () => boolean;
|
|
37
279
|
getOutputLocation: () => string | null;
|
|
@@ -51,11 +293,10 @@ export declare const ConfigInternals: {
|
|
|
51
293
|
getVideoBitrate: () => string | null;
|
|
52
294
|
getHeight: () => number | null;
|
|
53
295
|
getWidth: () => number | null;
|
|
54
|
-
getCrfOrUndefined: () =>
|
|
296
|
+
getCrfOrUndefined: () => Crf;
|
|
55
297
|
getEntryPoint: () => string | null;
|
|
56
|
-
getNumberOfGifLoops: () =>
|
|
298
|
+
getNumberOfGifLoops: () => Loop;
|
|
57
299
|
getWebpackPolling: () => number | null;
|
|
58
300
|
getShouldOpenBrowser: () => boolean;
|
|
59
301
|
getChromiumUserAgent: () => string | null;
|
|
60
302
|
};
|
|
61
|
-
export declare const overrideRemotion: () => void;
|
package/dist/config/index.js
CHANGED
|
@@ -23,18 +23,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
const remotion_1 = require("remotion");
|
|
26
|
+
exports.ConfigInternals = exports.Config = void 0;
|
|
28
27
|
const browser_1 = require("./browser");
|
|
29
28
|
const browser_executable_1 = require("./browser-executable");
|
|
30
29
|
const chromium_flags_1 = require("./chromium-flags");
|
|
31
30
|
const codec_1 = require("./codec");
|
|
32
31
|
const concurrency_1 = require("./concurrency");
|
|
33
32
|
const env_file_1 = require("./env-file");
|
|
34
|
-
const ffmpeg_executable_1 = require("./ffmpeg-executable");
|
|
35
33
|
const frame_range_1 = require("./frame-range");
|
|
36
34
|
const image_format_1 = require("./image-format");
|
|
37
35
|
const image_sequence_1 = require("./image-sequence");
|
|
36
|
+
const jpeg_quality_1 = require("./jpeg-quality");
|
|
38
37
|
const Logging = __importStar(require("./log"));
|
|
39
38
|
const max_timeline_tracks_1 = require("./max-timeline-tracks");
|
|
40
39
|
const output_location_1 = require("./output-location");
|
|
@@ -43,7 +42,6 @@ const overwrite_1 = require("./overwrite");
|
|
|
43
42
|
const pixel_format_1 = require("./pixel-format");
|
|
44
43
|
const preview_server_1 = require("./preview-server");
|
|
45
44
|
const prores_profile_1 = require("./prores-profile");
|
|
46
|
-
const quality_1 = require("./quality");
|
|
47
45
|
const scale_1 = require("./scale");
|
|
48
46
|
const still_frame_1 = require("./still-frame");
|
|
49
47
|
const timeout_1 = require("./timeout");
|
|
@@ -59,12 +57,11 @@ const enforce_audio_track_1 = require("./enforce-audio-track");
|
|
|
59
57
|
const entry_point_1 = require("./entry-point");
|
|
60
58
|
const env_file_2 = require("./env-file");
|
|
61
59
|
const every_nth_frame_1 = require("./every-nth-frame");
|
|
62
|
-
const ffmpeg_executable_2 = require("./ffmpeg-executable");
|
|
63
60
|
const ffmpeg_override_1 = require("./ffmpeg-override");
|
|
64
61
|
const frame_range_2 = require("./frame-range");
|
|
65
62
|
const height_1 = require("./height");
|
|
66
|
-
const image_format_2 = require("./image-format");
|
|
67
63
|
const image_sequence_2 = require("./image-sequence");
|
|
64
|
+
const jpeg_quality_2 = require("./jpeg-quality");
|
|
68
65
|
const keyboard_shortcuts_1 = require("./keyboard-shortcuts");
|
|
69
66
|
const log_1 = require("./log");
|
|
70
67
|
const max_timeline_tracks_2 = require("./max-timeline-tracks");
|
|
@@ -79,31 +76,24 @@ const pixel_format_2 = require("./pixel-format");
|
|
|
79
76
|
const preview_server_2 = require("./preview-server");
|
|
80
77
|
const prores_profile_2 = require("./prores-profile");
|
|
81
78
|
const public_dir_1 = require("./public-dir");
|
|
82
|
-
const quality_2 = require("./quality");
|
|
83
79
|
const scale_2 = require("./scale");
|
|
84
80
|
const timeout_2 = require("./timeout");
|
|
85
81
|
const user_agent_1 = require("./user-agent");
|
|
86
82
|
const webpack_caching_2 = require("./webpack-caching");
|
|
87
83
|
const webpack_poll_1 = require("./webpack-poll");
|
|
88
84
|
const width_1 = require("./width");
|
|
89
|
-
|
|
85
|
+
exports.Config = {
|
|
90
86
|
setMaxTimelineTracks: max_timeline_tracks_2.setMaxTimelineTracks,
|
|
91
87
|
setKeyboardShortcutsEnabled: keyboard_shortcuts_1.setKeyboardShortcutsEnabled,
|
|
92
88
|
setNumberOfSharedAudioTags: number_of_shared_audio_tags_1.setNumberOfSharedAudioTags,
|
|
93
89
|
setWebpackPollingInMilliseconds: webpack_poll_1.setWebpackPollingInMilliseconds,
|
|
94
90
|
setShouldOpenBrowser: open_browser_1.setShouldOpenBrowser,
|
|
95
|
-
};
|
|
96
|
-
const Bundling = {
|
|
97
91
|
overrideWebpackConfig: override_webpack_2.overrideWebpackConfig,
|
|
98
92
|
setCachingEnabled: webpack_caching_2.setWebpackCaching,
|
|
99
93
|
setPort: preview_server_2.setPort,
|
|
100
94
|
setPublicDir: public_dir_1.setPublicDir,
|
|
101
95
|
setEntryPoint: entry_point_1.setEntryPoint,
|
|
102
|
-
};
|
|
103
|
-
const Log = {
|
|
104
96
|
setLevel: log_1.setLogLevel,
|
|
105
|
-
};
|
|
106
|
-
const Puppeteer = {
|
|
107
97
|
setBrowserExecutable: browser_executable_2.setBrowserExecutable,
|
|
108
98
|
setTimeoutInMilliseconds: timeout_2.setPuppeteerTimeout,
|
|
109
99
|
setDelayRenderTimeoutInMilliseconds: timeout_2.setPuppeteerTimeout,
|
|
@@ -112,26 +102,26 @@ const Puppeteer = {
|
|
|
112
102
|
setChromiumHeadlessMode: chromium_flags_2.setChromiumHeadlessMode,
|
|
113
103
|
setChromiumOpenGlRenderer: chromium_flags_2.setChromiumOpenGlRenderer,
|
|
114
104
|
setChromiumUserAgent: user_agent_1.setChromiumUserAgent,
|
|
115
|
-
};
|
|
116
|
-
const Rendering = {
|
|
117
105
|
setDotEnvLocation: env_file_2.setDotEnvLocation,
|
|
118
106
|
setConcurrency: concurrency_2.setConcurrency,
|
|
119
|
-
setQuality:
|
|
120
|
-
|
|
107
|
+
setQuality: () => {
|
|
108
|
+
throw new Error('setQuality() has been renamed - use setJpegQuality() instead.');
|
|
109
|
+
},
|
|
110
|
+
setImageFormat: () => {
|
|
111
|
+
throw new Error('setImageFormat() has been renamed - use setVideoImageFormat() or setStillImageFormat() instead.');
|
|
112
|
+
},
|
|
113
|
+
setJpegQuality: jpeg_quality_2.setJpegQuality,
|
|
114
|
+
setStillImageFormat: image_format_1.setStillImageFormat,
|
|
115
|
+
setVideoImageFormat: image_format_1.setVideoImageFormat,
|
|
121
116
|
setFrameRange: frame_range_2.setFrameRange,
|
|
122
|
-
setFfmpegExecutable: ffmpeg_executable_2.setFfmpegExecutable,
|
|
123
|
-
setFfprobeExecutable: ffmpeg_executable_2.setFfprobeExecutable,
|
|
124
117
|
setScale: scale_2.setScale,
|
|
125
118
|
setEveryNthFrame: every_nth_frame_1.setEveryNthFrame,
|
|
126
119
|
setNumberOfGifLoops: number_of_gif_loops_1.setNumberOfGifLoops,
|
|
127
120
|
setMuted: muted_1.setMuted,
|
|
128
121
|
setEnforceAudioTrack: enforce_audio_track_1.setEnforceAudioTrack,
|
|
129
|
-
};
|
|
130
|
-
const Output = {
|
|
131
122
|
setOutputLocation: output_location_2.setOutputLocation,
|
|
132
123
|
setOverwriteOutput: overwrite_2.setOverwriteOutput,
|
|
133
124
|
setPixelFormat: pixel_format_2.setPixelFormat,
|
|
134
|
-
setOutputFormat: codec_2.setOutputFormat,
|
|
135
125
|
setCodec: codec_2.setCodec,
|
|
136
126
|
setCrf: crf_1.setCrf,
|
|
137
127
|
setImageSequence: image_sequence_2.setImageSequence,
|
|
@@ -141,35 +131,16 @@ const Output = {
|
|
|
141
131
|
overrideHeight: height_1.overrideHeight,
|
|
142
132
|
overrideWidth: width_1.overrideWidth,
|
|
143
133
|
overrideFfmpegCommand: ffmpeg_override_1.setFfmpegOverrideFunction,
|
|
144
|
-
};
|
|
145
|
-
exports.Config = {
|
|
146
|
-
// New flat config format
|
|
147
|
-
...Preview,
|
|
148
|
-
...Bundling,
|
|
149
|
-
...Log,
|
|
150
|
-
...Puppeteer,
|
|
151
|
-
...Rendering,
|
|
152
|
-
...Output,
|
|
153
|
-
// Legacy config format
|
|
154
|
-
Preview,
|
|
155
|
-
Bundling,
|
|
156
|
-
Log,
|
|
157
|
-
Puppeteer,
|
|
158
|
-
Rendering,
|
|
159
|
-
Output,
|
|
160
|
-
// Options added after migration
|
|
161
134
|
setAudioCodec: audio_codec_1.setAudioCodec,
|
|
162
135
|
};
|
|
163
136
|
exports.ConfigInternals = {
|
|
164
137
|
getRange: frame_range_1.getRange,
|
|
165
138
|
getOutputCodecOrUndefined: codec_1.getOutputCodecOrUndefined,
|
|
166
|
-
getCustomFfmpegExecutable: ffmpeg_executable_1.getCustomFfmpegExecutable,
|
|
167
139
|
getBrowser: browser_1.getBrowser,
|
|
168
140
|
getPixelFormat: pixel_format_1.getPixelFormat,
|
|
169
141
|
getProResProfile: prores_profile_1.getProResProfile,
|
|
170
142
|
getShouldOverwrite: overwrite_1.getShouldOverwrite,
|
|
171
143
|
getBrowserExecutable: browser_executable_1.getBrowserExecutable,
|
|
172
|
-
getCustomFfprobeExecutable: ffmpeg_executable_1.getCustomFfprobeExecutable,
|
|
173
144
|
getScale: scale_1.getScale,
|
|
174
145
|
getServerPort: preview_server_1.getServerPort,
|
|
175
146
|
getChromiumDisableWebSecurity: chromium_flags_1.getChromiumDisableWebSecurity,
|
|
@@ -179,12 +150,13 @@ exports.ConfigInternals = {
|
|
|
179
150
|
getEveryNthFrame: every_nth_frame_1.getEveryNthFrame,
|
|
180
151
|
getConcurrency: concurrency_1.getConcurrency,
|
|
181
152
|
getCurrentPuppeteerTimeout: timeout_1.getCurrentPuppeteerTimeout,
|
|
182
|
-
|
|
153
|
+
getJpegQuality: jpeg_quality_1.getJpegQuality,
|
|
183
154
|
getAudioCodec: audio_codec_1.getAudioCodec,
|
|
184
155
|
getStillFrame: still_frame_1.getStillFrame,
|
|
185
156
|
getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence,
|
|
186
157
|
getDotEnvLocation: env_file_1.getDotEnvLocation,
|
|
187
|
-
|
|
158
|
+
getUserPreferredStillImageFormat: image_format_1.getUserPreferredStillImageFormat,
|
|
159
|
+
getUserPreferredVideoImageFormat: image_format_1.getUserPreferredVideoImageFormat,
|
|
188
160
|
getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn,
|
|
189
161
|
getWebpackCaching: webpack_caching_1.getWebpackCaching,
|
|
190
162
|
getOutputLocation: output_location_1.getOutputLocation,
|
|
@@ -211,8 +183,3 @@ exports.ConfigInternals = {
|
|
|
211
183
|
getShouldOpenBrowser: open_browser_1.getShouldOpenBrowser,
|
|
212
184
|
getChromiumUserAgent: user_agent_1.getChromiumUserAgent,
|
|
213
185
|
};
|
|
214
|
-
const overrideRemotion = () => {
|
|
215
|
-
Object.assign(remotion_1.Config, exports.Config);
|
|
216
|
-
remotion_1.Internals.enableLegacyRemotionConfig();
|
|
217
|
-
};
|
|
218
|
-
exports.overrideRemotion = overrideRemotion;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getJpegQuality = exports.setJpegQuality = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
|
+
const defaultValue = undefined;
|
|
6
|
+
let quality = defaultValue;
|
|
7
|
+
const setJpegQuality = (q) => {
|
|
8
|
+
renderer_1.RenderInternals.validateJpegQuality(q);
|
|
9
|
+
if (q === 0 || q === undefined) {
|
|
10
|
+
quality = defaultValue;
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
quality = q;
|
|
14
|
+
};
|
|
15
|
+
exports.setJpegQuality = setJpegQuality;
|
|
16
|
+
const getJpegQuality = () => quality;
|
|
17
|
+
exports.getJpegQuality = getJpegQuality;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const getPublicDir: () => string | null;
|
|
2
|
-
export declare const setPublicDir: (dir: string) => void;
|
|
2
|
+
export declare const setPublicDir: (dir: string | null) => void;
|
package/dist/config/scale.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertEntryPointToServeUrl: (entryPoint: string) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.convertEntryPointToServeUrl = void 0;
|
|
7
|
+
const renderer_1 = require("@remotion/renderer");
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const convertEntryPointToServeUrl = (entryPoint) => {
|
|
10
|
+
const fullPath = renderer_1.RenderInternals.isServeUrl(entryPoint)
|
|
11
|
+
? entryPoint
|
|
12
|
+
: node_path_1.default.resolve(process.cwd(), entryPoint);
|
|
13
|
+
return fullPath;
|
|
14
|
+
};
|
|
15
|
+
exports.convertEntryPointToServeUrl = convertEntryPointToServeUrl;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const
|
|
1
|
+
import type { StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
|
+
export declare const determineFinalStillImageFormat: ({ downloadName, outName, configImageFormat, cliFlag, isLambda, fromUi, }: {
|
|
3
3
|
downloadName: string | null;
|
|
4
4
|
outName: string | null;
|
|
5
|
-
configImageFormat:
|
|
6
|
-
cliFlag:
|
|
5
|
+
configImageFormat: StillImageFormat | null;
|
|
6
|
+
cliFlag: StillImageFormat | VideoImageFormat | null;
|
|
7
7
|
isLambda: boolean;
|
|
8
|
+
fromUi: StillImageFormat | null;
|
|
8
9
|
}) => {
|
|
9
10
|
format: StillImageFormat;
|
|
10
11
|
source: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.determineFinalStillImageFormat = void 0;
|
|
4
4
|
const deriveExtensionFromFilename = (filename) => {
|
|
5
5
|
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.png')) {
|
|
6
6
|
return 'png';
|
|
@@ -11,9 +11,18 @@ const deriveExtensionFromFilename = (filename) => {
|
|
|
11
11
|
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.jpeg')) {
|
|
12
12
|
return 'jpeg';
|
|
13
13
|
}
|
|
14
|
+
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.pdf')) {
|
|
15
|
+
return 'pdf';
|
|
16
|
+
}
|
|
17
|
+
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.webp')) {
|
|
18
|
+
return 'webp';
|
|
19
|
+
}
|
|
14
20
|
return null;
|
|
15
21
|
};
|
|
16
|
-
const
|
|
22
|
+
const determineFinalStillImageFormat = ({ downloadName, outName, configImageFormat, cliFlag, isLambda, fromUi, }) => {
|
|
23
|
+
if (fromUi) {
|
|
24
|
+
return { format: fromUi, source: 'via UI' };
|
|
25
|
+
}
|
|
17
26
|
const outNameExtension = deriveExtensionFromFilename(outName);
|
|
18
27
|
const downloadNameExtension = deriveExtensionFromFilename(downloadName);
|
|
19
28
|
const outNameDescription = isLambda ? 'S3 output key' : 'out name';
|
|
@@ -40,9 +49,13 @@ const determineFinalImageFormat = ({ downloadName, outName, configImageFormat, c
|
|
|
40
49
|
if (cliFlag !== null) {
|
|
41
50
|
return { format: cliFlag, source: '--image-format flag' };
|
|
42
51
|
}
|
|
43
|
-
if (configImageFormat !== null
|
|
52
|
+
if (configImageFormat !== null) {
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
if (configImageFormat === 'none') {
|
|
55
|
+
throw new Error('The still simage format in the config file must not be "none"');
|
|
56
|
+
}
|
|
44
57
|
return { format: configImageFormat, source: 'Config file' };
|
|
45
58
|
}
|
|
46
59
|
return { format: 'png', source: 'Default' };
|
|
47
60
|
};
|
|
48
|
-
exports.
|
|
61
|
+
exports.determineFinalStillImageFormat = determineFinalStillImageFormat;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DownloadProgress } from './progress-
|
|
1
|
+
import type { DownloadProgress } from './progress-types';
|
|
2
2
|
export declare const getFileSizeDownloadBar: (downloaded: number) => string;
|
|
3
|
-
export declare const makeMultiDownloadProgress: (progresses: DownloadProgress[]) => string | null;
|
|
3
|
+
export declare const makeMultiDownloadProgress: (progresses: DownloadProgress[], indent: boolean) => string | null;
|