@remotion/renderer 4.0.423 → 4.0.425

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 (159) hide show
  1. package/dist/client.d.ts +448 -13
  2. package/dist/combine-chunks.js +3 -0
  3. package/dist/ensure-browser.d.ts +3 -0
  4. package/dist/esm/client.mjs +1262 -516
  5. package/dist/esm/index.mjs +14 -7
  6. package/dist/esm/pure.mjs +4 -2
  7. package/dist/ffmpeg-args.d.ts +1 -1
  8. package/dist/ffmpeg-args.js +1 -1
  9. package/dist/index.d.ts +45 -0
  10. package/dist/mux-video-and-audio.d.ts +2 -1
  11. package/dist/mux-video-and-audio.js +6 -1
  12. package/dist/options/api-key.d.ts +1 -0
  13. package/dist/options/api-key.js +1 -0
  14. package/dist/options/ask-ai.d.ts +1 -0
  15. package/dist/options/ask-ai.js +1 -0
  16. package/dist/options/audio-bitrate.d.ts +1 -0
  17. package/dist/options/audio-bitrate.js +1 -0
  18. package/dist/options/audio-codec.d.ts +1 -0
  19. package/dist/options/audio-codec.js +1 -0
  20. package/dist/options/beep-on-finish.d.ts +1 -0
  21. package/dist/options/beep-on-finish.js +1 -0
  22. package/dist/options/binaries-directory.d.ts +1 -0
  23. package/dist/options/binaries-directory.js +1 -0
  24. package/dist/options/browser-executable.d.ts +17 -0
  25. package/dist/options/browser-executable.js +36 -0
  26. package/dist/options/chrome-mode.d.ts +1 -0
  27. package/dist/options/chrome-mode.js +1 -0
  28. package/dist/options/color-space.d.ts +5 -4
  29. package/dist/options/color-space.js +4 -2
  30. package/dist/options/concurrency.d.ts +17 -0
  31. package/dist/options/concurrency.js +40 -0
  32. package/dist/options/crf.d.ts +1 -0
  33. package/dist/options/crf.js +1 -0
  34. package/dist/options/cross-site-isolation.d.ts +1 -0
  35. package/dist/options/cross-site-isolation.js +1 -0
  36. package/dist/options/dark-mode.d.ts +1 -0
  37. package/dist/options/dark-mode.js +1 -0
  38. package/dist/options/delete-after.d.ts +1 -0
  39. package/dist/options/delete-after.js +1 -0
  40. package/dist/options/disable-git-source.d.ts +1 -0
  41. package/dist/options/disable-git-source.js +1 -0
  42. package/dist/options/disable-web-security.d.ts +16 -0
  43. package/dist/options/disable-web-security.js +36 -0
  44. package/dist/options/disallow-parallel-encoding.d.ts +1 -0
  45. package/dist/options/disallow-parallel-encoding.js +1 -0
  46. package/dist/options/enable-lambda-insights.d.ts +1 -0
  47. package/dist/options/enable-lambda-insights.js +1 -0
  48. package/dist/options/enable-multiprocess-on-linux.d.ts +1 -0
  49. package/dist/options/enable-multiprocess-on-linux.js +1 -0
  50. package/dist/options/encoding-buffer-size.d.ts +1 -0
  51. package/dist/options/encoding-buffer-size.js +1 -0
  52. package/dist/options/encoding-max-rate.d.ts +1 -0
  53. package/dist/options/encoding-max-rate.js +1 -0
  54. package/dist/options/enforce-audio.d.ts +1 -0
  55. package/dist/options/enforce-audio.js +1 -0
  56. package/dist/options/every-nth-frame.d.ts +16 -0
  57. package/dist/options/every-nth-frame.js +42 -0
  58. package/dist/options/experimental-client-side-rendering.d.ts +1 -0
  59. package/dist/options/experimental-client-side-rendering.js +1 -0
  60. package/dist/options/folder-expiry.d.ts +1 -0
  61. package/dist/options/folder-expiry.js +1 -0
  62. package/dist/options/for-seamless-aac-concatenation.d.ts +1 -0
  63. package/dist/options/for-seamless-aac-concatenation.js +1 -0
  64. package/dist/options/force-new-studio.d.ts +1 -0
  65. package/dist/options/force-new-studio.js +1 -0
  66. package/dist/options/gl.d.ts +1 -0
  67. package/dist/options/gl.js +1 -0
  68. package/dist/options/hardware-acceleration.d.ts +1 -0
  69. package/dist/options/hardware-acceleration.js +1 -0
  70. package/dist/options/headless.d.ts +1 -0
  71. package/dist/options/headless.js +1 -0
  72. package/dist/options/ignore-certificate-errors.d.ts +16 -0
  73. package/dist/options/ignore-certificate-errors.js +36 -0
  74. package/dist/options/image-format-option.d.ts +18 -0
  75. package/dist/options/image-format-option.js +33 -0
  76. package/dist/options/image-sequence-pattern.d.ts +1 -0
  77. package/dist/options/image-sequence-pattern.js +1 -0
  78. package/dist/options/index.d.ts +307 -3
  79. package/dist/options/index.js +28 -0
  80. package/dist/options/ipv4.d.ts +1 -0
  81. package/dist/options/ipv4.js +1 -0
  82. package/dist/options/is-production.d.ts +1 -0
  83. package/dist/options/is-production.js +1 -0
  84. package/dist/options/jpeg-quality.d.ts +1 -0
  85. package/dist/options/jpeg-quality.js +1 -0
  86. package/dist/options/keyboard-shortcuts.d.ts +1 -0
  87. package/dist/options/keyboard-shortcuts.js +1 -0
  88. package/dist/options/latency-hint.d.ts +1 -0
  89. package/dist/options/latency-hint.js +1 -0
  90. package/dist/options/license-key.d.ts +1 -0
  91. package/dist/options/license-key.js +1 -0
  92. package/dist/options/log-level.d.ts +1 -0
  93. package/dist/options/log-level.js +1 -0
  94. package/dist/options/metadata.d.ts +1 -0
  95. package/dist/options/metadata.js +1 -0
  96. package/dist/options/mute.d.ts +1 -0
  97. package/dist/options/mute.js +1 -0
  98. package/dist/options/number-of-gif-loops.d.ts +1 -0
  99. package/dist/options/number-of-gif-loops.js +1 -0
  100. package/dist/options/number-of-shared-audio-tags.d.ts +1 -0
  101. package/dist/options/number-of-shared-audio-tags.js +1 -0
  102. package/dist/options/offthreadvideo-cache-size.d.ts +1 -0
  103. package/dist/options/offthreadvideo-cache-size.js +1 -0
  104. package/dist/options/offthreadvideo-threads.d.ts +1 -0
  105. package/dist/options/offthreadvideo-threads.js +1 -0
  106. package/dist/options/on-browser-download.d.ts +1 -0
  107. package/dist/options/on-browser-download.js +1 -0
  108. package/dist/options/option.d.ts +1 -0
  109. package/dist/options/options-map.d.ts +139 -9
  110. package/dist/options/override-duration.d.ts +19 -0
  111. package/dist/options/override-duration.js +46 -0
  112. package/dist/options/override-fps.d.ts +19 -0
  113. package/dist/options/override-fps.js +40 -0
  114. package/dist/options/override-height.d.ts +19 -0
  115. package/dist/options/override-height.js +40 -0
  116. package/dist/options/override-width.d.ts +19 -0
  117. package/dist/options/override-width.js +40 -0
  118. package/dist/options/overwrite.d.ts +1 -0
  119. package/dist/options/overwrite.js +1 -0
  120. package/dist/options/pixel-format.d.ts +16 -0
  121. package/dist/options/pixel-format.js +41 -0
  122. package/dist/options/prefer-lossless.d.ts +1 -0
  123. package/dist/options/prefer-lossless.js +1 -0
  124. package/dist/options/prores-profile.d.ts +20 -0
  125. package/dist/options/prores-profile.js +48 -0
  126. package/dist/options/public-dir.d.ts +1 -0
  127. package/dist/options/public-dir.js +1 -0
  128. package/dist/options/public-license-key.d.ts +1 -0
  129. package/dist/options/public-license-key.js +1 -0
  130. package/dist/options/public-path.d.ts +1 -0
  131. package/dist/options/public-path.js +1 -0
  132. package/dist/options/repro.d.ts +1 -0
  133. package/dist/options/repro.js +1 -0
  134. package/dist/options/scale.d.ts +1 -0
  135. package/dist/options/scale.js +1 -0
  136. package/dist/options/separate-audio.d.ts +1 -0
  137. package/dist/options/separate-audio.js +1 -0
  138. package/dist/options/still-image-format.d.ts +19 -0
  139. package/dist/options/still-image-format.js +55 -0
  140. package/dist/options/throw-if-site-exists.d.ts +1 -0
  141. package/dist/options/throw-if-site-exists.js +1 -0
  142. package/dist/options/timeout.d.ts +1 -0
  143. package/dist/options/timeout.js +1 -0
  144. package/dist/options/user-agent.d.ts +19 -0
  145. package/dist/options/user-agent.js +36 -0
  146. package/dist/options/video-bitrate.d.ts +1 -0
  147. package/dist/options/video-bitrate.js +1 -0
  148. package/dist/options/video-cache-size.d.ts +1 -0
  149. package/dist/options/video-cache-size.js +1 -0
  150. package/dist/options/video-codec.d.ts +1 -0
  151. package/dist/options/video-codec.js +1 -0
  152. package/dist/options/video-image-format.d.ts +19 -0
  153. package/dist/options/video-image-format.js +55 -0
  154. package/dist/options/webhook-custom-data.d.ts +1 -0
  155. package/dist/options/webhook-custom-data.js +1 -0
  156. package/dist/options/x264-preset.d.ts +1 -0
  157. package/dist/options/x264-preset.js +1 -0
  158. package/dist/validate-number-of-gif-loops.js +1 -1
  159. package/package.json +15 -15
@@ -17,6 +17,7 @@ const mux_video_and_audio_1 = require("./mux-video-and-audio");
17
17
  const audio_codec_1 = require("./options/audio-codec");
18
18
  const tmp_dir_1 = require("./tmp-dir");
19
19
  const truthy_1 = require("./truthy");
20
+ const validate_number_of_gif_loops_1 = require("./validate-number-of-gif-loops");
20
21
  const codecSupportsFastStart = {
21
22
  'h264-mkv': false,
22
23
  'h264-ts': false,
@@ -32,6 +33,7 @@ const codecSupportsFastStart = {
32
33
  };
33
34
  const REMOTION_FILELIST_TOKEN = 'remotion-filelist';
34
35
  const internalCombineChunks = async ({ outputLocation: output, onProgress, codec, fps, numberOfGifLoops, audioBitrate, indent, logLevel, binariesDirectory, cancelSignal, metadata, audioFiles, videoFiles, framesPerChunk, audioCodec, preferLossless, everyNthFrame, frameRange, compositionDurationInFrames, }) => {
36
+ (0, validate_number_of_gif_loops_1.validateNumberOfGifLoops)(numberOfGifLoops, codec);
35
37
  const filelistDir = (0, tmp_dir_1.tmpDir)(REMOTION_FILELIST_TOKEN);
36
38
  const shouldCreateVideo = !(0, is_audio_codec_1.isAudioCodec)(codec);
37
39
  const resolvedAudioCodec = (0, audio_codec_1.resolveAudioCodec)({
@@ -134,6 +136,7 @@ const internalCombineChunks = async ({ outputLocation: output, onProgress, codec
134
136
  cancelSignal,
135
137
  addFaststart: codecSupportsFastStart[codec],
136
138
  metadata,
139
+ numberOfGifLoops,
137
140
  });
138
141
  onProgress({ totalProgress: 1, frames: numberOfFrames });
139
142
  (0, node_fs_1.rmSync)(filelistDir, { recursive: true });
@@ -40,6 +40,7 @@ export declare const ensureBrowser: (options?: Partial<{
40
40
  };
41
41
  setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
42
42
  type: "error" | "info" | "trace" | "verbose" | "warn";
43
+ id: "log";
43
44
  };
44
45
  readonly onBrowserDownload: {
45
46
  name: string;
@@ -50,6 +51,7 @@ export declare const ensureBrowser: (options?: Partial<{
50
51
  type: import(".").OnBrowserDownload;
51
52
  getValue: () => never;
52
53
  setConfig: () => never;
54
+ id: "on-browser-download";
53
55
  };
54
56
  readonly chromeMode: {
55
57
  cliFlag: "chrome-mode";
@@ -65,6 +67,7 @@ export declare const ensureBrowser: (options?: Partial<{
65
67
  };
66
68
  setConfig: (newChromeMode: "chrome-for-testing" | "headless-shell") => void;
67
69
  type: "chrome-for-testing" | "headless-shell";
70
+ id: "chrome-mode";
68
71
  };
69
72
  }>> | undefined) => Promise<BrowserStatus>;
70
73
  export {};