@remotion/renderer 3.3.6 → 3.3.8

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.
@@ -160,7 +160,7 @@ function toMegabytes(bytes) {
160
160
  return `${Math.round(mb * 10) / 10} Mb`;
161
161
  }
162
162
  const getBinaryDownloadUrl = (binary) => {
163
- if (os_1.default.platform() === 'win32') {
163
+ if (os_1.default.platform() === 'win32' && process.arch === 'x64') {
164
164
  return binary === 'ffmpeg'
165
165
  ? {
166
166
  url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-win-x86.exe',
@@ -171,18 +171,18 @@ const getBinaryDownloadUrl = (binary) => {
171
171
  contentLength: 127425536,
172
172
  };
173
173
  }
174
- if (os_1.default.platform() === 'darwin') {
175
- if (process.arch === 'arm64') {
176
- return binary === 'ffmpeg'
177
- ? {
178
- url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-macos-arm64',
179
- contentLength: 42093320,
180
- }
181
- : {
182
- url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffprobe-macos-arm64',
183
- contentLength: 46192536,
184
- };
185
- }
174
+ if (os_1.default.platform() === 'darwin' && process.arch === 'arm64') {
175
+ return binary === 'ffmpeg'
176
+ ? {
177
+ url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-macos-arm64',
178
+ contentLength: 42093320,
179
+ }
180
+ : {
181
+ url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffprobe-macos-arm64',
182
+ contentLength: 46192536,
183
+ };
184
+ }
185
+ if (os_1.default.platform() === 'darwin' && process.arch === 'x64') {
186
186
  return binary === 'ffmpeg'
187
187
  ? {
188
188
  url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-macos-x86',
@@ -193,15 +193,18 @@ const getBinaryDownloadUrl = (binary) => {
193
193
  contentLength: 77364284,
194
194
  };
195
195
  }
196
- return binary === 'ffmpeg'
197
- ? {
198
- url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-linux-amd64',
199
- contentLength: 78502560,
200
- }
201
- : {
202
- url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffprobe-linux-amd64',
203
- contentLength: 78400704,
204
- };
196
+ if (os_1.default.platform() === 'linux' && process.arch === 'x64') {
197
+ return binary === 'ffmpeg'
198
+ ? {
199
+ url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-linux-amd64',
200
+ contentLength: 78502560,
201
+ }
202
+ : {
203
+ url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffprobe-linux-amd64',
204
+ contentLength: 78400704,
205
+ };
206
+ }
207
+ return null;
205
208
  };
206
209
  exports.getBinaryDownloadUrl = getBinaryDownloadUrl;
207
210
  const printMessage = (ffmpegVersion) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  import type { ImageFormat } from './image-format';
3
4
  export declare const provideScreenshot: ({ page, imageFormat, options, quality, height, width, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  export declare const screenshot: (options: {
3
4
  page: Page;
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  import type { ImageFormat } from './image-format';
3
4
  export declare const screenshotDOMElement: ({ page, imageFormat, quality, opts, height, width, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { Page } from './browser/BrowserPage';
2
3
  import type { StillImageFormat } from './image-format';
3
4
  export declare const screenshotTask: ({ format, height, omitBackground, page, width, path, quality, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "execa": "5.1.1",
24
24
  "extract-zip": "2.0.1",
25
- "remotion": "3.3.6",
25
+ "remotion": "3.3.8",
26
26
  "source-map": "^0.8.0-beta.0",
27
27
  "ws": "8.7.0"
28
28
  },
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "40198e5226bfa91a4df72159aec44d56e17fe8a1"
60
+ "gitHead": "4d4c78cf83b5fd085f24d5fd19f4507815e200a7"
61
61
  }