@remotion/cli 4.0.0-forcepublish.7 → 4.0.0-jshmr2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (671) hide show
  1. package/LICENSE.md +8 -8
  2. package/dist/ansi/ansi-diff.d.ts +0 -0
  3. package/dist/ansi/ansi-diff.js +0 -0
  4. package/dist/ansi/ansi-regex.d.ts +0 -0
  5. package/dist/ansi/ansi-regex.js +0 -0
  6. package/dist/ansi/ansi-split.d.ts +0 -0
  7. package/dist/ansi/ansi-split.js +0 -0
  8. package/dist/benchmark.d.ts +1 -0
  9. package/dist/benchmark.js +182 -0
  10. package/dist/chalk/index.d.ts +0 -0
  11. package/dist/chalk/index.js +0 -0
  12. package/dist/cleanup-before-quit.d.ts +3 -0
  13. package/dist/cleanup-before-quit.js +23 -0
  14. package/dist/code-frame.d.ts +0 -0
  15. package/dist/code-frame.js +18 -7
  16. package/dist/composition-prompts.d.ts +8 -0
  17. package/dist/composition-prompts.js +26 -0
  18. package/dist/compositions.d.ts +1 -1
  19. package/dist/compositions.js +15 -57
  20. package/dist/config/audio-codec.d.ts +3 -0
  21. package/dist/config/audio-codec.js +20 -0
  22. package/dist/config/bitrate.d.ts +4 -0
  23. package/dist/config/bitrate.js +21 -0
  24. package/dist/config/browser-executable.d.ts +0 -0
  25. package/dist/config/browser-executable.js +0 -0
  26. package/dist/config/browser.d.ts +0 -0
  27. package/dist/config/browser.js +0 -0
  28. package/dist/config/chromium-flags.d.ts +0 -0
  29. package/dist/config/chromium-flags.js +0 -0
  30. package/dist/config/codec.d.ts +0 -0
  31. package/dist/config/codec.js +0 -0
  32. package/dist/config/concurrency.d.ts +2 -2
  33. package/dist/config/concurrency.js +0 -0
  34. package/dist/config/crf.d.ts +1 -2
  35. package/dist/config/crf.js +1 -9
  36. package/dist/config/enforce-audio-track.d.ts +0 -0
  37. package/dist/config/enforce-audio-track.js +0 -0
  38. package/dist/config/entry-point.d.ts +2 -0
  39. package/dist/config/entry-point.js +12 -0
  40. package/dist/config/env-file.d.ts +0 -0
  41. package/dist/config/env-file.js +0 -0
  42. package/dist/config/every-nth-frame.d.ts +1 -2
  43. package/dist/config/every-nth-frame.js +3 -11
  44. package/dist/config/ffmpeg-executable.d.ts +0 -0
  45. package/dist/config/ffmpeg-executable.js +0 -0
  46. package/dist/config/ffmpeg-override.d.ts +3 -0
  47. package/dist/config/ffmpeg-override.js +12 -0
  48. package/dist/config/frame-range.d.ts +0 -0
  49. package/dist/config/frame-range.js +0 -0
  50. package/dist/config/height.d.ts +2 -0
  51. package/dist/config/height.js +14 -0
  52. package/dist/config/image-format.d.ts +0 -0
  53. package/dist/config/image-format.js +8 -1
  54. package/dist/config/image-sequence.d.ts +0 -0
  55. package/dist/config/image-sequence.js +0 -0
  56. package/dist/config/index.d.ts +18 -5
  57. package/dist/config/index.js +99 -54
  58. package/dist/config/keyboard-shortcuts.d.ts +2 -0
  59. package/dist/config/keyboard-shortcuts.js +12 -0
  60. package/dist/config/log.d.ts +0 -0
  61. package/dist/config/log.js +0 -0
  62. package/dist/config/max-timeline-tracks.d.ts +0 -0
  63. package/dist/config/max-timeline-tracks.js +0 -0
  64. package/dist/config/muted.d.ts +0 -0
  65. package/dist/config/muted.js +0 -0
  66. package/dist/config/number-of-gif-loops.d.ts +1 -2
  67. package/dist/config/number-of-gif-loops.js +3 -9
  68. package/dist/config/number-of-shared-audio-tags.d.ts +2 -0
  69. package/dist/config/number-of-shared-audio-tags.js +12 -0
  70. package/dist/config/open-browser.d.ts +2 -0
  71. package/dist/config/open-browser.js +15 -0
  72. package/dist/config/output-location.d.ts +0 -0
  73. package/dist/config/output-location.js +0 -0
  74. package/dist/config/override-webpack.d.ts +0 -0
  75. package/dist/config/override-webpack.js +0 -0
  76. package/dist/config/overwrite.d.ts +3 -1
  77. package/dist/config/overwrite.js +2 -3
  78. package/dist/config/pixel-format.d.ts +0 -0
  79. package/dist/config/pixel-format.js +0 -0
  80. package/dist/config/preview-server.d.ts +0 -0
  81. package/dist/config/preview-server.js +0 -0
  82. package/dist/config/prores-profile.d.ts +0 -0
  83. package/dist/config/prores-profile.js +0 -0
  84. package/dist/config/public-dir.d.ts +2 -0
  85. package/dist/config/public-dir.js +12 -0
  86. package/dist/config/quality.d.ts +0 -0
  87. package/dist/config/quality.js +0 -0
  88. package/dist/config/scale.d.ts +0 -0
  89. package/dist/config/scale.js +0 -0
  90. package/dist/config/still-frame.d.ts +0 -0
  91. package/dist/config/still-frame.js +2 -2
  92. package/dist/config/timeout.d.ts +0 -0
  93. package/dist/config/timeout.js +1 -1
  94. package/dist/config/webpack-caching.d.ts +0 -0
  95. package/dist/config/webpack-caching.js +0 -0
  96. package/dist/config/webpack-poll.d.ts +2 -0
  97. package/dist/config/webpack-poll.js +16 -0
  98. package/dist/config/width.d.ts +2 -0
  99. package/dist/config/width.js +16 -0
  100. package/dist/determine-image-format.d.ts +11 -0
  101. package/dist/determine-image-format.js +48 -0
  102. package/dist/download-progress.d.ts +0 -0
  103. package/dist/download-progress.js +0 -0
  104. package/dist/editor/components/AudioWaveform.d.ts +1 -0
  105. package/dist/editor/components/AudioWaveform.js +10 -3
  106. package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
  107. package/dist/editor/components/AudioWaveformBar.js +0 -0
  108. package/dist/editor/components/Canvas.d.ts +0 -0
  109. package/dist/editor/components/Canvas.js +201 -1
  110. package/dist/editor/components/CheckboardToggle.d.ts +0 -0
  111. package/dist/editor/components/CheckboardToggle.js +8 -1
  112. package/dist/editor/components/ClipboardIcon.d.ts +0 -0
  113. package/dist/editor/components/ClipboardIcon.js +0 -0
  114. package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -0
  115. package/dist/editor/components/CollapsedCompositionSelector.js +0 -0
  116. package/dist/editor/components/CompositionSelector.d.ts +0 -0
  117. package/dist/editor/components/CompositionSelector.js +0 -0
  118. package/dist/editor/components/CompositionSelectorItem.d.ts +0 -0
  119. package/dist/editor/components/CompositionSelectorItem.js +0 -0
  120. package/dist/editor/components/ControlButton.d.ts +0 -0
  121. package/dist/editor/components/ControlButton.js +0 -0
  122. package/dist/editor/components/CopyButton.d.ts +0 -0
  123. package/dist/editor/components/CopyButton.js +3 -16
  124. package/dist/editor/components/CurrentComposition.d.ts +0 -0
  125. package/dist/editor/components/CurrentComposition.js +0 -0
  126. package/dist/editor/components/Editor.d.ts +0 -0
  127. package/dist/editor/components/Editor.js +5 -91
  128. package/dist/editor/components/EditorContent.d.ts +0 -0
  129. package/dist/editor/components/EditorContent.js +0 -0
  130. package/dist/editor/components/EditorContexts.d.ts +4 -0
  131. package/dist/editor/components/EditorContexts.js +98 -0
  132. package/dist/editor/components/FpsCounter.d.ts +0 -0
  133. package/dist/editor/components/FpsCounter.js +0 -0
  134. package/dist/editor/components/FramePersistor.d.ts +0 -0
  135. package/dist/editor/components/FramePersistor.js +0 -0
  136. package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
  137. package/dist/editor/components/GlobalKeybindings.js +20 -1
  138. package/dist/editor/components/InitialCompositionLoader.d.ts +0 -0
  139. package/dist/editor/components/InitialCompositionLoader.js +0 -0
  140. package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +2 -0
  141. package/dist/editor/components/KeyboardShortcutsExplainer.js +56 -0
  142. package/dist/editor/components/LoopToggle.d.ts +0 -0
  143. package/dist/editor/components/LoopToggle.js +0 -0
  144. package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
  145. package/dist/editor/components/Menu/MenuDivider.js +0 -0
  146. package/dist/editor/components/Menu/MenuItem.d.ts +2 -1
  147. package/dist/editor/components/Menu/MenuItem.js +20 -3
  148. package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
  149. package/dist/editor/components/Menu/MenuSubItem.js +4 -2
  150. package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
  151. package/dist/editor/components/Menu/SubMenu.js +0 -0
  152. package/dist/editor/components/Menu/is-menu-item.d.ts +3 -0
  153. package/dist/editor/components/Menu/is-menu-item.js +12 -0
  154. package/dist/editor/components/Menu/portals.d.ts +0 -0
  155. package/dist/editor/components/Menu/portals.js +0 -0
  156. package/dist/editor/components/Menu/styles.d.ts +0 -0
  157. package/dist/editor/components/Menu/styles.js +0 -2
  158. package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
  159. package/dist/editor/components/MenuBuildIndicator.js +0 -0
  160. package/dist/editor/components/MenuToolbar.d.ts +0 -0
  161. package/dist/editor/components/MenuToolbar.js +3 -444
  162. package/dist/editor/components/ModalContainer.d.ts +0 -0
  163. package/dist/editor/components/ModalContainer.js +0 -0
  164. package/dist/editor/components/ModalHeader.d.ts +0 -0
  165. package/dist/editor/components/ModalHeader.js +0 -0
  166. package/dist/editor/components/MuteToggle.d.ts +0 -0
  167. package/dist/editor/components/MuteToggle.js +0 -0
  168. package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
  169. package/dist/editor/components/NewComposition/CancelButton.js +0 -0
  170. package/dist/editor/components/NewComposition/ComboBox.d.ts +2 -1
  171. package/dist/editor/components/NewComposition/ComboBox.js +39 -3
  172. package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
  173. package/dist/editor/components/NewComposition/CopyHint.js +0 -0
  174. package/dist/editor/components/NewComposition/InputDragger.d.ts +1 -0
  175. package/dist/editor/components/NewComposition/InputDragger.js +23 -4
  176. package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
  177. package/dist/editor/components/NewComposition/MenuContent.js +11 -1
  178. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
  179. package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
  180. package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
  181. package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
  182. package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
  183. package/dist/editor/components/NewComposition/NewCompDuration.js +5 -3
  184. package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
  185. package/dist/editor/components/NewComposition/NewComposition.js +8 -5
  186. package/dist/editor/components/NewComposition/RemInput.d.ts +3 -1
  187. package/dist/editor/components/NewComposition/RemInput.js +1 -1
  188. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
  189. package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
  190. package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -0
  191. package/dist/editor/components/NewComposition/ValidationMessage.js +0 -0
  192. package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
  193. package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
  194. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
  195. package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
  196. package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
  197. package/dist/editor/components/NoRegisterRoot.js +0 -0
  198. package/dist/editor/components/Notifications/ColorDot.d.ts +0 -0
  199. package/dist/editor/components/Notifications/ColorDot.js +0 -0
  200. package/dist/editor/components/Notifications/Notification.d.ts +0 -0
  201. package/dist/editor/components/Notifications/Notification.js +0 -0
  202. package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -0
  203. package/dist/editor/components/Notifications/NotificationCenter.js +1 -1
  204. package/dist/editor/components/Notifications/ServerDisconnected.d.ts +1 -0
  205. package/dist/editor/components/Notifications/ServerDisconnected.js +3 -0
  206. package/dist/editor/components/PlayPause.d.ts +0 -0
  207. package/dist/editor/components/PlayPause.js +9 -2
  208. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
  209. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +9 -18
  210. package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
  211. package/dist/editor/components/PlaybackRatePersistor.js +0 -0
  212. package/dist/editor/components/PlaybackRateSelector.d.ts +0 -0
  213. package/dist/editor/components/PlaybackRateSelector.js +6 -0
  214. package/dist/editor/components/Preview.d.ts +1 -0
  215. package/dist/editor/components/Preview.js +17 -9
  216. package/dist/editor/components/PreviewToolbar.d.ts +0 -0
  217. package/dist/editor/components/PreviewToolbar.js +0 -0
  218. package/dist/editor/components/QuickSwitcher/AlgoliaCredit.d.ts +2 -0
  219. package/dist/editor/components/QuickSwitcher/AlgoliaCredit.js +11 -0
  220. package/dist/editor/components/QuickSwitcher/NoResults.d.ts +6 -0
  221. package/dist/editor/components/QuickSwitcher/NoResults.js +20 -0
  222. package/dist/editor/components/QuickSwitcher/QuickSwitcher.d.ts +7 -0
  223. package/dist/editor/components/QuickSwitcher/QuickSwitcher.js +16 -0
  224. package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.d.ts +6 -0
  225. package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +269 -0
  226. package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +21 -0
  227. package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +109 -0
  228. package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +29 -0
  229. package/dist/editor/components/QuickSwitcher/algolia-search.js +63 -0
  230. package/dist/editor/components/QuickSwitcher/fuzzy-search.d.ts +2 -0
  231. package/dist/editor/components/QuickSwitcher/fuzzy-search.js +26 -0
  232. package/dist/editor/components/ResetZoomButton.d.ts +4 -0
  233. package/dist/editor/components/ResetZoomButton.js +9 -0
  234. package/dist/editor/components/RichTimelineToggle.d.ts +0 -0
  235. package/dist/editor/components/RichTimelineToggle.js +0 -0
  236. package/dist/editor/components/SizeSelector.d.ts +2 -1
  237. package/dist/editor/components/SizeSelector.js +59 -18
  238. package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -0
  239. package/dist/editor/components/Splitter/SplitterContainer.js +0 -0
  240. package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
  241. package/dist/editor/components/Splitter/SplitterContext.js +0 -0
  242. package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
  243. package/dist/editor/components/Splitter/SplitterElement.js +0 -0
  244. package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -0
  245. package/dist/editor/components/Splitter/SplitterHandle.js +0 -0
  246. package/dist/editor/components/Thumbnail.d.ts +0 -0
  247. package/dist/editor/components/Thumbnail.js +0 -0
  248. package/dist/editor/components/TimeValue.d.ts +0 -0
  249. package/dist/editor/components/TimeValue.js +0 -0
  250. package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
  251. package/dist/editor/components/Timeline/LoopedIndicator.js +0 -0
  252. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
  253. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
  254. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +0 -0
  255. package/dist/editor/components/Timeline/MaxTimelineTracks.js +0 -0
  256. package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
  257. package/dist/editor/components/Timeline/Timeline.js +12 -6
  258. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -0
  259. package/dist/editor/components/Timeline/TimelineCollapseToggle.js +0 -0
  260. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
  261. package/dist/editor/components/Timeline/TimelineDragHandler.js +0 -0
  262. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
  263. package/dist/editor/components/Timeline/TimelineInOutPointer.js +0 -0
  264. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
  265. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
  266. package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
  267. package/dist/editor/components/Timeline/TimelineList.js +0 -0
  268. package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
  269. package/dist/editor/components/Timeline/TimelineListItem.js +0 -0
  270. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
  271. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -0
  272. package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
  273. package/dist/editor/components/Timeline/TimelineScrollable.js +0 -0
  274. package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -0
  275. package/dist/editor/components/Timeline/TimelineSequence.js +1 -1
  276. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
  277. package/dist/editor/components/Timeline/TimelineSequenceFrame.js +0 -0
  278. package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
  279. package/dist/editor/components/Timeline/TimelineSlider.js +1 -1
  280. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
  281. package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -0
  282. package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -0
  283. package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -0
  284. package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
  285. package/dist/editor/components/Timeline/TimelineTracks.js +0 -0
  286. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
  287. package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
  288. package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +0 -0
  289. package/dist/editor/components/Timeline/TimelineZoomControls.js +3 -1
  290. package/dist/editor/components/Timeline/imperative-state.d.ts +0 -0
  291. package/dist/editor/components/Timeline/imperative-state.js +0 -0
  292. package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
  293. package/dist/editor/components/Timeline/is-collapsed.js +0 -0
  294. package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
  295. package/dist/editor/components/Timeline/timeline-refs.js +0 -0
  296. package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -0
  297. package/dist/editor/components/Timeline/timeline-scroll-logic.js +0 -0
  298. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -0
  299. package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
  300. package/dist/editor/components/TimelineInOutToggle.d.ts +2 -2
  301. package/dist/editor/components/TimelineInOutToggle.js +69 -17
  302. package/dist/editor/components/TopPanel.d.ts +0 -0
  303. package/dist/editor/components/TopPanel.js +0 -0
  304. package/dist/editor/components/UpdateCheck.d.ts +0 -0
  305. package/dist/editor/components/UpdateCheck.js +0 -0
  306. package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
  307. package/dist/editor/components/UpdateModal/UpdateModal.js +0 -0
  308. package/dist/editor/components/ZoomPersistor.d.ts +0 -0
  309. package/dist/editor/components/ZoomPersistor.js +0 -0
  310. package/dist/editor/components/layout.d.ts +0 -0
  311. package/dist/editor/components/layout.js +0 -0
  312. package/dist/editor/helpers/calculate-timeline.d.ts +0 -0
  313. package/dist/editor/helpers/calculate-timeline.js +0 -0
  314. package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
  315. package/dist/editor/helpers/checkerboard-background.js +0 -0
  316. package/dist/editor/helpers/colors.d.ts +0 -0
  317. package/dist/editor/helpers/colors.js +0 -0
  318. package/dist/editor/helpers/copy-text.d.ts +0 -0
  319. package/dist/editor/helpers/copy-text.js +0 -0
  320. package/dist/editor/helpers/create-folder-tree.d.ts +0 -0
  321. package/dist/editor/helpers/create-folder-tree.js +0 -0
  322. package/dist/editor/helpers/get-effective-translation.d.ts +26 -0
  323. package/dist/editor/helpers/get-effective-translation.js +45 -0
  324. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -0
  325. package/dist/editor/helpers/get-left-of-timeline-slider.js +0 -0
  326. package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
  327. package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
  328. package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
  329. package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
  330. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
  331. package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
  332. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +0 -0
  333. package/dist/editor/helpers/get-timeline-sequence-layout.js +0 -0
  334. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -0
  335. package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
  336. package/dist/editor/helpers/is-composition-still.d.ts +0 -0
  337. package/dist/editor/helpers/is-composition-still.js +0 -0
  338. package/dist/editor/helpers/is-current-selected-still.d.ts +4 -0
  339. package/dist/editor/helpers/is-current-selected-still.js +15 -1
  340. package/dist/editor/helpers/noop.d.ts +0 -0
  341. package/dist/editor/helpers/noop.js +0 -0
  342. package/dist/editor/helpers/open-in-editor.d.ts +2 -0
  343. package/dist/editor/helpers/open-in-editor.js +22 -0
  344. package/dist/editor/helpers/persist-open-folders.d.ts +0 -0
  345. package/dist/editor/helpers/persist-open-folders.js +0 -0
  346. package/dist/editor/helpers/pick-color.d.ts +0 -0
  347. package/dist/editor/helpers/pick-color.js +0 -0
  348. package/dist/editor/helpers/timeline-layout.d.ts +0 -0
  349. package/dist/editor/helpers/timeline-layout.js +0 -0
  350. package/dist/editor/helpers/use-compact-ui.d.ts +0 -0
  351. package/dist/editor/helpers/use-compact-ui.js +0 -0
  352. package/dist/editor/helpers/use-keybinding.d.ts +2 -0
  353. package/dist/editor/helpers/use-keybinding.js +16 -2
  354. package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
  355. package/dist/editor/helpers/use-menu-structure.js +657 -0
  356. package/dist/editor/helpers/validate-new-comp-data.d.ts +0 -0
  357. package/dist/editor/helpers/validate-new-comp-data.js +0 -0
  358. package/dist/editor/icons/Checkmark.d.ts +0 -0
  359. package/dist/editor/icons/Checkmark.js +0 -0
  360. package/dist/editor/icons/caret.d.ts +0 -0
  361. package/dist/editor/icons/caret.js +0 -0
  362. package/dist/editor/icons/film.d.ts +0 -0
  363. package/dist/editor/icons/film.js +0 -0
  364. package/dist/editor/icons/folder.d.ts +0 -0
  365. package/dist/editor/icons/folder.js +0 -0
  366. package/dist/editor/icons/jump-to-start.d.ts +0 -0
  367. package/dist/editor/icons/jump-to-start.js +0 -0
  368. package/dist/editor/icons/keys.d.ts +0 -0
  369. package/dist/editor/icons/keys.js +0 -0
  370. package/dist/editor/icons/lock.d.ts +0 -0
  371. package/dist/editor/icons/lock.js +0 -0
  372. package/dist/editor/icons/media-volume.d.ts +0 -0
  373. package/dist/editor/icons/media-volume.js +0 -0
  374. package/dist/editor/icons/minus.d.ts +0 -0
  375. package/dist/editor/icons/minus.js +0 -0
  376. package/dist/editor/icons/pause.d.ts +0 -0
  377. package/dist/editor/icons/pause.js +0 -0
  378. package/dist/editor/icons/play.d.ts +0 -0
  379. package/dist/editor/icons/play.js +0 -0
  380. package/dist/editor/icons/plus.d.ts +0 -0
  381. package/dist/editor/icons/plus.js +0 -0
  382. package/dist/editor/icons/step-back.d.ts +0 -0
  383. package/dist/editor/icons/step-back.js +0 -0
  384. package/dist/editor/icons/step-forward.d.ts +0 -0
  385. package/dist/editor/icons/step-forward.js +0 -0
  386. package/dist/editor/icons/still.d.ts +0 -0
  387. package/dist/editor/icons/still.js +0 -0
  388. package/dist/editor/icons/timeline.d.ts +0 -0
  389. package/dist/editor/icons/timeline.js +0 -0
  390. package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
  391. package/dist/editor/icons/timelineInOutPointer.js +0 -0
  392. package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
  393. package/dist/editor/state/aspect-ratio-locked.js +0 -0
  394. package/dist/editor/state/checkerboard.d.ts +0 -0
  395. package/dist/editor/state/checkerboard.js +0 -0
  396. package/dist/editor/state/editor-zoom-gestures.d.ts +9 -0
  397. package/dist/editor/state/editor-zoom-gestures.js +17 -0
  398. package/dist/editor/state/folders.d.ts +0 -0
  399. package/dist/editor/state/folders.js +0 -0
  400. package/dist/editor/state/highest-z-index.d.ts +0 -0
  401. package/dist/editor/state/highest-z-index.js +0 -0
  402. package/dist/editor/state/in-out.d.ts +0 -0
  403. package/dist/editor/state/in-out.js +0 -0
  404. package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
  405. package/dist/editor/state/input-dragger-click-lock.js +0 -0
  406. package/dist/editor/state/keybindings.d.ts +0 -0
  407. package/dist/editor/state/keybindings.js +0 -0
  408. package/dist/editor/state/loop.d.ts +0 -0
  409. package/dist/editor/state/loop.js +0 -0
  410. package/dist/editor/state/marks.d.ts +0 -0
  411. package/dist/editor/state/marks.js +0 -0
  412. package/dist/editor/state/modals.d.ts +4 -1
  413. package/dist/editor/state/modals.js +0 -0
  414. package/dist/editor/state/mute.d.ts +0 -0
  415. package/dist/editor/state/mute.js +0 -0
  416. package/dist/editor/state/playbackrate.d.ts +0 -0
  417. package/dist/editor/state/playbackrate.js +0 -0
  418. package/dist/editor/state/preview-size.d.ts +5 -2
  419. package/dist/editor/state/preview-size.js +49 -5
  420. package/dist/editor/state/render-frame.d.ts +0 -0
  421. package/dist/editor/state/render-frame.js +0 -0
  422. package/dist/editor/state/rich-timeline.d.ts +0 -0
  423. package/dist/editor/state/rich-timeline.js +0 -0
  424. package/dist/editor/state/sidebar.d.ts +0 -0
  425. package/dist/editor/state/sidebar.js +0 -0
  426. package/dist/editor/state/timeline-ref.d.ts +0 -0
  427. package/dist/editor/state/timeline-ref.js +0 -0
  428. package/dist/editor/state/timeline-zoom.d.ts +0 -0
  429. package/dist/editor/state/timeline-zoom.js +0 -0
  430. package/dist/editor/state/timeline.d.ts +0 -0
  431. package/dist/editor/state/timeline.js +0 -0
  432. package/dist/editor/state/z-index.d.ts +0 -0
  433. package/dist/editor/state/z-index.js +25 -11
  434. package/dist/entry-point.d.ts +5 -0
  435. package/dist/entry-point.js +89 -0
  436. package/dist/event-source-events.d.ts +7 -0
  437. package/dist/event-source-events.js +0 -0
  438. package/dist/event-source.d.ts +0 -0
  439. package/dist/event-source.js +17 -4
  440. package/dist/format-bytes.d.ts +0 -0
  441. package/dist/format-bytes.js +0 -0
  442. package/dist/get-audio-codec.d.ts +2 -0
  443. package/dist/get-audio-codec.js +10 -0
  444. package/dist/get-cli-options.d.ts +19 -6
  445. package/dist/get-cli-options.js +44 -56
  446. package/dist/get-composition-id.d.ts +7 -1
  447. package/dist/get-composition-id.js +30 -7
  448. package/dist/get-composition-with-dimension-override.d.ts +12 -0
  449. package/dist/get-composition-with-dimension-override.js +16 -0
  450. package/dist/get-config-file-name.d.ts +0 -0
  451. package/dist/get-config-file-name.js +0 -0
  452. package/dist/get-env.d.ts +1 -1
  453. package/dist/get-env.js +60 -8
  454. package/dist/get-filename.d.ts +2 -3
  455. package/dist/get-filename.js +7 -23
  456. package/dist/get-final-output-codec.d.ts +9 -5
  457. package/dist/get-final-output-codec.js +51 -57
  458. package/dist/get-input-props.d.ts +4 -0
  459. package/dist/get-input-props.js +4 -0
  460. package/dist/get-latest-remotion-version.d.ts +0 -0
  461. package/dist/get-latest-remotion-version.js +0 -0
  462. package/dist/get-network-address.d.ts +1 -0
  463. package/dist/get-network-address.js +16 -0
  464. package/dist/get-render-media-options.d.ts +8 -0
  465. package/dist/get-render-media-options.js +55 -0
  466. package/dist/handle-common-errors.d.ts +0 -0
  467. package/dist/handle-common-errors.js +7 -1
  468. package/dist/image-formats.d.ts +0 -0
  469. package/dist/image-formats.js +0 -0
  470. package/dist/index.d.ts +45 -11
  471. package/dist/index.js +44 -20
  472. package/dist/initialize-cli.d.ts +1 -0
  473. package/dist/{initialize-render-cli.js → initialize-cli.js} +4 -4
  474. package/dist/install.d.ts +2 -0
  475. package/dist/install.js +36 -0
  476. package/dist/is-javascript.d.ts +0 -0
  477. package/dist/is-javascript.js +0 -0
  478. package/dist/lambda-command.d.ts +1 -1
  479. package/dist/lambda-command.js +4 -7
  480. package/dist/list-of-remotion-packages.d.ts +1 -0
  481. package/dist/list-of-remotion-packages.js +26 -0
  482. package/dist/load-config.d.ts +0 -0
  483. package/dist/load-config.js +6 -16
  484. package/dist/log.d.ts +0 -0
  485. package/dist/log.js +0 -0
  486. package/dist/make-progress-bar.d.ts +0 -0
  487. package/dist/make-progress-bar.js +14 -1
  488. package/dist/parse-command-line.d.ts +18 -4
  489. package/dist/parse-command-line.js +50 -37
  490. package/dist/preview-server/dev-middleware/compatible-api.d.ts +0 -0
  491. package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
  492. package/dist/preview-server/dev-middleware/get-paths.d.ts +0 -0
  493. package/dist/preview-server/dev-middleware/get-paths.js +0 -0
  494. package/dist/preview-server/dev-middleware/index.d.ts +0 -0
  495. package/dist/preview-server/dev-middleware/index.js +0 -0
  496. package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -0
  497. package/dist/preview-server/dev-middleware/is-color-supported.js +0 -0
  498. package/dist/preview-server/dev-middleware/middleware.d.ts +0 -0
  499. package/dist/preview-server/dev-middleware/middleware.js +3 -4
  500. package/dist/preview-server/dev-middleware/range-parser.d.ts +0 -0
  501. package/dist/preview-server/dev-middleware/range-parser.js +0 -0
  502. package/dist/preview-server/dev-middleware/ready.d.ts +0 -0
  503. package/dist/preview-server/dev-middleware/ready.js +0 -0
  504. package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -0
  505. package/dist/preview-server/dev-middleware/setup-hooks.js +15 -4
  506. package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -0
  507. package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
  508. package/dist/preview-server/dev-middleware/types.d.ts +0 -0
  509. package/dist/preview-server/dev-middleware/types.js +0 -0
  510. package/dist/preview-server/env-supports-fs-recursive.d.ts +1 -0
  511. package/dist/preview-server/env-supports-fs-recursive.js +18 -0
  512. package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
  513. package/dist/preview-server/error-overlay/entry-basic.js +2 -2
  514. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -0
  515. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
  516. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -0
  517. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -0
  518. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -0
  519. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
  520. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -0
  521. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
  522. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
  523. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
  524. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -0
  525. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
  526. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -0
  527. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
  528. package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
  529. package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
  530. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -0
  531. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -0
  532. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -0
  533. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +0 -0
  534. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -0
  535. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
  536. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -0
  537. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -0
  538. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
  539. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +1 -3
  540. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +1 -1
  541. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +28 -18
  542. package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -0
  543. package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
  544. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -0
  545. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
  546. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -0
  547. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
  548. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -0
  549. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +1 -0
  550. package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +0 -0
  551. package/dist/preview-server/error-overlay/remotion-overlay/Button.js +0 -0
  552. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
  553. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +0 -0
  554. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
  555. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
  556. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -0
  557. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +0 -0
  558. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -0
  559. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +0 -0
  560. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -0
  561. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -0
  562. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -0
  563. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +0 -0
  564. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
  565. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +1 -0
  566. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
  567. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +3 -9
  568. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -0
  569. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +0 -0
  570. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -0
  571. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -0
  572. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +1 -0
  573. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +3 -3
  574. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
  575. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -0
  576. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
  577. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
  578. package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -0
  579. package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -0
  580. package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -0
  581. package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -0
  582. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +0 -0
  583. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +6 -0
  584. package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
  585. package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -0
  586. package/dist/preview-server/get-absolute-public-dir.d.ts +4 -0
  587. package/dist/preview-server/get-absolute-public-dir.js +14 -0
  588. package/dist/preview-server/get-package-manager.d.ts +1 -1
  589. package/dist/preview-server/get-package-manager.js +10 -1
  590. package/dist/preview-server/hot-middleware/client.d.ts +0 -0
  591. package/dist/preview-server/hot-middleware/client.js +0 -0
  592. package/dist/preview-server/hot-middleware/index.d.ts +94 -0
  593. package/dist/preview-server/hot-middleware/index.js +1 -2
  594. package/dist/preview-server/hot-middleware/process-update.d.ts +0 -0
  595. package/dist/preview-server/hot-middleware/process-update.js +5 -6
  596. package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -0
  597. package/dist/preview-server/hot-middleware/strip-ansi.js +0 -0
  598. package/dist/preview-server/hot-middleware/types.d.ts +0 -0
  599. package/dist/preview-server/hot-middleware/types.js +0 -0
  600. package/dist/preview-server/live-events.d.ts +0 -0
  601. package/dist/preview-server/live-events.js +0 -0
  602. package/dist/preview-server/project-info.d.ts +0 -0
  603. package/dist/preview-server/project-info.js +9 -1
  604. package/dist/preview-server/public-folder.d.ts +17 -0
  605. package/dist/preview-server/public-folder.js +56 -0
  606. package/dist/preview-server/routes.d.ts +3 -1
  607. package/dist/preview-server/routes.js +16 -5
  608. package/dist/preview-server/serve-static.d.ts +0 -0
  609. package/dist/preview-server/serve-static.js +2 -1
  610. package/dist/preview-server/start-server.d.ts +12 -4
  611. package/dist/preview-server/start-server.js +55 -22
  612. package/dist/preview-server/update-available.d.ts +0 -0
  613. package/dist/preview-server/update-available.js +2 -2
  614. package/dist/preview.d.ts +1 -1
  615. package/dist/preview.js +92 -11
  616. package/dist/previewEntry.d.ts +0 -0
  617. package/dist/previewEntry.js +3 -3
  618. package/dist/print-compositions.d.ts +2 -0
  619. package/dist/print-compositions.js +50 -0
  620. package/dist/print-error.d.ts +0 -0
  621. package/dist/print-error.js +0 -0
  622. package/dist/print-help.d.ts +0 -0
  623. package/dist/print-help.js +18 -3
  624. package/dist/progress-bar.d.ts +13 -1
  625. package/dist/progress-bar.js +44 -3
  626. package/dist/render.d.ts +1 -1
  627. package/dist/render.js +78 -71
  628. package/dist/resolve-from.d.ts +0 -0
  629. package/dist/resolve-from.js +0 -0
  630. package/dist/select-composition.d.ts +7 -0
  631. package/dist/select-composition.js +51 -0
  632. package/dist/setup-cache.d.ts +5 -3
  633. package/dist/setup-cache.js +66 -14
  634. package/dist/smooth-zoom.d.ts +4 -0
  635. package/dist/smooth-zoom.js +20 -0
  636. package/dist/step.d.ts +0 -0
  637. package/dist/step.js +0 -0
  638. package/dist/still.d.ts +1 -1
  639. package/dist/still.js +47 -50
  640. package/dist/truthy.d.ts +0 -0
  641. package/dist/truthy.js +0 -0
  642. package/dist/upgrade.d.ts +1 -1
  643. package/dist/upgrade.js +17 -23
  644. package/dist/user-passed-output-location.d.ts +4 -2
  645. package/dist/user-passed-output-location.js +14 -10
  646. package/dist/versions.d.ts +0 -0
  647. package/dist/versions.js +3 -18
  648. package/package.json +14 -15
  649. package/web/favicon.png +0 -0
  650. package/.prettierrc.js +0 -14
  651. package/dist/bundle.d.ts +0 -1
  652. package/dist/bundle.js +0 -32
  653. package/dist/check-version.d.ts +0 -1
  654. package/dist/check-version.js +0 -14
  655. package/dist/config/bundle-out-dir.d.ts +0 -2
  656. package/dist/config/bundle-out-dir.js +0 -12
  657. package/dist/config/get-public-path.d.ts +0 -2
  658. package/dist/config/get-public-path.js +0 -12
  659. package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -2
  660. package/dist/editor/components/KeyboardShortcutsModal.js +0 -53
  661. package/dist/find-closest-package-json.d.ts +0 -2
  662. package/dist/find-closest-package-json.js +0 -35
  663. package/dist/initialize-render-cli.d.ts +0 -1
  664. package/dist/prepare-entry-point.d.ts +0 -12
  665. package/dist/prepare-entry-point.js +0 -37
  666. package/dist/validate-ffmpeg-version.d.ts +0 -3
  667. package/dist/validate-ffmpeg-version.js +0 -17
  668. package/dist/warn-about-ffmpeg-version.d.ts +0 -5
  669. package/dist/warn-about-ffmpeg-version.js +0 -38
  670. package/tsconfig.json +0 -17
  671. package/vitest.config.ts +0 -9
package/LICENSE.md CHANGED
@@ -1,34 +1,34 @@
1
1
  # Remotion License
2
2
 
3
- Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion create videos for free (even commercial), while a company license is required for for-profit organisations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
3
+ Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
4
4
 
5
5
  - [Free license](#free-license)
6
6
  - [Company license](#company-license)
7
7
 
8
8
  ## Free license
9
9
 
10
- Copyright © 2022 [Jonny Burger](https://jonny.io)
10
+ Copyright © 2023 [Remotion](https://www.remotion.dev/)
11
11
 
12
12
  ### Eligibility
13
13
 
14
14
  You are eligible to use Remotion for free if you are:
15
15
 
16
16
  - an individual
17
- - a for-profit organisation with up to 3 employees
18
- - a non-profit or not-for-profit organisation
17
+ - a for-profit organization with up to 3 employees
18
+ - a non-profit or not-for-profit organization
19
19
  - evaluating whether Remotion is a good fit, and are not yet using it in a commercial way
20
20
 
21
21
  ### Allowed use cases
22
22
 
23
- Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify and the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
23
+ Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
24
24
 
25
25
  ### Disallowed use cases
26
26
 
27
- It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, sublicensing your own derivate of Remotion.
27
+ It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, or sublicensing your own derivate of Remotion.
28
28
 
29
29
  ### Warranty notice
30
30
 
31
- The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
31
+ The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
32
32
 
33
33
  ### Support
34
34
 
@@ -36,6 +36,6 @@ Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
36
36
 
37
37
  ## Company license
38
38
 
39
- You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support.
39
+ You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](/docs/support)).
40
40
 
41
41
  Visit [companies.remotion.dev](https://companies.remotion.dev) for pricing and to buy a license.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export declare const benchmarkCommand: (remotionRoot: string, args: string[]) => Promise<void>;
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.benchmarkCommand = void 0;
4
+ const renderer_1 = require("@remotion/renderer");
5
+ const chalk_1 = require("./chalk");
6
+ const cleanup_before_quit_1 = require("./cleanup-before-quit");
7
+ const config_1 = require("./config");
8
+ const entry_point_1 = require("./entry-point");
9
+ const get_cli_options_1 = require("./get-cli-options");
10
+ const get_render_media_options_1 = require("./get-render-media-options");
11
+ const log_1 = require("./log");
12
+ const make_progress_bar_1 = require("./make-progress-bar");
13
+ const parse_command_line_1 = require("./parse-command-line");
14
+ const progress_bar_1 = require("./progress-bar");
15
+ const select_composition_1 = require("./select-composition");
16
+ const setup_cache_1 = require("./setup-cache");
17
+ const truthy_1 = require("./truthy");
18
+ const DEFAULT_RUNS = 3;
19
+ const getValidConcurrency = (renderMediaOptions) => {
20
+ var _a;
21
+ const concurrency = 'concurrency' in renderMediaOptions
22
+ ? (_a = renderMediaOptions.concurrency) !== null && _a !== void 0 ? _a : null
23
+ : null;
24
+ const { concurrencies } = parse_command_line_1.parsedCli;
25
+ if (!concurrencies) {
26
+ return [renderer_1.RenderInternals.getActualConcurrency(concurrency)];
27
+ }
28
+ return concurrencies
29
+ .split(',')
30
+ .map((c) => parseInt(c.trim(), 10));
31
+ };
32
+ const runBenchmark = async (runs, options, onProgress) => {
33
+ const timeTaken = [];
34
+ for (let run = 0; run < runs; ++run) {
35
+ const startTime = performance.now();
36
+ await (0, renderer_1.renderMedia)({
37
+ ...options,
38
+ onProgress: ({ progress }) => onProgress === null || onProgress === void 0 ? void 0 : onProgress(run, progress),
39
+ });
40
+ const endTime = performance.now();
41
+ timeTaken.push(endTime - startTime);
42
+ }
43
+ return timeTaken;
44
+ };
45
+ const formatTime = (time) => {
46
+ let ret = '';
47
+ const hours = Math.floor(time / (60 * 60 * 1000));
48
+ if (hours) {
49
+ ret = `${hours}h`;
50
+ }
51
+ time %= 60 * 60 * 1000;
52
+ const minutes = Math.floor(time / (60 * 1000));
53
+ if (minutes) {
54
+ ret = `${ret}${minutes}m`;
55
+ }
56
+ time %= 60 * 1000;
57
+ const seconds = (time / 1000).toFixed(5);
58
+ if (seconds) {
59
+ ret = `${ret}${seconds}s`;
60
+ }
61
+ return ret;
62
+ };
63
+ const avg = (time) => time.reduce((prev, curr) => prev + curr) / time.length;
64
+ const stdDev = (time) => {
65
+ const mean = avg(time);
66
+ return Math.sqrt(time.map((x) => (x - mean) ** 2).reduce((a, b) => a + b) / time.length);
67
+ };
68
+ const getResults = (results, runs) => {
69
+ const mean = avg(results);
70
+ const dev = stdDev(results);
71
+ const max = Math.max(...results);
72
+ const min = Math.min(...results);
73
+ return ` Time (${chalk_1.chalk.green('mean')} ± ${chalk_1.chalk.green('σ')}): ${chalk_1.chalk.green(formatTime(mean))} ± ${chalk_1.chalk.green(formatTime(dev))}\n Range (${chalk_1.chalk.blue('min')} ... ${chalk_1.chalk.red('max')}): ${chalk_1.chalk.blue(formatTime(min))} ... ${chalk_1.chalk.red(formatTime(max))} \t ${chalk_1.chalk.gray(`${runs} runs`)}
74
+ `;
75
+ };
76
+ const makeBenchmarkProgressBar = ({ totalRuns, run, progress, doneIn, }) => {
77
+ const totalProgress = (run + progress) / totalRuns;
78
+ return [
79
+ `Rendering (${run + 1} out of ${totalRuns} runs)`,
80
+ (0, make_progress_bar_1.makeProgressBar)(totalProgress),
81
+ doneIn === null
82
+ ? `${(totalProgress * 100).toFixed(2)}% `
83
+ : chalk_1.chalk.gray(doneIn),
84
+ ].join(' ');
85
+ };
86
+ const benchmarkCommand = async (remotionRoot, args) => {
87
+ var _a;
88
+ const runs = (_a = parse_command_line_1.parsedCli.runs) !== null && _a !== void 0 ? _a : DEFAULT_RUNS;
89
+ const { file, reason, remainingArgs } = (0, entry_point_1.findEntryPoint)(args, remotionRoot);
90
+ if (!file) {
91
+ log_1.Log.error('No entry file passed.');
92
+ log_1.Log.info('Pass an additional argument specifying the entry file');
93
+ log_1.Log.info();
94
+ log_1.Log.info(`$ remotion benchmark <entry file>`);
95
+ process.exit(1);
96
+ }
97
+ const { inputProps, envVariables, browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, port, puppeteerTimeout, browser, scale, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
98
+ isLambda: false,
99
+ type: 'series',
100
+ remotionRoot,
101
+ });
102
+ log_1.Log.verbose('Entry point:', file, 'reason:', reason);
103
+ const browserInstance = (0, renderer_1.openBrowser)(browser, {
104
+ browserExecutable,
105
+ shouldDumpIo: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
106
+ chromiumOptions,
107
+ forceDeviceScaleFactor: scale,
108
+ });
109
+ const { urlOrBundle: bundleLocation, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
110
+ fullPath: file,
111
+ publicDir,
112
+ remotionRoot,
113
+ steps: ['bundling'],
114
+ });
115
+ (0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
116
+ const puppeteerInstance = await browserInstance;
117
+ const comps = await (0, renderer_1.getCompositions)(bundleLocation, {
118
+ inputProps,
119
+ envVariables,
120
+ chromiumOptions,
121
+ timeoutInMilliseconds: puppeteerTimeout,
122
+ ffmpegExecutable,
123
+ ffprobeExecutable,
124
+ port,
125
+ puppeteerInstance,
126
+ });
127
+ const ids = (remainingArgs[0]
128
+ ? remainingArgs[0]
129
+ .split(',')
130
+ .map((c) => c.trim())
131
+ .filter(truthy_1.truthy)
132
+ : await (0, select_composition_1.selectCompositions)(comps));
133
+ const compositions = ids.map((compId) => {
134
+ const composition = comps.find((c) => c.id === compId);
135
+ if (!composition) {
136
+ throw new Error(`No composition with the ID "${compId}" found.`);
137
+ }
138
+ return composition;
139
+ });
140
+ if (compositions.length === 0) {
141
+ log_1.Log.error('No composition IDs passed. Add another argument to the command specifying at least 1 composition ID.');
142
+ }
143
+ const benchmark = {};
144
+ let count = 1;
145
+ const { codec, reason: codecReason } = (0, get_cli_options_1.getFinalCodec)({
146
+ downloadName: null,
147
+ outName: null,
148
+ });
149
+ for (const composition of compositions) {
150
+ const renderMediaOptions = await (0, get_render_media_options_1.getRenderMediaOptions)({
151
+ config: composition,
152
+ outputLocation: undefined,
153
+ serveUrl: bundleLocation,
154
+ codec,
155
+ remotionRoot,
156
+ });
157
+ const concurrency = getValidConcurrency(renderMediaOptions);
158
+ benchmark[composition.id] = {};
159
+ for (const con of concurrency) {
160
+ const benchmarkProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
161
+ log_1.Log.info();
162
+ log_1.Log.info(`${chalk_1.chalk.bold(`Benchmark #${count++}:`)} ${chalk_1.chalk.gray(`composition=${composition.id} concurrency=${con} codec=${codec} (${codecReason})`)}`);
163
+ const timeTaken = await runBenchmark(runs, {
164
+ ...renderMediaOptions,
165
+ puppeteerInstance,
166
+ concurrency: con,
167
+ }, (run, progress) => {
168
+ benchmarkProgress.update(makeBenchmarkProgressBar({
169
+ totalRuns: runs,
170
+ run,
171
+ doneIn: null,
172
+ progress,
173
+ }));
174
+ });
175
+ benchmarkProgress.update('');
176
+ benchmarkProgress.update(getResults(timeTaken, runs));
177
+ benchmark[composition.id][`${con}`] = timeTaken;
178
+ }
179
+ }
180
+ log_1.Log.info();
181
+ };
182
+ exports.benchmarkCommand = benchmarkCommand;
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ export declare const cleanupBeforeQuit: () => void;
2
+ export declare const registerCleanupJob: (job: () => void) => void;
3
+ export declare const handleCtrlC: () => void;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handleCtrlC = exports.registerCleanupJob = exports.cleanupBeforeQuit = void 0;
4
+ const log_1 = require("./log");
5
+ const cleanupJobs = [];
6
+ const cleanupBeforeQuit = () => {
7
+ for (const job of cleanupJobs) {
8
+ job();
9
+ }
10
+ };
11
+ exports.cleanupBeforeQuit = cleanupBeforeQuit;
12
+ const registerCleanupJob = (job) => {
13
+ cleanupJobs.push(job);
14
+ };
15
+ exports.registerCleanupJob = registerCleanupJob;
16
+ const handleCtrlC = () => {
17
+ process.on('SIGINT', () => {
18
+ log_1.Log.info();
19
+ (0, exports.cleanupBeforeQuit)();
20
+ process.exit(1);
21
+ });
22
+ };
23
+ exports.handleCtrlC = handleCtrlC;
File without changes
@@ -25,8 +25,12 @@ const printCodeFrame = (frame) => {
25
25
  const alignLeftAmount = Math.min(...frame.originalScriptCode.map((c) => c.content.length - c.content.trimStart().length));
26
26
  log_1.Log.info(`${frame.originalScriptCode
27
27
  .map((c) => {
28
- const content = `${String(c.lineNumber).padStart(longestLineNumber, ' ')} | ${c.content.substring(alignLeftAmount)}`;
29
- return c.highlight ? content : chalk_1.chalk.gray(content);
28
+ const left = String(c.lineNumber).padStart(longestLineNumber, ' ');
29
+ const right = c.content.substring(alignLeftAmount);
30
+ if (c.highlight) {
31
+ return `${left} │ ${right}`;
32
+ }
33
+ return `${chalk_1.chalk.gray(left)} │ ${chalk_1.chalk.gray(right)}`;
30
34
  })
31
35
  .join('\n')}`);
32
36
  };
@@ -40,7 +44,7 @@ const logLine = (frame) => {
40
44
  .join(' ')));
41
45
  };
42
46
  const printCodeFrameAndStack = (err) => {
43
- var _a, _b, _c;
47
+ var _a, _b, _c, _d, _e;
44
48
  if (!err.symbolicatedStackFrames ||
45
49
  err.symbolicatedStackFrames.length === 0) {
46
50
  log_1.Log.error(err.stack);
@@ -54,16 +58,23 @@ const printCodeFrameAndStack = (err) => {
54
58
  if (frame === firstFrame) {
55
59
  continue;
56
60
  }
57
- logLine(frame);
61
+ const isUserCode = !((_a = frame.originalFileName) === null || _a === void 0 ? void 0 : _a.includes('node_modules')) &&
62
+ !((_b = frame.originalFileName) === null || _b === void 0 ? void 0 : _b.startsWith('webpack/'));
63
+ if (isUserCode) {
64
+ printCodeFrame(frame);
65
+ }
66
+ else {
67
+ logLine(frame);
68
+ }
58
69
  }
59
70
  if (err.delayRenderCall) {
60
71
  log_1.Log.error();
61
72
  log_1.Log.error('🕧 The delayRender() call is located at:');
62
73
  for (const frame of err.delayRenderCall) {
63
- const showCodeFrame = (!((_a = frame.originalFileName) === null || _a === void 0 ? void 0 : _a.includes('node_modules')) &&
64
- !((_b = frame.originalFileName) === null || _b === void 0 ? void 0 : _b.startsWith('webpack/'))) ||
74
+ const showCodeFrame = (!((_c = frame.originalFileName) === null || _c === void 0 ? void 0 : _c.includes('node_modules')) &&
75
+ !((_d = frame.originalFileName) === null || _d === void 0 ? void 0 : _d.startsWith('webpack/'))) ||
65
76
  frame === err.delayRenderCall[0] ||
66
- ((_c = frame.originalScriptCode) === null || _c === void 0 ? void 0 : _c.map((c) => c.content).join('').includes('delayRender'));
77
+ ((_e = frame.originalScriptCode) === null || _e === void 0 ? void 0 : _e.map((c) => c.content).join('').includes('delayRender'));
67
78
  if (showCodeFrame) {
68
79
  printCodeFrame(frame);
69
80
  }
@@ -0,0 +1,8 @@
1
+ import type { PromptObject } from 'prompts';
2
+ import prompts from 'prompts';
3
+ export declare type Question<V extends string = string> = PromptObject<V> & {
4
+ optionsPerPage?: number;
5
+ };
6
+ export declare type NamelessQuestion = Omit<Question<'value'>, 'name'>;
7
+ export default function prompt(questions: Question): Promise<prompts.Answers<string>>;
8
+ export declare function selectAsync(question: NamelessQuestion): Promise<string | string[]>;
@@ -0,0 +1,26 @@
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.selectAsync = void 0;
7
+ const prompts_1 = __importDefault(require("prompts"));
8
+ const log_1 = require("./log");
9
+ function prompt(questions) {
10
+ return (0, prompts_1.default)([questions], {
11
+ onCancel() {
12
+ log_1.Log.error('No composition selected.');
13
+ process.exit(1);
14
+ },
15
+ });
16
+ }
17
+ exports.default = prompt;
18
+ async function selectAsync(question) {
19
+ const { value } = await prompt({
20
+ ...question,
21
+ name: 'value',
22
+ type: question.type,
23
+ });
24
+ return value !== null && value !== void 0 ? value : null;
25
+ }
26
+ exports.selectAsync = selectAsync;
@@ -1 +1 @@
1
- export declare const listCompositionsCommand: (remotionRoot: string) => Promise<void>;
1
+ export declare const listCompositionsCommand: (remotionRoot: string, args: string[]) => Promise<void>;
@@ -1,49 +1,38 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.listCompositionsCommand = void 0;
7
4
  const renderer_1 = require("@remotion/renderer");
8
- const path_1 = __importDefault(require("path"));
5
+ const cleanup_before_quit_1 = require("./cleanup-before-quit");
6
+ const entry_point_1 = require("./entry-point");
9
7
  const get_cli_options_1 = require("./get-cli-options");
10
8
  const get_config_file_name_1 = require("./get-config-file-name");
11
9
  const log_1 = require("./log");
12
- const parse_command_line_1 = require("./parse-command-line");
10
+ const print_compositions_1 = require("./print-compositions");
13
11
  const setup_cache_1 = require("./setup-cache");
14
- const max = (arr) => {
15
- if (arr.length === 0) {
16
- throw new Error('Array of 0 length');
17
- }
18
- let biggest = arr[0];
19
- for (let i = 0; i < arr.length; i++) {
20
- const elem = arr[i];
21
- if (elem > biggest) {
22
- biggest = elem;
23
- }
24
- }
25
- return biggest;
26
- };
27
- const listCompositionsCommand = async (remotionRoot) => {
28
- const file = parse_command_line_1.parsedCli._[1];
12
+ const listCompositionsCommand = async (remotionRoot, args) => {
13
+ const { file, reason } = (0, entry_point_1.findEntryPoint)(args, remotionRoot);
29
14
  if (!file) {
30
- log_1.Log.error('The `compositions` command requires you to specify a root file. For example');
31
- log_1.Log.error(' npx remotion compositions src/index.tsx');
15
+ log_1.Log.error('The `compositions` command requires you to specify a entry point. For example');
16
+ log_1.Log.error(' npx remotion compositions src/index.ts');
32
17
  log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
33
18
  process.exit(1);
34
19
  }
20
+ log_1.Log.verbose('Entry point:', file, 'reason:', reason);
35
21
  const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
36
- const fullPath = path_1.default.join(process.cwd(), file);
22
+ (0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.cleanDownloadMap(downloadMap));
37
23
  await (0, get_config_file_name_1.loadConfig)(remotionRoot);
38
- const { browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({
24
+ const { browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
39
25
  isLambda: false,
40
26
  type: 'get-compositions',
27
+ remotionRoot,
41
28
  });
42
29
  const { urlOrBundle: bundled, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
43
30
  remotionRoot,
44
- fullPath,
31
+ fullPath: file,
45
32
  steps: ['bundling'],
33
+ publicDir,
46
34
  });
35
+ (0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
47
36
  const compositions = await (0, renderer_1.getCompositions)(bundled, {
48
37
  browserExecutable,
49
38
  ffmpegExecutable,
@@ -55,38 +44,7 @@ const listCompositionsCommand = async (remotionRoot) => {
55
44
  port,
56
45
  downloadMap,
57
46
  });
58
- if (!(0, parse_command_line_1.quietFlagProvided)()) {
59
- log_1.Log.info();
60
- log_1.Log.info('The following compositions are available:');
61
- log_1.Log.info();
62
- }
63
- const firstColumnLength = max(compositions.map(({ id }) => id.length)) + 4;
64
- const secondColumnLength = 8;
65
- const thirdColumnLength = 15;
66
- if ((0, parse_command_line_1.quietFlagProvided)()) {
67
- log_1.Log.info(compositions.map((c) => c.id).join(' '));
68
- return;
69
- }
70
- log_1.Log.info(`${'Composition'.padEnd(firstColumnLength, ' ')}${'FPS'.padEnd(secondColumnLength)}${'Dimensions'.padEnd(thirdColumnLength, ' ')}Duration`);
71
- log_1.Log.info(compositions
72
- .map((comp) => {
73
- const isStill = comp.durationInFrames === 1;
74
- const dimensions = `${comp.width}x${comp.height}`;
75
- const fps = isStill ? '' : comp.fps.toString();
76
- const durationInSeconds = (comp.durationInFrames / comp.fps).toFixed(2);
77
- const formattedDuration = isStill
78
- ? 'Still'
79
- : `${comp.durationInFrames} (${durationInSeconds} sec)`;
80
- return [
81
- comp.id.padEnd(firstColumnLength, ' '),
82
- fps.padEnd(secondColumnLength, ' '),
83
- dimensions.padEnd(thirdColumnLength, ' '),
84
- formattedDuration,
85
- ].join('');
86
- })
87
- .join('\n'));
88
- await renderer_1.RenderInternals.cleanDownloadMap(downloadMap);
89
- await cleanupBundle();
47
+ (0, print_compositions_1.printCompositions)(compositions);
90
48
  log_1.Log.verbose('Cleaned up', downloadMap.assetDir);
91
49
  };
92
50
  exports.listCompositionsCommand = listCompositionsCommand;
@@ -0,0 +1,3 @@
1
+ import type { AudioCodec } from '@remotion/renderer';
2
+ export declare const setAudioCodec: (audioCodec: AudioCodec | null) => void;
3
+ export declare const getAudioCodec: () => "mp3" | "aac" | "pcm-16" | "opus" | null;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAudioCodec = exports.setAudioCodec = void 0;
4
+ const renderer_1 = require("@remotion/renderer");
5
+ let _audioCodec = null;
6
+ const setAudioCodec = (audioCodec) => {
7
+ if (audioCodec === null) {
8
+ _audioCodec = null;
9
+ return;
10
+ }
11
+ if (!renderer_1.RenderInternals.validAudioCodecs.includes(audioCodec)) {
12
+ throw new Error(`Audio codec must be one of the following: ${renderer_1.RenderInternals.validAudioCodecs.join(', ')}, but got ${audioCodec}`);
13
+ }
14
+ _audioCodec = audioCodec;
15
+ };
16
+ exports.setAudioCodec = setAudioCodec;
17
+ const getAudioCodec = () => {
18
+ return _audioCodec;
19
+ };
20
+ exports.getAudioCodec = getAudioCodec;
@@ -0,0 +1,4 @@
1
+ export declare const setAudioBitrate: (bitrate: string) => void;
2
+ export declare const getAudioBitrate: () => string | null;
3
+ export declare const setVideoBitrate: (bitrate: string) => void;
4
+ export declare const getVideoBitrate: () => string | null;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getVideoBitrate = exports.setVideoBitrate = exports.getAudioBitrate = exports.setAudioBitrate = void 0;
4
+ let audioBitrate;
5
+ const setAudioBitrate = (bitrate) => {
6
+ audioBitrate = bitrate;
7
+ };
8
+ exports.setAudioBitrate = setAudioBitrate;
9
+ const getAudioBitrate = () => {
10
+ return audioBitrate;
11
+ };
12
+ exports.getAudioBitrate = getAudioBitrate;
13
+ let videoBitrate;
14
+ const setVideoBitrate = (bitrate) => {
15
+ videoBitrate = bitrate;
16
+ };
17
+ exports.setVideoBitrate = setVideoBitrate;
18
+ const getVideoBitrate = () => {
19
+ return videoBitrate;
20
+ };
21
+ exports.getVideoBitrate = getVideoBitrate;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
- export declare type Concurrency = number | null;
1
+ export declare type Concurrency = number | string | null;
2
2
  export declare const setConcurrency: (newConcurrency: Concurrency) => void;
3
- export declare const getConcurrency: () => number | null;
3
+ export declare const getConcurrency: () => string | number | null;
File without changes
@@ -1,4 +1,3 @@
1
- import type { Codec, Crf } from '@remotion/renderer';
1
+ import type { Crf } from '@remotion/renderer';
2
2
  export declare const setCrf: (newCrf: Crf) => void;
3
3
  export declare const getCrfOrUndefined: () => Crf;
4
- export declare const getActualCrf: (codec: Codec) => number;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getActualCrf = exports.getCrfOrUndefined = exports.setCrf = void 0;
4
- const renderer_1 = require("@remotion/renderer");
3
+ exports.getCrfOrUndefined = exports.setCrf = void 0;
5
4
  let currentCrf;
6
5
  const setCrf = (newCrf) => {
7
6
  if (typeof newCrf !== 'number' && newCrf !== undefined) {
@@ -14,10 +13,3 @@ const getCrfOrUndefined = () => {
14
13
  return currentCrf;
15
14
  };
16
15
  exports.getCrfOrUndefined = getCrfOrUndefined;
17
- const getActualCrf = (codec) => {
18
- var _a;
19
- const crf = (_a = (0, exports.getCrfOrUndefined)()) !== null && _a !== void 0 ? _a : renderer_1.RenderInternals.getDefaultCrfForCodec(codec);
20
- renderer_1.RenderInternals.validateSelectedCrfAndCodecCombination(crf, codec);
21
- return crf;
22
- };
23
- exports.getActualCrf = getActualCrf;
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ export declare const setEntryPoint: (ep: string) => void;
2
+ export declare const getEntryPoint: () => string | null;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getEntryPoint = exports.setEntryPoint = void 0;
4
+ let entryPoint = null;
5
+ const setEntryPoint = (ep) => {
6
+ entryPoint = ep;
7
+ };
8
+ exports.setEntryPoint = setEntryPoint;
9
+ const getEntryPoint = () => {
10
+ return entryPoint;
11
+ };
12
+ exports.getEntryPoint = getEntryPoint;
File without changes
File without changes
@@ -1,3 +1,2 @@
1
- import type { Codec } from '@remotion/renderer';
2
1
  export declare const setEveryNthFrame: (frame: number) => void;
3
- export declare const getAndValidateEveryNthFrame: (codec: Codec) => number;
2
+ export declare const getEveryNthFrame: () => number;