@remotion/cli 4.0.0-prefetch.11 → 4.0.0-prefetch.12

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 (610) hide show
  1. package/LICENSE.md +7 -7
  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 +180 -0
  10. package/dist/chalk/index.d.ts +0 -0
  11. package/dist/chalk/index.js +0 -0
  12. package/dist/check-version.d.ts +0 -0
  13. package/dist/check-version.js +0 -0
  14. package/dist/code-frame.d.ts +0 -0
  15. package/dist/code-frame.js +0 -0
  16. package/dist/compositions.d.ts +0 -0
  17. package/dist/compositions.js +2 -1
  18. package/dist/config/bitrate.d.ts +4 -0
  19. package/dist/config/bitrate.js +21 -0
  20. package/dist/config/browser-executable.d.ts +0 -0
  21. package/dist/config/browser-executable.js +0 -0
  22. package/dist/config/browser.d.ts +0 -0
  23. package/dist/config/browser.js +0 -0
  24. package/dist/config/chromium-flags.d.ts +0 -0
  25. package/dist/config/chromium-flags.js +0 -0
  26. package/dist/config/codec.d.ts +0 -0
  27. package/dist/config/codec.js +0 -0
  28. package/dist/config/concurrency.d.ts +0 -0
  29. package/dist/config/concurrency.js +0 -0
  30. package/dist/config/crf.d.ts +1 -2
  31. package/dist/config/crf.js +1 -9
  32. package/dist/config/enforce-audio-track.d.ts +0 -0
  33. package/dist/config/enforce-audio-track.js +0 -0
  34. package/dist/config/env-file.d.ts +0 -0
  35. package/dist/config/env-file.js +0 -0
  36. package/dist/config/every-nth-frame.d.ts +0 -0
  37. package/dist/config/every-nth-frame.js +0 -0
  38. package/dist/config/ffmpeg-executable.d.ts +0 -0
  39. package/dist/config/ffmpeg-executable.js +0 -0
  40. package/dist/config/ffmpeg-override.d.ts +3 -0
  41. package/dist/config/ffmpeg-override.js +12 -0
  42. package/dist/config/frame-range.d.ts +0 -0
  43. package/dist/config/frame-range.js +0 -0
  44. package/dist/config/image-format.d.ts +0 -0
  45. package/dist/config/image-format.js +8 -1
  46. package/dist/config/image-sequence.d.ts +0 -0
  47. package/dist/config/image-sequence.js +0 -0
  48. package/dist/config/index.d.ts +7 -2
  49. package/dist/config/index.js +11 -4
  50. package/dist/config/keyboard-shortcuts.d.ts +0 -0
  51. package/dist/config/keyboard-shortcuts.js +0 -0
  52. package/dist/config/log.d.ts +0 -0
  53. package/dist/config/log.js +0 -0
  54. package/dist/config/max-timeline-tracks.d.ts +0 -0
  55. package/dist/config/max-timeline-tracks.js +0 -0
  56. package/dist/config/muted.d.ts +0 -0
  57. package/dist/config/muted.js +0 -0
  58. package/dist/config/number-of-gif-loops.d.ts +0 -0
  59. package/dist/config/number-of-gif-loops.js +0 -0
  60. package/dist/config/output-location.d.ts +0 -0
  61. package/dist/config/output-location.js +0 -0
  62. package/dist/config/override-webpack.d.ts +0 -0
  63. package/dist/config/override-webpack.js +0 -0
  64. package/dist/config/overwrite.d.ts +3 -1
  65. package/dist/config/overwrite.js +2 -3
  66. package/dist/config/pixel-format.d.ts +0 -0
  67. package/dist/config/pixel-format.js +0 -0
  68. package/dist/config/preview-server.d.ts +0 -0
  69. package/dist/config/preview-server.js +0 -0
  70. package/dist/config/prores-profile.d.ts +0 -0
  71. package/dist/config/prores-profile.js +0 -0
  72. package/dist/config/public-dir.d.ts +0 -0
  73. package/dist/config/public-dir.js +0 -0
  74. package/dist/config/quality.d.ts +0 -0
  75. package/dist/config/quality.js +0 -0
  76. package/dist/config/scale.d.ts +0 -0
  77. package/dist/config/scale.js +0 -0
  78. package/dist/config/still-frame.d.ts +0 -0
  79. package/dist/config/still-frame.js +0 -0
  80. package/dist/config/timeout.d.ts +0 -0
  81. package/dist/config/timeout.js +0 -0
  82. package/dist/config/webpack-caching.d.ts +0 -0
  83. package/dist/config/webpack-caching.js +0 -0
  84. package/dist/determine-image-format.d.ts +11 -0
  85. package/dist/determine-image-format.js +48 -0
  86. package/dist/download-progress.d.ts +0 -0
  87. package/dist/download-progress.js +0 -0
  88. package/dist/editor/components/AudioWaveform.d.ts +0 -0
  89. package/dist/editor/components/AudioWaveform.js +0 -0
  90. package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
  91. package/dist/editor/components/AudioWaveformBar.js +0 -0
  92. package/dist/editor/components/Canvas.d.ts +0 -0
  93. package/dist/editor/components/Canvas.js +6 -2
  94. package/dist/editor/components/CheckboardToggle.d.ts +0 -0
  95. package/dist/editor/components/CheckboardToggle.js +0 -0
  96. package/dist/editor/components/ClipboardIcon.d.ts +0 -0
  97. package/dist/editor/components/ClipboardIcon.js +0 -0
  98. package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -0
  99. package/dist/editor/components/CollapsedCompositionSelector.js +0 -0
  100. package/dist/editor/components/CompositionSelector.d.ts +0 -0
  101. package/dist/editor/components/CompositionSelector.js +0 -0
  102. package/dist/editor/components/CompositionSelectorItem.d.ts +0 -0
  103. package/dist/editor/components/CompositionSelectorItem.js +0 -0
  104. package/dist/editor/components/ControlButton.d.ts +0 -0
  105. package/dist/editor/components/ControlButton.js +0 -0
  106. package/dist/editor/components/CopyButton.d.ts +0 -0
  107. package/dist/editor/components/CopyButton.js +0 -0
  108. package/dist/editor/components/CurrentComposition.d.ts +0 -0
  109. package/dist/editor/components/CurrentComposition.js +0 -0
  110. package/dist/editor/components/Editor.d.ts +0 -0
  111. package/dist/editor/components/Editor.js +0 -0
  112. package/dist/editor/components/EditorContent.d.ts +0 -0
  113. package/dist/editor/components/EditorContent.js +0 -0
  114. package/dist/editor/components/EditorContexts.d.ts +0 -0
  115. package/dist/editor/components/EditorContexts.js +0 -0
  116. package/dist/editor/components/FpsCounter.d.ts +0 -0
  117. package/dist/editor/components/FpsCounter.js +0 -0
  118. package/dist/editor/components/FramePersistor.d.ts +0 -0
  119. package/dist/editor/components/FramePersistor.js +0 -0
  120. package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
  121. package/dist/editor/components/GlobalKeybindings.js +0 -0
  122. package/dist/editor/components/InitialCompositionLoader.d.ts +0 -0
  123. package/dist/editor/components/InitialCompositionLoader.js +0 -0
  124. package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -0
  125. package/dist/editor/components/KeyboardShortcutsModal.js +0 -0
  126. package/dist/editor/components/LoopToggle.d.ts +0 -0
  127. package/dist/editor/components/LoopToggle.js +0 -0
  128. package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
  129. package/dist/editor/components/Menu/MenuDivider.js +0 -0
  130. package/dist/editor/components/Menu/MenuItem.d.ts +0 -0
  131. package/dist/editor/components/Menu/MenuItem.js +0 -0
  132. package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
  133. package/dist/editor/components/Menu/MenuSubItem.js +0 -0
  134. package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
  135. package/dist/editor/components/Menu/SubMenu.js +0 -0
  136. package/dist/editor/components/Menu/portals.d.ts +0 -0
  137. package/dist/editor/components/Menu/portals.js +0 -0
  138. package/dist/editor/components/Menu/styles.d.ts +0 -0
  139. package/dist/editor/components/Menu/styles.js +0 -0
  140. package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
  141. package/dist/editor/components/MenuBuildIndicator.js +0 -0
  142. package/dist/editor/components/MenuToolbar.d.ts +0 -0
  143. package/dist/editor/components/MenuToolbar.js +0 -0
  144. package/dist/editor/components/ModalContainer.d.ts +0 -0
  145. package/dist/editor/components/ModalContainer.js +0 -0
  146. package/dist/editor/components/ModalHeader.d.ts +0 -0
  147. package/dist/editor/components/ModalHeader.js +0 -0
  148. package/dist/editor/components/MuteToggle.d.ts +0 -0
  149. package/dist/editor/components/MuteToggle.js +0 -0
  150. package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
  151. package/dist/editor/components/NewComposition/CancelButton.js +0 -0
  152. package/dist/editor/components/NewComposition/ComboBox.d.ts +0 -0
  153. package/dist/editor/components/NewComposition/ComboBox.js +0 -0
  154. package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
  155. package/dist/editor/components/NewComposition/CopyHint.js +0 -0
  156. package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -0
  157. package/dist/editor/components/NewComposition/InputDragger.js +0 -0
  158. package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
  159. package/dist/editor/components/NewComposition/MenuContent.js +0 -0
  160. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
  161. package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
  162. package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
  163. package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
  164. package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
  165. package/dist/editor/components/NewComposition/NewCompDuration.js +0 -0
  166. package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
  167. package/dist/editor/components/NewComposition/NewComposition.js +0 -0
  168. package/dist/editor/components/NewComposition/RemInput.d.ts +0 -0
  169. package/dist/editor/components/NewComposition/RemInput.js +1 -1
  170. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
  171. package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
  172. package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -0
  173. package/dist/editor/components/NewComposition/ValidationMessage.js +0 -0
  174. package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
  175. package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
  176. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
  177. package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
  178. package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
  179. package/dist/editor/components/NoRegisterRoot.js +0 -0
  180. package/dist/editor/components/Notifications/ColorDot.d.ts +0 -0
  181. package/dist/editor/components/Notifications/ColorDot.js +0 -0
  182. package/dist/editor/components/Notifications/Notification.d.ts +0 -0
  183. package/dist/editor/components/Notifications/Notification.js +0 -0
  184. package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -0
  185. package/dist/editor/components/Notifications/NotificationCenter.js +1 -1
  186. package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -0
  187. package/dist/editor/components/Notifications/ServerDisconnected.js +0 -0
  188. package/dist/editor/components/PlayPause.d.ts +0 -0
  189. package/dist/editor/components/PlayPause.js +0 -0
  190. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
  191. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +0 -0
  192. package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
  193. package/dist/editor/components/PlaybackRatePersistor.js +0 -0
  194. package/dist/editor/components/PlaybackRateSelector.d.ts +0 -0
  195. package/dist/editor/components/PlaybackRateSelector.js +0 -0
  196. package/dist/editor/components/Preview.d.ts +0 -0
  197. package/dist/editor/components/Preview.js +0 -0
  198. package/dist/editor/components/PreviewToolbar.d.ts +0 -0
  199. package/dist/editor/components/PreviewToolbar.js +0 -0
  200. package/dist/editor/components/RichTimelineToggle.d.ts +0 -0
  201. package/dist/editor/components/RichTimelineToggle.js +0 -0
  202. package/dist/editor/components/SizeSelector.d.ts +0 -0
  203. package/dist/editor/components/SizeSelector.js +1 -1
  204. package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -0
  205. package/dist/editor/components/Splitter/SplitterContainer.js +0 -0
  206. package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
  207. package/dist/editor/components/Splitter/SplitterContext.js +0 -0
  208. package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
  209. package/dist/editor/components/Splitter/SplitterElement.js +0 -0
  210. package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -0
  211. package/dist/editor/components/Splitter/SplitterHandle.js +0 -0
  212. package/dist/editor/components/Thumbnail.d.ts +0 -0
  213. package/dist/editor/components/Thumbnail.js +0 -0
  214. package/dist/editor/components/TimeValue.d.ts +0 -0
  215. package/dist/editor/components/TimeValue.js +0 -0
  216. package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
  217. package/dist/editor/components/Timeline/LoopedIndicator.js +0 -0
  218. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
  219. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
  220. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +0 -0
  221. package/dist/editor/components/Timeline/MaxTimelineTracks.js +0 -0
  222. package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
  223. package/dist/editor/components/Timeline/Timeline.js +1 -1
  224. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -0
  225. package/dist/editor/components/Timeline/TimelineCollapseToggle.js +0 -0
  226. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
  227. package/dist/editor/components/Timeline/TimelineDragHandler.js +0 -0
  228. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
  229. package/dist/editor/components/Timeline/TimelineInOutPointer.js +0 -0
  230. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
  231. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
  232. package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
  233. package/dist/editor/components/Timeline/TimelineList.js +0 -0
  234. package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
  235. package/dist/editor/components/Timeline/TimelineListItem.js +0 -0
  236. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
  237. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -0
  238. package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
  239. package/dist/editor/components/Timeline/TimelineScrollable.js +0 -0
  240. package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -0
  241. package/dist/editor/components/Timeline/TimelineSequence.js +0 -0
  242. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
  243. package/dist/editor/components/Timeline/TimelineSequenceFrame.js +0 -0
  244. package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
  245. package/dist/editor/components/Timeline/TimelineSlider.js +1 -1
  246. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
  247. package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -0
  248. package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -0
  249. package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -0
  250. package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
  251. package/dist/editor/components/Timeline/TimelineTracks.js +0 -0
  252. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
  253. package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
  254. package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +0 -0
  255. package/dist/editor/components/Timeline/TimelineZoomControls.js +0 -0
  256. package/dist/editor/components/Timeline/imperative-state.d.ts +0 -0
  257. package/dist/editor/components/Timeline/imperative-state.js +0 -0
  258. package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
  259. package/dist/editor/components/Timeline/is-collapsed.js +0 -0
  260. package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
  261. package/dist/editor/components/Timeline/timeline-refs.js +0 -0
  262. package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -0
  263. package/dist/editor/components/Timeline/timeline-scroll-logic.js +0 -0
  264. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -0
  265. package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
  266. package/dist/editor/components/TimelineInOutToggle.d.ts +0 -0
  267. package/dist/editor/components/TimelineInOutToggle.js +1 -1
  268. package/dist/editor/components/TopPanel.d.ts +0 -0
  269. package/dist/editor/components/TopPanel.js +0 -0
  270. package/dist/editor/components/UpdateCheck.d.ts +0 -0
  271. package/dist/editor/components/UpdateCheck.js +0 -0
  272. package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
  273. package/dist/editor/components/UpdateModal/UpdateModal.js +0 -0
  274. package/dist/editor/components/ZoomPersistor.d.ts +0 -0
  275. package/dist/editor/components/ZoomPersistor.js +0 -0
  276. package/dist/editor/components/layout.d.ts +0 -0
  277. package/dist/editor/components/layout.js +0 -0
  278. package/dist/editor/helpers/calculate-timeline.d.ts +0 -0
  279. package/dist/editor/helpers/calculate-timeline.js +0 -0
  280. package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
  281. package/dist/editor/helpers/checkerboard-background.js +0 -0
  282. package/dist/editor/helpers/colors.d.ts +0 -0
  283. package/dist/editor/helpers/colors.js +0 -0
  284. package/dist/editor/helpers/copy-text.d.ts +0 -0
  285. package/dist/editor/helpers/copy-text.js +0 -0
  286. package/dist/editor/helpers/create-folder-tree.d.ts +0 -0
  287. package/dist/editor/helpers/create-folder-tree.js +0 -0
  288. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -0
  289. package/dist/editor/helpers/get-left-of-timeline-slider.js +0 -0
  290. package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
  291. package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
  292. package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
  293. package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
  294. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
  295. package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
  296. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +0 -0
  297. package/dist/editor/helpers/get-timeline-sequence-layout.js +0 -0
  298. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -0
  299. package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
  300. package/dist/editor/helpers/is-composition-still.d.ts +0 -0
  301. package/dist/editor/helpers/is-composition-still.js +0 -0
  302. package/dist/editor/helpers/is-current-selected-still.d.ts +0 -0
  303. package/dist/editor/helpers/is-current-selected-still.js +0 -0
  304. package/dist/editor/helpers/noop.d.ts +0 -0
  305. package/dist/editor/helpers/noop.js +0 -0
  306. package/dist/editor/helpers/persist-open-folders.d.ts +0 -0
  307. package/dist/editor/helpers/persist-open-folders.js +0 -0
  308. package/dist/editor/helpers/pick-color.d.ts +0 -0
  309. package/dist/editor/helpers/pick-color.js +0 -0
  310. package/dist/editor/helpers/timeline-layout.d.ts +0 -0
  311. package/dist/editor/helpers/timeline-layout.js +0 -0
  312. package/dist/editor/helpers/use-compact-ui.d.ts +0 -0
  313. package/dist/editor/helpers/use-compact-ui.js +0 -0
  314. package/dist/editor/helpers/use-keybinding.d.ts +0 -0
  315. package/dist/editor/helpers/use-keybinding.js +0 -0
  316. package/dist/editor/helpers/validate-new-comp-data.d.ts +0 -0
  317. package/dist/editor/helpers/validate-new-comp-data.js +0 -0
  318. package/dist/editor/icons/Checkmark.d.ts +0 -0
  319. package/dist/editor/icons/Checkmark.js +0 -0
  320. package/dist/editor/icons/caret.d.ts +0 -0
  321. package/dist/editor/icons/caret.js +0 -0
  322. package/dist/editor/icons/film.d.ts +0 -0
  323. package/dist/editor/icons/film.js +0 -0
  324. package/dist/editor/icons/folder.d.ts +0 -0
  325. package/dist/editor/icons/folder.js +0 -0
  326. package/dist/editor/icons/jump-to-start.d.ts +0 -0
  327. package/dist/editor/icons/jump-to-start.js +0 -0
  328. package/dist/editor/icons/keys.d.ts +0 -0
  329. package/dist/editor/icons/keys.js +0 -0
  330. package/dist/editor/icons/lock.d.ts +0 -0
  331. package/dist/editor/icons/lock.js +0 -0
  332. package/dist/editor/icons/media-volume.d.ts +0 -0
  333. package/dist/editor/icons/media-volume.js +0 -0
  334. package/dist/editor/icons/minus.d.ts +0 -0
  335. package/dist/editor/icons/minus.js +0 -0
  336. package/dist/editor/icons/pause.d.ts +0 -0
  337. package/dist/editor/icons/pause.js +0 -0
  338. package/dist/editor/icons/play.d.ts +0 -0
  339. package/dist/editor/icons/play.js +0 -0
  340. package/dist/editor/icons/plus.d.ts +0 -0
  341. package/dist/editor/icons/plus.js +0 -0
  342. package/dist/editor/icons/step-back.d.ts +0 -0
  343. package/dist/editor/icons/step-back.js +0 -0
  344. package/dist/editor/icons/step-forward.d.ts +0 -0
  345. package/dist/editor/icons/step-forward.js +0 -0
  346. package/dist/editor/icons/still.d.ts +0 -0
  347. package/dist/editor/icons/still.js +0 -0
  348. package/dist/editor/icons/timeline.d.ts +0 -0
  349. package/dist/editor/icons/timeline.js +0 -0
  350. package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
  351. package/dist/editor/icons/timelineInOutPointer.js +0 -0
  352. package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
  353. package/dist/editor/state/aspect-ratio-locked.js +0 -0
  354. package/dist/editor/state/checkerboard.d.ts +0 -0
  355. package/dist/editor/state/checkerboard.js +0 -0
  356. package/dist/editor/state/folders.d.ts +0 -0
  357. package/dist/editor/state/folders.js +0 -0
  358. package/dist/editor/state/highest-z-index.d.ts +0 -0
  359. package/dist/editor/state/highest-z-index.js +0 -0
  360. package/dist/editor/state/in-out.d.ts +0 -0
  361. package/dist/editor/state/in-out.js +0 -0
  362. package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
  363. package/dist/editor/state/input-dragger-click-lock.js +0 -0
  364. package/dist/editor/state/keybindings.d.ts +0 -0
  365. package/dist/editor/state/keybindings.js +0 -0
  366. package/dist/editor/state/loop.d.ts +0 -0
  367. package/dist/editor/state/loop.js +0 -0
  368. package/dist/editor/state/marks.d.ts +0 -0
  369. package/dist/editor/state/marks.js +0 -0
  370. package/dist/editor/state/modals.d.ts +0 -0
  371. package/dist/editor/state/modals.js +0 -0
  372. package/dist/editor/state/mute.d.ts +0 -0
  373. package/dist/editor/state/mute.js +0 -0
  374. package/dist/editor/state/playbackrate.d.ts +0 -0
  375. package/dist/editor/state/playbackrate.js +0 -0
  376. package/dist/editor/state/preview-size.d.ts +0 -0
  377. package/dist/editor/state/preview-size.js +0 -0
  378. package/dist/editor/state/render-frame.d.ts +0 -0
  379. package/dist/editor/state/render-frame.js +0 -0
  380. package/dist/editor/state/rich-timeline.d.ts +0 -0
  381. package/dist/editor/state/rich-timeline.js +0 -0
  382. package/dist/editor/state/sidebar.d.ts +0 -0
  383. package/dist/editor/state/sidebar.js +0 -0
  384. package/dist/editor/state/timeline-ref.d.ts +0 -0
  385. package/dist/editor/state/timeline-ref.js +0 -0
  386. package/dist/editor/state/timeline-zoom.d.ts +0 -0
  387. package/dist/editor/state/timeline-zoom.js +0 -0
  388. package/dist/editor/state/timeline.d.ts +0 -0
  389. package/dist/editor/state/timeline.js +0 -0
  390. package/dist/editor/state/z-index.d.ts +0 -0
  391. package/dist/editor/state/z-index.js +0 -0
  392. package/dist/event-source-events.d.ts +3 -0
  393. package/dist/event-source-events.js +0 -0
  394. package/dist/event-source.d.ts +0 -0
  395. package/dist/event-source.js +12 -10
  396. package/dist/find-closest-package-json.d.ts +0 -0
  397. package/dist/find-closest-package-json.js +0 -0
  398. package/dist/format-bytes.d.ts +0 -0
  399. package/dist/format-bytes.js +0 -0
  400. package/dist/get-cli-options.d.ts +15 -5
  401. package/dist/get-cli-options.js +40 -40
  402. package/dist/get-composition-id.d.ts +0 -0
  403. package/dist/get-composition-id.js +0 -0
  404. package/dist/get-config-file-name.d.ts +0 -0
  405. package/dist/get-config-file-name.js +0 -0
  406. package/dist/get-env.d.ts +1 -1
  407. package/dist/get-env.js +58 -6
  408. package/dist/get-filename.d.ts +0 -0
  409. package/dist/get-filename.js +0 -0
  410. package/dist/get-final-output-codec.d.ts +9 -5
  411. package/dist/get-final-output-codec.js +51 -48
  412. package/dist/get-input-props.d.ts +0 -0
  413. package/dist/get-input-props.js +0 -0
  414. package/dist/get-latest-remotion-version.d.ts +0 -0
  415. package/dist/get-latest-remotion-version.js +0 -0
  416. package/dist/get-network-address.d.ts +1 -0
  417. package/dist/get-network-address.js +16 -0
  418. package/dist/get-render-media-options.d.ts +7 -0
  419. package/dist/get-render-media-options.js +46 -0
  420. package/dist/handle-common-errors.d.ts +0 -0
  421. package/dist/handle-common-errors.js +0 -0
  422. package/dist/image-formats.d.ts +0 -0
  423. package/dist/image-formats.js +0 -0
  424. package/dist/index.d.ts +28 -8
  425. package/dist/index.js +19 -7
  426. package/dist/initialize-cli.d.ts +1 -0
  427. package/dist/{initialize-render-cli.js → initialize-cli.js} +4 -4
  428. package/dist/is-javascript.d.ts +0 -0
  429. package/dist/is-javascript.js +0 -0
  430. package/dist/lambda-command.d.ts +0 -0
  431. package/dist/lambda-command.js +1 -3
  432. package/dist/list-of-remotion-packages.d.ts +0 -0
  433. package/dist/list-of-remotion-packages.js +2 -0
  434. package/dist/load-config.d.ts +0 -0
  435. package/dist/load-config.js +0 -0
  436. package/dist/log.d.ts +0 -0
  437. package/dist/log.js +0 -0
  438. package/dist/make-progress-bar.d.ts +0 -0
  439. package/dist/make-progress-bar.js +0 -0
  440. package/dist/parse-command-line.d.ts +2 -1
  441. package/dist/parse-command-line.js +7 -12
  442. package/dist/preview-server/dev-middleware/compatible-api.d.ts +0 -0
  443. package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
  444. package/dist/preview-server/dev-middleware/get-paths.d.ts +0 -0
  445. package/dist/preview-server/dev-middleware/get-paths.js +0 -0
  446. package/dist/preview-server/dev-middleware/index.d.ts +0 -0
  447. package/dist/preview-server/dev-middleware/index.js +0 -0
  448. package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -0
  449. package/dist/preview-server/dev-middleware/is-color-supported.js +0 -0
  450. package/dist/preview-server/dev-middleware/middleware.d.ts +0 -0
  451. package/dist/preview-server/dev-middleware/middleware.js +0 -0
  452. package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
  453. package/dist/preview-server/dev-middleware/range-parser.js +0 -0
  454. package/dist/preview-server/dev-middleware/ready.d.ts +0 -0
  455. package/dist/preview-server/dev-middleware/ready.js +0 -0
  456. package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -0
  457. package/dist/preview-server/dev-middleware/setup-hooks.js +15 -4
  458. package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -0
  459. package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
  460. package/dist/preview-server/dev-middleware/types.d.ts +0 -0
  461. package/dist/preview-server/dev-middleware/types.js +0 -0
  462. package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
  463. package/dist/preview-server/error-overlay/entry-basic.js +0 -0
  464. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -0
  465. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
  466. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -0
  467. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -0
  468. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -0
  469. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
  470. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -0
  471. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
  472. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
  473. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
  474. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -0
  475. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
  476. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -0
  477. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
  478. package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
  479. package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
  480. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -0
  481. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -0
  482. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -0
  483. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +0 -0
  484. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -0
  485. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
  486. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -0
  487. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -0
  488. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
  489. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +0 -0
  490. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -0
  491. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +0 -0
  492. package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -0
  493. package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
  494. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -0
  495. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
  496. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -0
  497. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
  498. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -0
  499. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +0 -0
  500. package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +0 -0
  501. package/dist/preview-server/error-overlay/remotion-overlay/Button.js +0 -0
  502. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
  503. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +0 -0
  504. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
  505. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
  506. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -0
  507. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +0 -0
  508. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -0
  509. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +0 -0
  510. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -0
  511. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -0
  512. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -0
  513. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +0 -0
  514. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
  515. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +0 -0
  516. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
  517. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +0 -0
  518. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -0
  519. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +0 -0
  520. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -0
  521. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -0
  522. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +0 -0
  523. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +0 -0
  524. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
  525. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -0
  526. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
  527. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
  528. package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -0
  529. package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -0
  530. package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -0
  531. package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -0
  532. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +0 -0
  533. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +0 -0
  534. package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
  535. package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -0
  536. package/dist/preview-server/get-package-manager.d.ts +1 -1
  537. package/dist/preview-server/get-package-manager.js +10 -1
  538. package/dist/preview-server/hot-middleware/client.d.ts +0 -0
  539. package/dist/preview-server/hot-middleware/client.js +0 -0
  540. package/dist/preview-server/hot-middleware/index.d.ts +0 -0
  541. package/dist/preview-server/hot-middleware/index.js +1 -2
  542. package/dist/preview-server/hot-middleware/process-update.d.ts +0 -0
  543. package/dist/preview-server/hot-middleware/process-update.js +0 -0
  544. package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -0
  545. package/dist/preview-server/hot-middleware/strip-ansi.js +0 -0
  546. package/dist/preview-server/hot-middleware/types.d.ts +0 -0
  547. package/dist/preview-server/hot-middleware/types.js +0 -0
  548. package/dist/preview-server/live-events.d.ts +0 -0
  549. package/dist/preview-server/live-events.js +0 -0
  550. package/dist/preview-server/project-info.d.ts +0 -0
  551. package/dist/preview-server/project-info.js +0 -0
  552. package/dist/preview-server/routes.d.ts +2 -1
  553. package/dist/preview-server/routes.js +5 -3
  554. package/dist/preview-server/serve-static.d.ts +0 -0
  555. package/dist/preview-server/serve-static.js +0 -0
  556. package/dist/preview-server/start-server.d.ts +1 -1
  557. package/dist/preview-server/start-server.js +4 -1
  558. package/dist/preview-server/update-available.d.ts +0 -0
  559. package/dist/preview-server/update-available.js +2 -2
  560. package/dist/preview.d.ts +0 -0
  561. package/dist/preview.js +19 -5
  562. package/dist/previewEntry.d.ts +0 -0
  563. package/dist/previewEntry.js +0 -0
  564. package/dist/print-error.d.ts +0 -0
  565. package/dist/print-error.js +0 -0
  566. package/dist/print-help.d.ts +0 -0
  567. package/dist/print-help.js +14 -3
  568. package/dist/progress-bar.d.ts +0 -0
  569. package/dist/progress-bar.js +3 -1
  570. package/dist/render.d.ts +0 -0
  571. package/dist/render.js +34 -35
  572. package/dist/resolve-from.d.ts +0 -0
  573. package/dist/resolve-from.js +0 -0
  574. package/dist/setup-cache.d.ts +0 -0
  575. package/dist/setup-cache.js +12 -8
  576. package/dist/step.d.ts +0 -0
  577. package/dist/step.js +0 -0
  578. package/dist/still.d.ts +0 -0
  579. package/dist/still.js +15 -25
  580. package/dist/truthy.d.ts +0 -0
  581. package/dist/truthy.js +0 -0
  582. package/dist/upgrade.d.ts +1 -1
  583. package/dist/upgrade.js +2 -2
  584. package/dist/user-passed-output-location.d.ts +0 -0
  585. package/dist/user-passed-output-location.js +0 -0
  586. package/dist/validate-ffmpeg-version.d.ts +0 -0
  587. package/dist/validate-ffmpeg-version.js +0 -0
  588. package/dist/versions.d.ts +0 -0
  589. package/dist/versions.js +1 -1
  590. package/dist/warn-about-ffmpeg-version.d.ts +0 -0
  591. package/dist/warn-about-ffmpeg-version.js +0 -0
  592. package/package.json +10 -11
  593. package/dist/bundle.d.ts +0 -1
  594. package/dist/bundle.js +0 -32
  595. package/dist/config/bundle-out-dir.d.ts +0 -2
  596. package/dist/config/bundle-out-dir.js +0 -12
  597. package/dist/config/get-public-path.d.ts +0 -2
  598. package/dist/config/get-public-path.js +0 -12
  599. package/dist/editor/components/Button.d.ts +0 -4
  600. package/dist/editor/components/Button.js +0 -24
  601. package/dist/editor/components/PreviewZoomControls.d.ts +0 -2
  602. package/dist/editor/components/PreviewZoomControls.js +0 -67
  603. package/dist/editor/helpers/normalize-wheel.d.ts +0 -5
  604. package/dist/editor/helpers/normalize-wheel.js +0 -20
  605. package/dist/editor/helpers/normalize-zoom.d.ts +0 -1
  606. package/dist/editor/helpers/normalize-zoom.js +0 -16
  607. package/dist/initialize-render-cli.d.ts +0 -1
  608. package/dist/prepare-entry-point.d.ts +0 -12
  609. package/dist/prepare-entry-point.js +0 -37
  610. 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 © 2022 [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
 
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,180 @@
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.benchmarkCommand = void 0;
7
+ const renderer_1 = require("@remotion/renderer");
8
+ const path_1 = __importDefault(require("path"));
9
+ const chalk_1 = require("./chalk");
10
+ const config_1 = require("./config");
11
+ const get_cli_options_1 = require("./get-cli-options");
12
+ const get_render_media_options_1 = require("./get-render-media-options");
13
+ const log_1 = require("./log");
14
+ const make_progress_bar_1 = require("./make-progress-bar");
15
+ const parse_command_line_1 = require("./parse-command-line");
16
+ const progress_bar_1 = require("./progress-bar");
17
+ const setup_cache_1 = require("./setup-cache");
18
+ const truthy_1 = require("./truthy");
19
+ const DEFAULT_RUNS = 3;
20
+ const getValidConcurrency = (renderMediaOptions) => {
21
+ var _a;
22
+ const concurrency = 'concurrency' in renderMediaOptions
23
+ ? (_a = renderMediaOptions.concurrency) !== null && _a !== void 0 ? _a : null
24
+ : null;
25
+ const { concurrencies } = parse_command_line_1.parsedCli;
26
+ if (!concurrencies) {
27
+ return [renderer_1.RenderInternals.getActualConcurrency(concurrency)];
28
+ }
29
+ return concurrencies
30
+ .split(',')
31
+ .map((c) => parseInt(c.trim(), 10));
32
+ };
33
+ const runBenchmark = async (runs, options, onProgress) => {
34
+ const timeTaken = [];
35
+ for (let run = 0; run < runs; ++run) {
36
+ const startTime = performance.now();
37
+ await (0, renderer_1.renderMedia)({
38
+ ...options,
39
+ onProgress: ({ progress }) => onProgress === null || onProgress === void 0 ? void 0 : onProgress(run, progress),
40
+ });
41
+ const endTime = performance.now();
42
+ timeTaken.push(endTime - startTime);
43
+ }
44
+ return timeTaken;
45
+ };
46
+ const formatTime = (time) => {
47
+ let ret = '';
48
+ const hours = Math.floor(time / (60 * 60 * 1000));
49
+ if (hours) {
50
+ ret = `${hours}h`;
51
+ }
52
+ time %= 60 * 60 * 1000;
53
+ const minutes = Math.floor(time / (60 * 1000));
54
+ if (minutes) {
55
+ ret = `${ret}${minutes}m`;
56
+ }
57
+ time %= 60 * 1000;
58
+ const seconds = (time / 1000).toFixed(5);
59
+ if (seconds) {
60
+ ret = `${ret}${seconds}s`;
61
+ }
62
+ return ret;
63
+ };
64
+ const avg = (time) => time.reduce((prev, curr) => prev + curr) / time.length;
65
+ const stdDev = (time) => {
66
+ const mean = avg(time);
67
+ return Math.sqrt(time.map((x) => (x - mean) ** 2).reduce((a, b) => a + b) / time.length);
68
+ };
69
+ const getResults = (results, runs) => {
70
+ const mean = avg(results);
71
+ const dev = stdDev(results);
72
+ const max = Math.max(...results);
73
+ const min = Math.min(...results);
74
+ 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`)}
75
+ `;
76
+ };
77
+ const makeBenchmarkProgressBar = ({ totalRuns, run, progress, doneIn, }) => {
78
+ const totalProgress = (run + progress) / totalRuns;
79
+ return [
80
+ `Rendering (${run + 1} out of ${totalRuns} runs)`,
81
+ (0, make_progress_bar_1.makeProgressBar)(totalProgress),
82
+ doneIn === null
83
+ ? `${(totalProgress * 100).toFixed(2)}% `
84
+ : chalk_1.chalk.gray(doneIn),
85
+ ].join(' ');
86
+ };
87
+ const benchmarkCommand = async (remotionRoot, args) => {
88
+ var _a, _b;
89
+ const runs = (_a = parse_command_line_1.parsedCli.runs) !== null && _a !== void 0 ? _a : DEFAULT_RUNS;
90
+ const filePath = args[0];
91
+ if (!filePath) {
92
+ log_1.Log.error('No entry file passed.');
93
+ log_1.Log.info('Pass an additional argument specifying the entry file');
94
+ log_1.Log.info();
95
+ log_1.Log.info(`$ remotion benchmark <entry file>`);
96
+ process.exit(1);
97
+ }
98
+ const fullPath = path_1.default.join(process.cwd(), filePath);
99
+ const { inputProps, envVariables, browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, port, puppeteerTimeout, browser, scale, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
100
+ isLambda: false,
101
+ type: 'series',
102
+ codec: 'h264',
103
+ });
104
+ const browserInstance = (0, renderer_1.openBrowser)(browser, {
105
+ browserExecutable,
106
+ shouldDumpIo: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
107
+ chromiumOptions,
108
+ forceDeviceScaleFactor: scale,
109
+ });
110
+ const { urlOrBundle: bundleLocation, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
111
+ fullPath,
112
+ publicDir,
113
+ remotionRoot,
114
+ steps: ['bundling'],
115
+ });
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 = ((_b = args[1]) !== null && _b !== void 0 ? _b : '')
128
+ .split(',')
129
+ .map((c) => c.trim())
130
+ .filter(truthy_1.truthy);
131
+ const compositions = ids.map((compId) => {
132
+ const composition = comps.find((c) => c.id === compId);
133
+ if (!composition) {
134
+ throw new Error(`No composition with the ID "${compId}" found.`);
135
+ }
136
+ return composition;
137
+ });
138
+ if (compositions.length === 0) {
139
+ log_1.Log.error('No composition IDs passed. Add another argument to the command specifying at least 1 composition ID.');
140
+ }
141
+ const benchmark = {};
142
+ let count = 1;
143
+ const { codec, reason: codecReason } = (0, get_cli_options_1.getFinalCodec)({
144
+ downloadName: null,
145
+ outName: null,
146
+ });
147
+ for (const composition of compositions) {
148
+ const renderMediaOptions = await (0, get_render_media_options_1.getRenderMediaOptions)({
149
+ config: composition,
150
+ outputLocation: undefined,
151
+ serveUrl: bundleLocation,
152
+ codec,
153
+ });
154
+ const concurrency = getValidConcurrency(renderMediaOptions);
155
+ benchmark[composition.id] = {};
156
+ for (const con of concurrency) {
157
+ const benchmarkProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
158
+ log_1.Log.info();
159
+ log_1.Log.info(`${chalk_1.chalk.bold(`Benchmark #${count++}:`)} ${chalk_1.chalk.gray(`composition=${composition.id} concurrency=${con} codec=${codec} (${codecReason})`)}`);
160
+ const timeTaken = await runBenchmark(runs, {
161
+ ...renderMediaOptions,
162
+ puppeteerInstance,
163
+ concurrency: con,
164
+ }, (run, progress) => {
165
+ benchmarkProgress.update(makeBenchmarkProgressBar({
166
+ totalRuns: runs,
167
+ run,
168
+ doneIn: null,
169
+ progress,
170
+ }));
171
+ });
172
+ benchmarkProgress.update('');
173
+ benchmarkProgress.update(getResults(timeTaken, runs));
174
+ benchmark[composition.id][`${con}`] = timeTaken;
175
+ }
176
+ }
177
+ log_1.Log.info();
178
+ await cleanupBundle();
179
+ };
180
+ exports.benchmarkCommand = benchmarkCommand;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -27,7 +27,7 @@ const max = (arr) => {
27
27
  const listCompositionsCommand = async (remotionRoot) => {
28
28
  const file = parse_command_line_1.parsedCli._[1];
29
29
  if (!file) {
30
- log_1.Log.error('The `compositions` command requires you to specify a root file. For example');
30
+ log_1.Log.error('The `compositions` command requires you to specify a entry point. For example');
31
31
  log_1.Log.error(' npx remotion compositions src/index.tsx');
32
32
  log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
33
33
  process.exit(1);
@@ -38,6 +38,7 @@ const listCompositionsCommand = async (remotionRoot) => {
38
38
  const { browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
39
39
  isLambda: false,
40
40
  type: 'get-compositions',
41
+ codec: 'h264',
41
42
  });
42
43
  const { urlOrBundle: bundled, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
43
44
  remotionRoot,
@@ -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
File without changes
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import type { FfmpegOverrideFn } from '@remotion/renderer';
2
+ export declare const setFfmpegOverrideFunction: (fn: FfmpegOverrideFn) => void;
3
+ export declare const getFfmpegOverrideFunction: () => FfmpegOverrideFn;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFfmpegOverrideFunction = exports.setFfmpegOverrideFunction = void 0;
4
+ let ffmpegOverrideFn = ({ args }) => args;
5
+ const setFfmpegOverrideFunction = (fn) => {
6
+ ffmpegOverrideFn = fn;
7
+ };
8
+ exports.setFfmpegOverrideFunction = setFfmpegOverrideFunction;
9
+ const getFfmpegOverrideFunction = () => {
10
+ return ffmpegOverrideFn;
11
+ };
12
+ exports.getFfmpegOverrideFunction = getFfmpegOverrideFunction;
File without changes
File without changes
File without changes
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getUserPreferredImageFormat = exports.setImageFormat = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
+ const truthy_1 = require("../truthy");
5
6
  let currentImageFormat;
6
7
  const setImageFormat = (format) => {
7
8
  if (typeof format === 'undefined') {
@@ -9,7 +10,13 @@ const setImageFormat = (format) => {
9
10
  return;
10
11
  }
11
12
  if (!renderer_1.RenderInternals.validImageFormats.includes(format)) {
12
- throw new TypeError(`Value ${format} is not valid as an image format.`);
13
+ throw new TypeError([
14
+ `Value ${format} is not valid as an image format.`,
15
+ // @ts-expect-error
16
+ format === 'jpg' ? 'Did you mean "jpeg"?' : null,
17
+ ]
18
+ .filter(truthy_1.truthy)
19
+ .join(' '));
13
20
  }
14
21
  currentImageFormat = format;
15
22
  };
File without changes
File without changes
@@ -10,10 +10,11 @@ export declare const ConfigInternals: {
10
10
  getOutputCodecOrUndefined: () => import("@remotion/renderer").CodecOrUndefined;
11
11
  getCustomFfmpegExecutable: () => import("@remotion/renderer").FfmpegExecutable;
12
12
  getBrowser: () => import("@remotion/renderer").Browser | null;
13
- getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
14
13
  getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
15
14
  getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
16
- getShouldOverwrite: () => boolean;
15
+ getShouldOverwrite: ({ defaultValue, }: {
16
+ defaultValue: boolean;
17
+ }) => boolean;
17
18
  getBrowserExecutable: () => import("@remotion/renderer").BrowserExecutable;
18
19
  getCustomFfprobeExecutable: () => import("@remotion/renderer").FfmpegExecutable;
19
20
  getScale: () => number;
@@ -45,5 +46,9 @@ export declare const ConfigInternals: {
45
46
  setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
46
47
  getKeyboardShortcutsEnabled: () => boolean;
47
48
  getPublicDir: () => string | null;
49
+ getFfmpegOverrideFunction: () => import("@remotion/renderer").FfmpegOverrideFn;
50
+ getAudioBitrate: () => string | null;
51
+ getVideoBitrate: () => string | null;
52
+ getCrfOrUndefined: () => import("@remotion/renderer").Crf;
48
53
  };
49
54
  export declare const overrideRemotion: () => void;
@@ -31,7 +31,6 @@ const browser_executable_1 = require("./browser-executable");
31
31
  const chromium_flags_1 = require("./chromium-flags");
32
32
  const codec_1 = require("./codec");
33
33
  const concurrency_1 = require("./concurrency");
34
- const crf_1 = require("./crf");
35
34
  const env_file_1 = require("./env-file");
36
35
  const every_nth_frame_1 = require("./every-nth-frame");
37
36
  const ffmpeg_executable_1 = require("./ffmpeg-executable");
@@ -52,15 +51,17 @@ const scale_1 = require("./scale");
52
51
  const still_frame_1 = require("./still-frame");
53
52
  const timeout_1 = require("./timeout");
54
53
  const webpack_caching_1 = require("./webpack-caching");
54
+ const bitrate_1 = require("./bitrate");
55
55
  const browser_executable_2 = require("./browser-executable");
56
56
  const chromium_flags_2 = require("./chromium-flags");
57
57
  const codec_2 = require("./codec");
58
58
  const concurrency_2 = require("./concurrency");
59
- const crf_2 = require("./crf");
59
+ const crf_1 = require("./crf");
60
60
  const enforce_audio_track_1 = require("./enforce-audio-track");
61
61
  const env_file_2 = require("./env-file");
62
62
  const every_nth_frame_2 = require("./every-nth-frame");
63
63
  const ffmpeg_executable_2 = require("./ffmpeg-executable");
64
+ const ffmpeg_override_1 = require("./ffmpeg-override");
64
65
  const frame_range_2 = require("./frame-range");
65
66
  const image_format_2 = require("./image-format");
66
67
  const image_sequence_2 = require("./image-sequence");
@@ -122,9 +123,12 @@ exports.Config = {
122
123
  setPixelFormat: pixel_format_2.setPixelFormat,
123
124
  setOutputFormat: codec_2.setOutputFormat,
124
125
  setCodec: codec_2.setCodec,
125
- setCrf: crf_2.setCrf,
126
+ setCrf: crf_1.setCrf,
126
127
  setImageSequence: image_sequence_2.setImageSequence,
127
128
  setProResProfile: prores_profile_2.setProResProfile,
129
+ setAudioBitrate: bitrate_1.setAudioBitrate,
130
+ setVideoBitrate: bitrate_1.setVideoBitrate,
131
+ overrideFfmpegCommand: ffmpeg_override_1.setFfmpegOverrideFunction,
128
132
  },
129
133
  };
130
134
  // eslint-disable-next-line no-restricted-imports
@@ -133,7 +137,6 @@ exports.ConfigInternals = {
133
137
  getOutputCodecOrUndefined: codec_1.getOutputCodecOrUndefined,
134
138
  getCustomFfmpegExecutable: ffmpeg_executable_1.getCustomFfmpegExecutable,
135
139
  getBrowser: browser_1.getBrowser,
136
- getActualCrf: crf_1.getActualCrf,
137
140
  getPixelFormat: pixel_format_1.getPixelFormat,
138
141
  getProResProfile: prores_profile_1.getProResProfile,
139
142
  getShouldOverwrite: overwrite_1.getShouldOverwrite,
@@ -168,6 +171,10 @@ exports.ConfigInternals = {
168
171
  setEnforceAudioTrack: enforce_audio_track_1.setEnforceAudioTrack,
169
172
  getKeyboardShortcutsEnabled: keyboard_shortcuts_1.getKeyboardShortcutsEnabled,
170
173
  getPublicDir: public_dir_1.getPublicDir,
174
+ getFfmpegOverrideFunction: ffmpeg_override_1.getFfmpegOverrideFunction,
175
+ getAudioBitrate: bitrate_1.getAudioBitrate,
176
+ getVideoBitrate: bitrate_1.getVideoBitrate,
177
+ getCrfOrUndefined: crf_1.getCrfOrUndefined,
171
178
  };
172
179
  const overrideRemotion = () => {
173
180
  Object.assign(remotion_1.Config, exports.Config);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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,2 +1,4 @@
1
1
  export declare const setOverwriteOutput: (newOverwrite: boolean) => void;
2
- export declare const getShouldOverwrite: () => boolean;
2
+ export declare const getShouldOverwrite: ({ defaultValue, }: {
3
+ defaultValue: boolean;
4
+ }) => boolean;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getShouldOverwrite = exports.setOverwriteOutput = void 0;
4
- const renderer_1 = require("@remotion/renderer");
5
- let shouldOverwrite = renderer_1.RenderInternals.DEFAULT_OVERWRITE;
4
+ let shouldOverwrite = null;
6
5
  const setOverwriteOutput = (newOverwrite) => {
7
6
  if (typeof newOverwrite !== 'boolean') {
8
7
  throw new Error(`overwriteExisting must be a boolean but got ${typeof newOverwrite} (${JSON.stringify(newOverwrite)})`);
@@ -10,5 +9,5 @@ const setOverwriteOutput = (newOverwrite) => {
10
9
  shouldOverwrite = newOverwrite;
11
10
  };
12
11
  exports.setOverwriteOutput = setOverwriteOutput;
13
- const getShouldOverwrite = () => shouldOverwrite;
12
+ const getShouldOverwrite = ({ defaultValue, }) => shouldOverwrite !== null && shouldOverwrite !== void 0 ? shouldOverwrite : defaultValue;
14
13
  exports.getShouldOverwrite = getShouldOverwrite;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes