@remotion/cli 4.0.0-alpha.217 → 4.0.0-alpha4
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 +1 -2
- package/dist/ansi/ansi-diff.js +20 -14
- package/dist/ansi/ansi-split.d.ts +0 -1
- package/dist/ansi/ansi-split.js +3 -16
- package/dist/benchmark.js +23 -64
- package/dist/composition-prompts.d.ts +4 -3
- package/dist/composition-prompts.js +1 -0
- package/dist/compositions.js +4 -10
- package/dist/config/bitrate.d.ts +2 -2
- package/dist/config/bitrate.js +2 -2
- package/dist/config/browser.d.ts +3 -1
- package/dist/config/browser.js +12 -2
- package/dist/config/codec.d.ts +4 -0
- package/dist/config/codec.js +21 -1
- package/dist/config/image-format.d.ts +3 -5
- package/dist/config/image-format.js +10 -32
- package/dist/config/index.d.ts +14 -255
- package/dist/config/index.js +49 -16
- package/dist/config/public-dir.d.ts +1 -1
- package/dist/config/scale.d.ts +1 -2
- package/dist/determine-image-format.d.ts +4 -5
- package/dist/determine-image-format.js +4 -17
- package/dist/download-progress.d.ts +2 -2
- package/dist/download-progress.js +3 -11
- package/dist/editor/components/Canvas.js +0 -3
- package/dist/editor/components/CompositionSelector.js +4 -2
- package/dist/editor/components/CompositionSelectorItem.d.ts +3 -3
- package/dist/editor/components/CompositionSelectorItem.js +6 -24
- package/dist/editor/components/CurrentComposition.js +19 -4
- package/dist/editor/components/Editor.js +11 -2
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.js +86 -10
- package/dist/editor/components/GlobalKeybindings.js +0 -4
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/KeyboardShortcutsExplainer.js +4 -5
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -0
- package/dist/editor/components/Menu/MenuSubItem.js +3 -15
- package/dist/editor/components/Menu/is-menu-item.d.ts +0 -2
- package/dist/editor/components/Menu/is-menu-item.js +1 -3
- package/dist/editor/components/Menu/styles.d.ts +0 -4
- package/dist/editor/components/Menu/styles.js +4 -13
- package/dist/editor/components/MenuToolbar.js +1 -2
- package/dist/editor/components/ModalContainer.d.ts +0 -2
- package/dist/editor/components/ModalContainer.js +3 -12
- package/dist/editor/components/ModalHeader.js +2 -6
- package/dist/editor/components/NewComposition/CancelButton.js +0 -3
- package/dist/editor/components/NewComposition/ComboBox.js +15 -23
- package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -4
- package/dist/editor/components/NewComposition/InputDragger.js +7 -12
- package/dist/editor/components/NewComposition/MenuContent.js +1 -14
- package/dist/editor/components/NewComposition/NewCompDuration.js +2 -2
- package/dist/editor/components/NewComposition/NewComposition.js +5 -8
- package/dist/editor/components/NewComposition/RemInput.d.ts +2 -14
- package/dist/editor/components/NewComposition/RemInput.js +9 -24
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -2
- package/dist/editor/components/NewComposition/ValidationMessage.js +8 -18
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -1
- package/dist/editor/components/Notifications/NotificationCenter.js +1 -11
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +4 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +14 -4
- package/dist/editor/components/PlayPause.js +0 -6
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +0 -3
- package/dist/editor/components/PlaybackRateSelector.d.ts +2 -0
- package/dist/editor/components/PlaybackRateSelector.js +6 -5
- package/dist/editor/components/Preview.d.ts +1 -0
- package/dist/editor/components/Preview.js +4 -4
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +3 -8
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +2 -4
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +27 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +3 -2
- package/dist/editor/components/SizeSelector.d.ts +1 -0
- package/dist/editor/components/SizeSelector.js +3 -3
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +2 -1
- package/dist/editor/components/Splitter/SplitterHandle.js +7 -15
- 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 +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +5 -4
- package/dist/editor/components/Timeline/TimelineListItem.js +1 -2
- package/dist/editor/components/Timeline/TimelineScrollable.js +1 -2
- package/dist/editor/components/Timeline/TimelineSequence.js +14 -2
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +1 -2
- package/dist/editor/components/Timeline/TimelineZoomControls.js +5 -2
- package/dist/editor/components/Timeline/imperative-state.d.ts +4 -0
- package/dist/editor/components/Timeline/imperative-state.js +13 -13
- package/dist/editor/components/Timeline/is-collapsed.js +3 -2
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +1 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +6 -5
- package/dist/editor/components/TimelineInOutToggle.js +0 -3
- package/dist/editor/components/TopPanel.d.ts +0 -1
- package/dist/editor/components/TopPanel.js +16 -30
- package/dist/editor/components/ZoomPersistor.d.ts +1 -0
- package/dist/editor/components/ZoomPersistor.js +3 -2
- package/dist/editor/components/layout.d.ts +1 -3
- package/dist/editor/components/layout.js +7 -9
- package/dist/editor/helpers/calculate-timeline.d.ts +4 -0
- package/dist/editor/helpers/colors.d.ts +1 -3
- package/dist/editor/helpers/colors.js +3 -6
- package/dist/editor/helpers/create-folder-tree.d.ts +3 -2
- package/dist/editor/helpers/create-folder-tree.js +4 -3
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -2
- package/dist/editor/helpers/is-composition-still.d.ts +2 -2
- package/dist/editor/helpers/is-composition-still.js +0 -3
- package/dist/editor/helpers/use-keybinding.d.ts +0 -1
- package/dist/editor/helpers/use-keybinding.js +0 -9
- package/dist/editor/helpers/use-menu-structure.js +51 -99
- package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/caret.d.ts +1 -4
- package/dist/editor/icons/caret.js +1 -17
- package/dist/editor/icons/folder.d.ts +2 -6
- package/dist/editor/icons/folder.js +4 -4
- package/dist/editor/icons/still.d.ts +1 -3
- package/dist/editor/icons/still.js +2 -2
- package/dist/editor/state/keybindings.d.ts +1 -2
- package/dist/editor/state/modals.d.ts +0 -38
- package/dist/editor/state/preview-size.d.ts +1 -0
- package/dist/editor/state/preview-size.js +4 -3
- package/dist/editor/state/sidebar.d.ts +3 -7
- package/dist/editor/state/sidebar.js +13 -42
- package/dist/editor/state/timeline-ref.d.ts +1 -2
- package/dist/editor/state/z-index.d.ts +5 -0
- package/dist/editor/state/z-index.js +6 -16
- package/dist/event-source-events.d.ts +0 -15
- package/dist/event-source.d.ts +0 -2
- package/dist/event-source.js +5 -31
- package/dist/get-cli-options.d.ts +12 -3
- package/dist/get-cli-options.js +60 -7
- package/dist/get-composition-id.d.ts +3 -7
- package/dist/get-composition-id.js +3 -17
- package/dist/get-composition-with-dimension-override.d.ts +4 -5
- package/dist/get-composition-with-dimension-override.js +2 -6
- package/dist/get-config-file-name.d.ts +2 -0
- package/dist/get-config-file-name.js +7 -7
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +48 -39
- package/dist/get-filename.d.ts +1 -5
- package/dist/get-filename.js +4 -6
- package/dist/get-final-output-codec.d.ts +1 -2
- package/dist/get-final-output-codec.js +1 -4
- package/dist/get-input-props.d.ts +5 -1
- package/dist/get-input-props.js +13 -11
- package/dist/image-formats.d.ts +2 -5
- package/dist/image-formats.js +6 -16
- package/dist/index.d.ts +22 -91
- package/dist/index.js +13 -12
- package/dist/list-of-remotion-packages.js +0 -1
- package/dist/load-config.js +1 -1
- package/dist/log.d.ts +0 -14
- package/dist/log.js +8 -24
- package/dist/parse-command-line.d.ts +5 -5
- package/dist/parse-command-line.js +14 -6
- package/dist/preview-server/dev-middleware/middleware.d.ts +1 -0
- package/dist/preview-server/dev-middleware/middleware.js +2 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +4 -8
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +8 -12
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +1 -2
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +1 -16
- package/dist/preview-server/hot-middleware/client.js +2 -2
- package/dist/preview-server/live-events.d.ts +0 -2
- package/dist/preview-server/live-events.js +2 -22
- package/dist/preview-server/public-folder.d.ts +5 -0
- package/dist/preview-server/public-folder.js +4 -3
- package/dist/preview-server/routes.d.ts +1 -2
- package/dist/preview-server/routes.js +13 -71
- package/dist/preview-server/start-server.js +0 -1
- package/dist/preview.js +21 -8
- package/dist/previewEntry.js +3 -2
- package/dist/print-compositions.d.ts +2 -2
- package/dist/print-error.js +2 -4
- package/dist/print-help.js +8 -4
- package/dist/progress-bar.d.ts +37 -17
- package/dist/progress-bar.js +41 -102
- package/dist/render.js +232 -42
- package/dist/select-composition.d.ts +1 -2
- package/dist/setup-cache.d.ts +9 -12
- package/dist/setup-cache.js +20 -29
- package/dist/still.js +130 -25
- package/dist/user-passed-output-location.js +7 -2
- package/package.json +72 -88
- package/styles/styles.css +3 -13
- package/dist/codemods/update-default-props.d.ts +0 -5
- package/dist/codemods/update-default-props.js +0 -143
- package/dist/color-math.d.ts +0 -2
- package/dist/color-math.js +0 -11
- package/dist/config/jpeg-quality.d.ts +0 -2
- package/dist/config/jpeg-quality.js +0 -17
- package/dist/convert-entry-point-to-serve-url.d.ts +0 -1
- package/dist/convert-entry-point-to-serve-url.js +0 -15
- package/dist/editor/components/Checkbox.d.ts +0 -6
- package/dist/editor/components/Checkbox.js +0 -42
- package/dist/editor/components/CheckerboardProvider.d.ts +0 -4
- package/dist/editor/components/CheckerboardProvider.js +0 -24
- package/dist/editor/components/CollapsableOptions.d.ts +0 -6
- package/dist/editor/components/CollapsableOptions.js +0 -35
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +0 -3
- package/dist/editor/components/CurrentCompositionSideEffects.js +0 -51
- package/dist/editor/components/InlineAction.d.ts +0 -5
- package/dist/editor/components/InlineAction.js +0 -35
- package/dist/editor/components/MediaVolumeProvider.d.ts +0 -4
- package/dist/editor/components/MediaVolumeProvider.js +0 -25
- package/dist/editor/components/Modals.d.ts +0 -2
- package/dist/editor/components/Modals.js +0 -23
- package/dist/editor/components/ModalsProvider.d.ts +0 -4
- package/dist/editor/components/ModalsProvider.js +0 -17
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +0 -7
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +0 -53
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +0 -7
- package/dist/editor/components/NewComposition/RemTextarea.js +0 -92
- package/dist/editor/components/PlayerEmitterContext.d.ts +0 -4
- package/dist/editor/components/PlayerEmitterContext.js +0 -11
- package/dist/editor/components/RenderButton.d.ts +0 -6
- package/dist/editor/components/RenderButton.js +0 -80
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/CliCopyButton.js +0 -22
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +0 -16
- package/dist/editor/components/RenderModal/CrfSetting.js +0 -43
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +0 -16
- package/dist/editor/components/RenderModal/EnvInput.d.ts +0 -11
- package/dist/editor/components/RenderModal/EnvInput.js +0 -74
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +0 -42
- package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +0 -5
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +0 -78
- package/dist/editor/components/RenderModal/InfoBubble.d.ts +0 -5
- package/dist/editor/components/RenderModal/InfoBubble.js +0 -115
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +0 -5
- package/dist/editor/components/RenderModal/InfoTooltip.js +0 -40
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +0 -5
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +0 -14
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +0 -12
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +0 -12
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/MutedSetting.js +0 -16
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +0 -26
- package/dist/editor/components/RenderModal/NumberSetting.d.ts +0 -12
- package/dist/editor/components/RenderModal/NumberSetting.js +0 -29
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +0 -5
- package/dist/editor/components/RenderModal/OptionExplainer.js +0 -45
- package/dist/editor/components/RenderModal/RenderModal.d.ts +0 -35
- package/dist/editor/components/RenderModal/RenderModal.js +0 -575
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +0 -26
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +0 -61
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +0 -17
- package/dist/editor/components/RenderModal/RenderModalAudio.js +0 -46
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +0 -23
- package/dist/editor/components/RenderModal/RenderModalBasic.js +0 -79
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +0 -9
- package/dist/editor/components/RenderModal/RenderModalData.js +0 -210
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +0 -5
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +0 -55
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +0 -9
- package/dist/editor/components/RenderModal/RenderModalGif.js +0 -19
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +0 -2
- package/dist/editor/components/RenderModal/RenderModalHr.js +0 -18
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +0 -10
- package/dist/editor/components/RenderModal/RenderModalInput.js +0 -13
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.d.ts +0 -10
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.js +0 -118
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +0 -28
- package/dist/editor/components/RenderModal/RenderModalPicture.js +0 -56
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +0 -4
- package/dist/editor/components/RenderModal/RenderStatusModal.js +0 -72
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/ScaleSetting.js +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +0 -39
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.js +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +0 -11
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +0 -55
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +0 -40
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +0 -84
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +0 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +0 -28
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +0 -116
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +0 -76
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +0 -55
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +0 -72
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +0 -5
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +0 -23
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +0 -8
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +0 -88
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +0 -64
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +0 -52
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +0 -48
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +0 -81
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +0 -49
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +0 -158
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +0 -21
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +0 -2
- package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +0 -6
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +0 -49
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +0 -11
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +0 -26
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +0 -18
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-codec.js +0 -36
- package/dist/editor/components/RenderModal/layout.d.ts +0 -7
- package/dist/editor/components/RenderModal/layout.js +0 -45
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +0 -14
- package/dist/editor/components/RenderModal/out-name-checker.js +0 -80
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +0 -5
- package/dist/editor/components/RenderQueue/CircularProgress.js +0 -18
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueError.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +0 -40
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +0 -22
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +0 -43
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +0 -22
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +0 -33
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +0 -22
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +0 -2
- package/dist/editor/components/RenderQueue/SuccessIcon.js +0 -14
- package/dist/editor/components/RenderQueue/actions.d.ts +0 -58
- package/dist/editor/components/RenderQueue/actions.js +0 -119
- package/dist/editor/components/RenderQueue/context.d.ts +0 -18
- package/dist/editor/components/RenderQueue/context.js +0 -49
- package/dist/editor/components/RenderQueue/index.d.ts +0 -2
- package/dist/editor/components/RenderQueue/index.js +0 -43
- package/dist/editor/components/RenderQueue/item-style.d.ts +0 -2
- package/dist/editor/components/RenderQueue/item-style.js +0 -21
- package/dist/editor/components/RenderToolbarIcon.d.ts +0 -2
- package/dist/editor/components/RenderToolbarIcon.js +0 -101
- package/dist/editor/components/RendersTab.d.ts +0 -6
- package/dist/editor/components/RendersTab.js +0 -43
- package/dist/editor/components/RightPanel.d.ts +0 -8
- package/dist/editor/components/RightPanel.js +0 -76
- package/dist/editor/components/SegmentedControl.d.ts +0 -11
- package/dist/editor/components/SegmentedControl.js +0 -62
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +0 -4
- package/dist/editor/components/SetTimelineInOutProvider.js +0 -19
- package/dist/editor/components/SidebarCollapserControls.d.ts +0 -2
- package/dist/editor/components/SidebarCollapserControls.js +0 -122
- package/dist/editor/components/Tabs/index.d.ts +0 -11
- package/dist/editor/components/Tabs/index.js +0 -58
- package/dist/editor/components/Tabs/vertical.d.ts +0 -7
- package/dist/editor/components/Tabs/vertical.js +0 -43
- package/dist/editor/components/ZoomGesturesProvider.d.ts +0 -4
- package/dist/editor/components/ZoomGesturesProvider.js +0 -24
- package/dist/editor/components/get-zod-if-possible.d.ts +0 -10
- package/dist/editor/components/get-zod-if-possible.js +0 -79
- package/dist/editor/helpers/client-id.d.ts +0 -17
- package/dist/editor/helpers/client-id.js +0 -46
- package/dist/editor/helpers/convert-env-variables.d.ts +0 -2
- package/dist/editor/helpers/convert-env-variables.js +0 -20
- package/dist/editor/helpers/prores-labels.d.ts +0 -2
- package/dist/editor/helpers/prores-labels.js +0 -25
- package/dist/editor/helpers/render-modal-sections.d.ts +0 -10
- package/dist/editor/helpers/render-modal-sections.js +0 -32
- package/dist/editor/helpers/use-breakpoint.d.ts +0 -1
- package/dist/editor/helpers/use-breakpoint.js +0 -17
- package/dist/editor/helpers/use-file-existence.d.ts +0 -1
- package/dist/editor/helpers/use-file-existence.js +0 -66
- package/dist/editor/icons/RenderStillIcon.d.ts +0 -3
- package/dist/editor/icons/RenderStillIcon.js +0 -8
- package/dist/editor/icons/audio.d.ts +0 -2
- package/dist/editor/icons/audio.js +0 -6
- package/dist/editor/icons/data.d.ts +0 -2
- package/dist/editor/icons/data.js +0 -8
- package/dist/editor/icons/file.d.ts +0 -2
- package/dist/editor/icons/file.js +0 -6
- package/dist/editor/icons/frame.d.ts +0 -2
- package/dist/editor/icons/frame.js +0 -6
- package/dist/editor/icons/gear.d.ts +0 -2
- package/dist/editor/icons/gear.js +0 -6
- package/dist/editor/icons/gif.d.ts +0 -2
- package/dist/editor/icons/gif.js +0 -6
- package/dist/editor/icons/render.d.ts +0 -8
- package/dist/editor/icons/render.js +0 -12
- package/dist/editor/icons/video.d.ts +0 -5
- package/dist/editor/icons/video.js +0 -8
- package/dist/ffmpeg.d.ts +0 -2
- package/dist/ffmpeg.js +0 -21
- package/dist/file-watcher.d.ts +0 -9
- package/dist/file-watcher.js +0 -35
- package/dist/get-default-out-name.d.ts +0 -5
- package/dist/get-default-out-name.js +0 -10
- package/dist/preview-server/api-routes.d.ts +0 -4
- package/dist/preview-server/api-routes.js +0 -21
- package/dist/preview-server/api-types.d.ts +0 -25
- package/dist/preview-server/api-types.js +0 -2
- package/dist/preview-server/file-existence-watchers.d.ts +0 -13
- package/dist/preview-server/file-existence-watchers.js +0 -62
- package/dist/preview-server/handler.d.ts +0 -9
- package/dist/preview-server/handler.js +0 -34
- package/dist/preview-server/parse-body.d.ts +0 -2
- package/dist/preview-server/parse-body.js +0 -16
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +0 -10
- package/dist/preview-server/render-queue/get-default-video-contexts.js +0 -13
- package/dist/preview-server/render-queue/job.d.ts +0 -138
- package/dist/preview-server/render-queue/job.js +0 -2
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +0 -3
- package/dist/preview-server/render-queue/make-retry-payload.js +0 -91
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +0 -1
- package/dist/preview-server/render-queue/open-directory-in-finder.js +0 -43
- package/dist/preview-server/render-queue/process-still.d.ts +0 -8
- package/dist/preview-server/render-queue/process-still.js +0 -46
- package/dist/preview-server/render-queue/process-video.d.ts +0 -8
- package/dist/preview-server/render-queue/process-video.js +0 -63
- package/dist/preview-server/render-queue/queue.d.ts +0 -9
- package/dist/preview-server/render-queue/queue.js +0 -212
- package/dist/preview-server/routes/add-render.d.ts +0 -3
- package/dist/preview-server/routes/add-render.js +0 -76
- package/dist/preview-server/routes/can-update-default-props.d.ts +0 -4
- package/dist/preview-server/routes/can-update-default-props.js +0 -39
- package/dist/preview-server/routes/cancel-render.d.ts +0 -3
- package/dist/preview-server/routes/cancel-render.js +0 -9
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +0 -3
- package/dist/preview-server/routes/open-in-file-explorer.js +0 -8
- package/dist/preview-server/routes/remove-render.d.ts +0 -3
- package/dist/preview-server/routes/remove-render.js +0 -9
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/subscribe-to-file-existence.js +0 -13
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +0 -13
- package/dist/preview-server/routes/update-default-props.d.ts +0 -3
- package/dist/preview-server/routes/update-default-props.js +0 -24
- package/dist/progress-types.d.ts +0 -32
- package/dist/progress-types.js +0 -17
- package/dist/render-flows/render.d.ts +0 -47
- package/dist/render-flows/render.js +0 -293
- package/dist/render-flows/still.d.ts +0 -29
- package/dist/render-flows/still.js +0 -174
- package/dist/required-chromium-options.d.ts +0 -3
- package/dist/required-chromium-options.js +0 -2
package/dist/setup-cache.js
CHANGED
|
@@ -1,37 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bundleOnCliOrTakeServeUrl = void 0;
|
|
3
|
+
exports.bundleOnCli = exports.bundleOnCliOrTakeServeUrl = void 0;
|
|
4
4
|
const bundler_1 = require("@remotion/bundler");
|
|
5
5
|
const renderer_1 = require("@remotion/renderer");
|
|
6
6
|
const config_1 = require("./config");
|
|
7
7
|
const log_1 = require("./log");
|
|
8
8
|
const parse_command_line_1 = require("./parse-command-line");
|
|
9
9
|
const progress_bar_1 = require("./progress-bar");
|
|
10
|
-
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot,
|
|
10
|
+
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, steps, publicDir, }) => {
|
|
11
11
|
if (renderer_1.RenderInternals.isServeUrl(fullPath)) {
|
|
12
12
|
return {
|
|
13
13
|
urlOrBundle: fullPath,
|
|
14
14
|
cleanup: () => Promise.resolve(undefined),
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
const bundled = await bundleOnCli({
|
|
18
|
-
fullPath,
|
|
19
|
-
remotionRoot,
|
|
20
|
-
publicDir,
|
|
21
|
-
onProgressCallback: onProgress,
|
|
22
|
-
indent: indentOutput,
|
|
23
|
-
logLevel,
|
|
24
|
-
bundlingStep,
|
|
25
|
-
steps,
|
|
26
|
-
onDirectoryCreated,
|
|
27
|
-
});
|
|
17
|
+
const bundled = await (0, exports.bundleOnCli)({ fullPath, remotionRoot, steps, publicDir });
|
|
28
18
|
return {
|
|
29
19
|
urlOrBundle: bundled,
|
|
30
20
|
cleanup: () => renderer_1.RenderInternals.deleteDirectory(bundled),
|
|
31
21
|
};
|
|
32
22
|
};
|
|
33
23
|
exports.bundleOnCliOrTakeServeUrl = bundleOnCliOrTakeServeUrl;
|
|
34
|
-
const bundleOnCli = async ({ fullPath, remotionRoot, publicDir,
|
|
24
|
+
const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
|
|
35
25
|
var _a;
|
|
36
26
|
const shouldCache = config_1.ConfigInternals.getWebpackCaching();
|
|
37
27
|
const symlinkState = {
|
|
@@ -40,9 +30,14 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
40
30
|
const onProgress = (progress) => {
|
|
41
31
|
bundlingState = {
|
|
42
32
|
progress: progress / 100,
|
|
33
|
+
steps,
|
|
43
34
|
doneIn: null,
|
|
44
35
|
};
|
|
45
|
-
|
|
36
|
+
bundlingProgress.update((0, progress_bar_1.makeBundlingAndCopyProgress)({
|
|
37
|
+
bundling: bundlingState,
|
|
38
|
+
copying: copyingState,
|
|
39
|
+
symLinks: symlinkState,
|
|
40
|
+
}));
|
|
46
41
|
};
|
|
47
42
|
let copyingState = {
|
|
48
43
|
bytes: 0,
|
|
@@ -54,11 +49,7 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
54
49
|
bundling: bundlingState,
|
|
55
50
|
copying: copyingState,
|
|
56
51
|
symLinks: symlinkState,
|
|
57
|
-
}
|
|
58
|
-
onProgressCallback({
|
|
59
|
-
bundling: bundlingState,
|
|
60
|
-
copying: copyingState,
|
|
61
|
-
});
|
|
52
|
+
}) + (newline ? '\n' : ''));
|
|
62
53
|
};
|
|
63
54
|
const onPublicDirCopyProgress = (bytes) => {
|
|
64
55
|
if (copyStart === null) {
|
|
@@ -91,20 +82,18 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
91
82
|
});
|
|
92
83
|
const cacheExistedBefore = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash);
|
|
93
84
|
if (cacheExistedBefore !== 'does-not-exist' && !shouldCache) {
|
|
94
|
-
log_1.Log.
|
|
85
|
+
log_1.Log.info('🧹 Cache disabled but found. Deleting... ');
|
|
95
86
|
await bundler_1.BundlerInternals.clearCache(remotionRoot);
|
|
96
87
|
}
|
|
97
88
|
if (cacheExistedBefore === 'other-exists' && shouldCache) {
|
|
98
|
-
log_1.Log.
|
|
89
|
+
log_1.Log.info('🧹 Webpack config change detected. Clearing cache... ');
|
|
99
90
|
await bundler_1.BundlerInternals.clearCache(remotionRoot);
|
|
100
91
|
}
|
|
101
92
|
const bundleStartTime = Date.now();
|
|
102
|
-
const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)(
|
|
103
|
-
quiet: (0, parse_command_line_1.quietFlagProvided)(),
|
|
104
|
-
cancelSignal: null,
|
|
105
|
-
});
|
|
93
|
+
const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
|
|
106
94
|
let bundlingState = {
|
|
107
95
|
progress: 0,
|
|
96
|
+
steps,
|
|
108
97
|
doneIn: null,
|
|
109
98
|
};
|
|
110
99
|
const bundled = await (0, bundler_1.bundle)({
|
|
@@ -112,15 +101,16 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
112
101
|
onProgress: (progress) => {
|
|
113
102
|
bundlingState = {
|
|
114
103
|
progress: progress / 100,
|
|
104
|
+
steps,
|
|
115
105
|
doneIn: null,
|
|
116
106
|
};
|
|
117
107
|
updateProgress(false);
|
|
118
108
|
},
|
|
119
|
-
onDirectoryCreated,
|
|
120
109
|
...options,
|
|
121
110
|
});
|
|
122
111
|
bundlingState = {
|
|
123
112
|
progress: 1,
|
|
113
|
+
steps,
|
|
124
114
|
doneIn: Date.now() - bundleStartTime,
|
|
125
115
|
};
|
|
126
116
|
copyingState = {
|
|
@@ -128,13 +118,14 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
128
118
|
doneIn: copyStart ? Date.now() - copyStart : null,
|
|
129
119
|
};
|
|
130
120
|
updateProgress(true);
|
|
131
|
-
log_1.Log.
|
|
121
|
+
log_1.Log.verbose('Bundled under', bundled);
|
|
132
122
|
const cacheExistedAfter = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash) === 'exists';
|
|
133
123
|
if (cacheExistedAfter) {
|
|
134
124
|
if (cacheExistedBefore === 'does-not-exist' ||
|
|
135
125
|
cacheExistedBefore === 'other-exists') {
|
|
136
|
-
log_1.Log.
|
|
126
|
+
log_1.Log.info('⚡️ Cached bundle. Subsequent renders will be faster.');
|
|
137
127
|
}
|
|
138
128
|
}
|
|
139
129
|
return bundled;
|
|
140
130
|
};
|
|
131
|
+
exports.bundleOnCli = bundleOnCli;
|
package/dist/still.js
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.still = void 0;
|
|
7
|
+
const renderer_1 = require("@remotion/renderer");
|
|
8
|
+
const fs_1 = require("fs");
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const chalk_1 = require("./chalk");
|
|
4
11
|
const cleanup_before_quit_1 = require("./cleanup-before-quit");
|
|
5
|
-
const
|
|
12
|
+
const config_1 = require("./config");
|
|
13
|
+
const determine_image_format_1 = require("./determine-image-format");
|
|
6
14
|
const entry_point_1 = require("./entry-point");
|
|
7
15
|
const get_cli_options_1 = require("./get-cli-options");
|
|
16
|
+
const get_composition_with_dimension_override_1 = require("./get-composition-with-dimension-override");
|
|
8
17
|
const log_1 = require("./log");
|
|
9
18
|
const parse_command_line_1 = require("./parse-command-line");
|
|
10
|
-
const
|
|
19
|
+
const progress_bar_1 = require("./progress-bar");
|
|
20
|
+
const setup_cache_1 = require("./setup-cache");
|
|
21
|
+
const truthy_1 = require("./truthy");
|
|
22
|
+
const user_passed_output_location_1 = require("./user-passed-output-location");
|
|
11
23
|
const still = async (remotionRoot, args) => {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const startTime = Date.now();
|
|
12
26
|
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)(args, remotionRoot);
|
|
13
27
|
if (!file) {
|
|
14
28
|
log_1.Log.error('No entry point specified. Pass more arguments:');
|
|
@@ -16,44 +30,135 @@ const still = async (remotionRoot, args) => {
|
|
|
16
30
|
log_1.Log.error('Documentation: https://www.remotion.dev/docs/render');
|
|
17
31
|
process.exit(1);
|
|
18
32
|
}
|
|
19
|
-
const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
|
|
20
33
|
if (parse_command_line_1.parsedCli.frames) {
|
|
21
34
|
log_1.Log.error('--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
|
|
22
35
|
process.exit(1);
|
|
23
36
|
}
|
|
24
|
-
const { browser, browserExecutable, chromiumOptions,
|
|
37
|
+
const { inputProps, envVariables, quality, browser, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, ffprobeExecutable, overwrite, puppeteerTimeout, port, publicDir, height, width, } = await (0, get_cli_options_1.getCliOptions)({
|
|
25
38
|
isLambda: false,
|
|
26
39
|
type: 'still',
|
|
27
40
|
remotionRoot,
|
|
28
41
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
entryPointReason,
|
|
32
|
-
fullEntryPoint,
|
|
33
|
-
remainingArgs,
|
|
34
|
-
browser,
|
|
42
|
+
log_1.Log.verbose('Browser executable: ', browserExecutable);
|
|
43
|
+
const browserInstance = (0, renderer_1.openBrowser)(browser, {
|
|
35
44
|
browserExecutable,
|
|
36
45
|
chromiumOptions,
|
|
46
|
+
shouldDumpIo: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
|
|
47
|
+
forceDeviceScaleFactor: scale,
|
|
48
|
+
});
|
|
49
|
+
const steps = [
|
|
50
|
+
renderer_1.RenderInternals.isServeUrl(file) ? null : 'bundling',
|
|
51
|
+
'rendering',
|
|
52
|
+
].filter(truthy_1.truthy);
|
|
53
|
+
const { cleanup: cleanupBundle, urlOrBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({ fullPath: file, remotionRoot, steps, publicDir });
|
|
54
|
+
(0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
|
|
55
|
+
const puppeteerInstance = await browserInstance;
|
|
56
|
+
const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
|
|
57
|
+
(0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.cleanDownloadMap(downloadMap));
|
|
58
|
+
const comps = await (0, renderer_1.getCompositions)(urlOrBundle, {
|
|
59
|
+
inputProps,
|
|
60
|
+
puppeteerInstance,
|
|
37
61
|
envVariables,
|
|
62
|
+
timeoutInMilliseconds: puppeteerTimeout,
|
|
63
|
+
chromiumOptions,
|
|
64
|
+
port,
|
|
65
|
+
browserExecutable,
|
|
66
|
+
ffmpegExecutable,
|
|
67
|
+
ffprobeExecutable,
|
|
68
|
+
downloadMap,
|
|
69
|
+
});
|
|
70
|
+
const { compositionId, config, reason, argsAfterComposition } = await (0, get_composition_with_dimension_override_1.getCompositionWithDimensionOverride)({
|
|
71
|
+
validCompositions: comps,
|
|
38
72
|
height,
|
|
73
|
+
width,
|
|
74
|
+
args: remainingArgs,
|
|
75
|
+
});
|
|
76
|
+
const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalImageFormat)({
|
|
77
|
+
cliFlag: (_a = parse_command_line_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
|
|
78
|
+
configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredImageFormat()) !== null && _b !== void 0 ? _b : null,
|
|
79
|
+
downloadName: null,
|
|
80
|
+
outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(argsAfterComposition),
|
|
81
|
+
isLambda: false,
|
|
82
|
+
});
|
|
83
|
+
const relativeOutputLocation = (0, user_passed_output_location_1.getOutputLocation)({
|
|
84
|
+
compositionId,
|
|
85
|
+
defaultExtension: imageFormat,
|
|
86
|
+
args: argsAfterComposition,
|
|
87
|
+
type: 'asset',
|
|
88
|
+
});
|
|
89
|
+
const absoluteOutputLocation = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite);
|
|
90
|
+
(0, fs_1.mkdirSync)(path_1.default.join(absoluteOutputLocation, '..'), {
|
|
91
|
+
recursive: true,
|
|
92
|
+
});
|
|
93
|
+
log_1.Log.info(chalk_1.chalk.gray(`Entry point = ${file} (${entryPointReason}), Output = ${relativeOutputLocation}, Format = ${imageFormat} (${source}), Composition = ${compositionId} (${reason})`));
|
|
94
|
+
const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
|
|
95
|
+
const renderStart = Date.now();
|
|
96
|
+
const downloads = [];
|
|
97
|
+
let frames = 0;
|
|
98
|
+
const totalFrames = 1;
|
|
99
|
+
const updateProgress = () => {
|
|
100
|
+
renderProgress.update((0, progress_bar_1.makeRenderingAndStitchingProgress)({
|
|
101
|
+
rendering: {
|
|
102
|
+
frames,
|
|
103
|
+
concurrency: 1,
|
|
104
|
+
doneIn: frames === totalFrames ? Date.now() - renderStart : null,
|
|
105
|
+
steps,
|
|
106
|
+
totalFrames,
|
|
107
|
+
},
|
|
108
|
+
downloads,
|
|
109
|
+
stitching: null,
|
|
110
|
+
}));
|
|
111
|
+
};
|
|
112
|
+
updateProgress();
|
|
113
|
+
const onDownload = (src) => {
|
|
114
|
+
const id = Math.random();
|
|
115
|
+
const download = {
|
|
116
|
+
id,
|
|
117
|
+
name: src,
|
|
118
|
+
progress: 0,
|
|
119
|
+
downloaded: 0,
|
|
120
|
+
totalBytes: null,
|
|
121
|
+
};
|
|
122
|
+
downloads.push(download);
|
|
123
|
+
updateProgress();
|
|
124
|
+
return ({ percent }) => {
|
|
125
|
+
download.progress = percent;
|
|
126
|
+
updateProgress();
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
await (0, renderer_1.renderStill)({
|
|
130
|
+
composition: config,
|
|
131
|
+
frame: stillFrame,
|
|
132
|
+
output: absoluteOutputLocation,
|
|
133
|
+
serveUrl: urlOrBundle,
|
|
134
|
+
quality,
|
|
135
|
+
dumpBrowserLogs: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
|
|
136
|
+
envVariables,
|
|
137
|
+
imageFormat,
|
|
39
138
|
inputProps,
|
|
139
|
+
chromiumOptions,
|
|
140
|
+
timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
|
|
141
|
+
scale,
|
|
142
|
+
ffmpegExecutable,
|
|
143
|
+
browserExecutable,
|
|
40
144
|
overwrite,
|
|
145
|
+
onDownload,
|
|
41
146
|
port,
|
|
42
|
-
|
|
43
|
-
puppeteerTimeout,
|
|
44
|
-
jpegQuality,
|
|
45
|
-
scale,
|
|
46
|
-
stillFrame,
|
|
47
|
-
width,
|
|
48
|
-
compositionIdFromUi: null,
|
|
49
|
-
imageFormatFromUi: null,
|
|
50
|
-
logLevel,
|
|
51
|
-
onProgress: () => undefined,
|
|
52
|
-
indentOutput: false,
|
|
53
|
-
addCleanupCallback: (c) => {
|
|
54
|
-
(0, cleanup_before_quit_1.registerCleanupJob)(c);
|
|
55
|
-
},
|
|
56
|
-
cancelSignal: null,
|
|
147
|
+
downloadMap,
|
|
57
148
|
});
|
|
149
|
+
frames = 1;
|
|
150
|
+
updateProgress();
|
|
151
|
+
log_1.Log.info();
|
|
152
|
+
const closeBrowserPromise = puppeteerInstance.close(false);
|
|
153
|
+
log_1.Log.info(chalk_1.chalk.green('\nYour still frame is ready!'));
|
|
154
|
+
const seconds = Math.round((Date.now() - startTime) / 1000);
|
|
155
|
+
log_1.Log.info([
|
|
156
|
+
'- Total render time:',
|
|
157
|
+
seconds,
|
|
158
|
+
seconds === 1 ? 'second' : 'seconds',
|
|
159
|
+
].join(' '));
|
|
160
|
+
log_1.Log.info('-', 'Output can be found at:');
|
|
161
|
+
log_1.Log.info(chalk_1.chalk.cyan(`▶️ ${absoluteOutputLocation}`));
|
|
162
|
+
await closeBrowserPromise;
|
|
58
163
|
};
|
|
59
164
|
exports.still = still;
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOutputLocation = exports.getUserPassedOutputLocation = void 0;
|
|
4
4
|
const config_1 = require("./config");
|
|
5
|
-
const get_default_out_name_1 = require("./get-default-out-name");
|
|
6
5
|
const getUserPassedOutputLocation = (args) => {
|
|
7
6
|
var _a;
|
|
8
7
|
const filename = (_a = args[0]) !== null && _a !== void 0 ? _a : config_1.ConfigInternals.getOutputLocation();
|
|
9
8
|
return filename;
|
|
10
9
|
};
|
|
11
10
|
exports.getUserPassedOutputLocation = getUserPassedOutputLocation;
|
|
11
|
+
const getDefaultOutLocation = ({ compositionName, defaultExtension, type, }) => {
|
|
12
|
+
if (type === 'sequence') {
|
|
13
|
+
return `out/${compositionName}`;
|
|
14
|
+
}
|
|
15
|
+
return `out/${compositionName}.${defaultExtension}`;
|
|
16
|
+
};
|
|
12
17
|
const getOutputLocation = ({ compositionId, defaultExtension, args, type, }) => {
|
|
13
18
|
var _a;
|
|
14
|
-
return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a :
|
|
19
|
+
return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a : getDefaultOutLocation({
|
|
15
20
|
compositionName: compositionId,
|
|
16
21
|
defaultExtension,
|
|
17
22
|
type,
|
package/package.json
CHANGED
|
@@ -1,89 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"typescript": "^4.7.0",
|
|
75
|
-
"vitest": "0.24.3",
|
|
76
|
-
"zod": "^3.21.4"
|
|
77
|
-
},
|
|
78
|
-
"keywords": [
|
|
79
|
-
"remotion",
|
|
80
|
-
"ffmpeg",
|
|
81
|
-
"video",
|
|
82
|
-
"react",
|
|
83
|
-
"player"
|
|
84
|
-
],
|
|
85
|
-
"publishConfig": {
|
|
86
|
-
"access": "public"
|
|
87
|
-
},
|
|
88
|
-
"gitHead": "27eff759935b19b666e29f4f46dd5bdd6214e188"
|
|
89
|
-
}
|
|
2
|
+
"name": "@remotion/cli",
|
|
3
|
+
"version": "4.0.0-alpha4",
|
|
4
|
+
"description": "CLI for Remotion",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"bin": {
|
|
8
|
+
"remotion": "remotion-cli.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"url": "https://github.com/remotion-dev/remotion"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
15
|
+
},
|
|
16
|
+
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
17
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@remotion/bundler": "4.0.0-alpha4",
|
|
20
|
+
"@remotion/media-utils": "4.0.0-alpha4",
|
|
21
|
+
"@remotion/player": "4.0.0-alpha4",
|
|
22
|
+
"@remotion/renderer": "4.0.0-alpha4",
|
|
23
|
+
"dotenv": "9.0.2",
|
|
24
|
+
"memfs": "3.4.3",
|
|
25
|
+
"minimist": "1.2.6",
|
|
26
|
+
"open": "^8.4.2",
|
|
27
|
+
"prompts": "2.4.1",
|
|
28
|
+
"remotion": "4.0.0-alpha4",
|
|
29
|
+
"semver": "7.3.5",
|
|
30
|
+
"source-map": "0.6.1"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react": ">=16.8.0",
|
|
34
|
+
"react-dom": ">=16.8.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@jonny/eslint-config": "3.0.266",
|
|
38
|
+
"@types/minimist": "^1.2.2",
|
|
39
|
+
"@types/node": "^16.7.5",
|
|
40
|
+
"@types/prompts": "^2.4.1",
|
|
41
|
+
"@types/react": "18.0.26",
|
|
42
|
+
"@types/react-dom": "18.0.10",
|
|
43
|
+
"@types/semver": "^7.3.4",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "5.18.0",
|
|
45
|
+
"@typescript-eslint/parser": "5.18.0",
|
|
46
|
+
"eslint": "8.25.0",
|
|
47
|
+
"eslint-plugin-10x": "1.5.2",
|
|
48
|
+
"eslint-plugin-react": "7.29.4",
|
|
49
|
+
"eslint-plugin-react-hooks": "4.4.0",
|
|
50
|
+
"prettier": "^2.7.1",
|
|
51
|
+
"prettier-plugin-organize-imports": "^2.3.4",
|
|
52
|
+
"react": "^18.0.0",
|
|
53
|
+
"react-dom": "^18.0.0",
|
|
54
|
+
"typescript": "^4.7.0",
|
|
55
|
+
"vitest": "0.24.3"
|
|
56
|
+
},
|
|
57
|
+
"keywords": [
|
|
58
|
+
"remotion",
|
|
59
|
+
"ffmpeg",
|
|
60
|
+
"video",
|
|
61
|
+
"react",
|
|
62
|
+
"player"
|
|
63
|
+
],
|
|
64
|
+
"publishConfig": {
|
|
65
|
+
"access": "public"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"lint": "eslint src --ext ts,tsx",
|
|
69
|
+
"test": "vitest --run",
|
|
70
|
+
"build": "tsc -d",
|
|
71
|
+
"watch": "tsc -w"
|
|
72
|
+
}
|
|
73
|
+
}
|
package/styles/styles.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
html {
|
|
2
|
-
--blue: #
|
|
3
|
-
--blue-disabled: #284f73;
|
|
2
|
+
--blue: #4290f5;
|
|
4
3
|
}
|
|
5
4
|
|
|
6
5
|
body {
|
|
@@ -28,18 +27,9 @@ input::-webkit-inner-spin-button {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
input:focus,
|
|
31
|
-
textarea:focus,
|
|
32
30
|
button:focus,
|
|
33
31
|
a:focus {
|
|
34
32
|
outline: none;
|
|
35
|
-
box-shadow:
|
|
36
|
-
|
|
37
|
-
border-radius: 0 !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
input[type="color"].__remotion_color_picker::-webkit-color-swatch-wrapper {
|
|
41
|
-
padding: 0;
|
|
42
|
-
}
|
|
43
|
-
input[type="color"].__remotion_color_picker::-webkit-color-swatch {
|
|
44
|
-
border: none;
|
|
33
|
+
box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.35);
|
|
34
|
+
border-radius: 2px;
|
|
45
35
|
}
|