@remotion/renderer 2.6.12 → 2.6.15

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.
@@ -1,5 +1,5 @@
1
- @remotion/renderer:build: cache hit, replaying output 658d8ae71b8f9788
1
+ @remotion/renderer:build: cache hit, replaying output 6ded6d86765e71ec
2
2
  @remotion/renderer:build: 
3
- @remotion/renderer:build: > @remotion/renderer@2.6.11 build /Users/jonathanburger/remotion/packages/renderer
3
+ @remotion/renderer:build: > @remotion/renderer@2.6.14 build /Users/jonathanburger/remotion/packages/renderer
4
4
  @remotion/renderer:build: > tsc -d
5
5
  @remotion/renderer:build: 
@@ -0,0 +1,21 @@
1
+ @remotion/renderer:lint: cache hit, replaying output 039a3ea7d5fb2d3b
2
+ @remotion/renderer:lint: 
3
+ @remotion/renderer:lint: > @remotion/renderer@2.6.14 lint /Users/jonathanburger/remotion/packages/renderer
4
+ @remotion/renderer:lint: > eslint src --ext ts,tsx
5
+ @remotion/renderer:lint: 
6
+ @remotion/renderer:lint: 
7
+ @remotion/renderer:lint: /Users/jonathanburger/remotion/packages/renderer/src/assets/ffmpeg-volume-expression.ts
8
+ @remotion/renderer:lint:  76:1 warning Unexpected 'todo' comment: 'TODO: Should remove irrelevant frames' no-warning-comments
9
+ @remotion/renderer:lint: 
10
+ @remotion/renderer:lint: /Users/jonathanburger/remotion/packages/renderer/src/ensure-frames-in-order.ts
11
+ @remotion/renderer:lint:  21:72 warning Async arrow function has no 'await' expression require-await
12
+ @remotion/renderer:lint: 
13
+ @remotion/renderer:lint: /Users/jonathanburger/remotion/packages/renderer/src/provide-screenshot.ts
14
+ @remotion/renderer:lint:  18:21 warning Async arrow function has no 'await' expression require-await
15
+ @remotion/renderer:lint: 
16
+ @remotion/renderer:lint: /Users/jonathanburger/remotion/packages/renderer/src/test/validate-config-stitcher.test.ts
17
+ @remotion/renderer:lint:  17:34 warning Async arrow function has no 'await' expression require-await
18
+ @remotion/renderer:lint:  29:33 warning Async arrow function has no 'await' expression require-await
19
+ @remotion/renderer:lint: 
20
+ @remotion/renderer:lint: ✖ 5 problems (0 errors, 5 warnings)
21
+ @remotion/renderer:lint: 
@@ -1,39 +1,40 @@
1
- @remotion/renderer:test: cache hit, replaying output c04be8ea4bb5f865
2
- @remotion/renderer:test: 
3
- @remotion/renderer:test: > @remotion/renderer@2.6.7 test /Users/jonathanburger/remotion/packages/renderer
4
- @remotion/renderer:test: > jest
5
- @remotion/renderer:test: 
6
- @remotion/renderer:test: watchman warning: Recrawled this watch 45 times, most recently because:
7
- @remotion/renderer:test: MustScanSubDirs UserDroppedTo resolve, please review the information on
8
- @remotion/renderer:test: https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
9
- @remotion/renderer:test: To clear this warning, run:
10
- @remotion/renderer:test: `watchman watch-del '/Users/jonathanburger/remotion' ; watchman watch-project '/Users/jonathanburger/remotion'`
11
- @remotion/renderer:test: 
12
- @remotion/renderer:test: PASS src/test/serve-url.test.js (16.184 s)
13
- @remotion/renderer:test: PASS src/test/serve-url.test.ts (16.791 s)
14
- @remotion/renderer:test: PASS src/test/webpack-to-serve-url.test.ts
15
- @remotion/renderer:test: PASS src/test/split-assets-into-segments.test.tsx (18.526 s)
16
- @remotion/renderer:test: PASS src/test/ffmpeg-filters.test.ts (18.719 s)
17
- @remotion/renderer:test: PASS src/test/ffmpeg-volume-expression.test.ts
18
- @remotion/renderer:test: PASS src/test/dont-skip-assets.test.ts (19.047 s)
19
- @remotion/renderer:test: PASS src/test/get-audio-channels.test.ts
20
- @remotion/renderer:test: PASS src/test/parse-ffmpeg-version.test.ts
21
- @remotion/renderer:test: PASS src/test/download-file.test.ts
22
- @remotion/renderer:test: PASS src/test/asset-compression.test.ts
23
- @remotion/renderer:test: PASS src/test/avoid-ffmpeg-stackoverflow.test.ts
24
- @remotion/renderer:test: PASS src/test/flatten-volume-array.test.tsx
25
- @remotion/renderer:test: PASS src/test/handle-weird-file-names.test.ts
26
- @remotion/renderer:test: PASS src/test/parse-ffmpeg-progress.test.ts
27
- @remotion/renderer:test: PASS src/test/avoid-asset-zero-length.test.ts
28
- @remotion/renderer:test: PASS src/test/calculate-atempo.test.ts
29
- @remotion/renderer:test: PASS src/test/validate-config-stitcher.test.ts
30
- @remotion/renderer:test: PASS src/test/asset-is-used-at-time.test.ts
31
- @remotion/renderer:test: PASS src/test/validate-config.test.ts (23.089 s)
32
- @remotion/renderer:test: PASS src/test/render-still.test.ts
33
- @remotion/renderer:test: PASS src/test/asset-calculation.test.tsx (31.688 s)
34
- @remotion/renderer:test: 
35
- @remotion/renderer:test: Test Suites: 22 passed, 22 total
36
- @remotion/renderer:test: Tests: 61 passed, 61 total
37
- @remotion/renderer:test: Snapshots: 0 total
38
- @remotion/renderer:test: Time: 34.243 s
39
- @remotion/renderer:test: Ran all test suites.
1
+ @remotion/renderer:test: cache hit, replaying output 21f71927c0503c53
2
+ @remotion/renderer:test: 
3
+ @remotion/renderer:test: > @remotion/renderer@2.6.14 test /Users/jonathanburger/remotion/packages/renderer
4
+ @remotion/renderer:test: > jest
5
+ @remotion/renderer:test: 
6
+ @remotion/renderer:test: watchman warning: Recrawled this watch 109 times, most recently because:
7
+ @remotion/renderer:test: MustScanSubDirs UserDroppedTo resolve, please review the information on
8
+ @remotion/renderer:test: https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
9
+ @remotion/renderer:test: To clear this warning, run:
10
+ @remotion/renderer:test: `watchman watch-del '/Users/jonathanburger/remotion' ; watchman watch-project '/Users/jonathanburger/remotion'`
11
+ @remotion/renderer:test: 
12
+ @remotion/renderer:test: PASS src/test/ffmpeg-filters.test.ts (9.806 s)
13
+ @remotion/renderer:test: PASS src/test/ffmpeg-volume-expression.test.ts (9.204 s)
14
+ @remotion/renderer:test: PASS src/test/split-assets-into-segments.test.tsx (9.892 s)
15
+ @remotion/renderer:test: PASS src/test/parse-ffmpeg-version.test.ts (10.099 s)
16
+ @remotion/renderer:test: PASS src/test/dont-skip-assets.test.ts (10.173 s)
17
+ @remotion/renderer:test: PASS src/test/serve-url.test.js
18
+ @remotion/renderer:test: PASS src/test/avoid-asset-zero-length.test.ts
19
+ @remotion/renderer:test: PASS src/test/asset-compression.test.ts
20
+ @remotion/renderer:test: PASS src/test/handle-weird-file-names.test.ts
21
+ @remotion/renderer:test: PASS src/test/asset-is-used-at-time.test.ts
22
+ @remotion/renderer:test: PASS src/test/serve-url.test.ts
23
+ @remotion/renderer:test: PASS src/test/calculate-atempo.test.ts
24
+ @remotion/renderer:test: PASS src/test/get-audio-channels.test.ts
25
+ @remotion/renderer:test: PASS src/test/parse-ffmpeg-progress.test.ts
26
+ @remotion/renderer:test: PASS src/test/sanitize-file-path.test.ts
27
+ @remotion/renderer:test: PASS src/test/avoid-ffmpeg-stackoverflow.test.ts
28
+ @remotion/renderer:test: PASS src/test/download-file.test.ts
29
+ @remotion/renderer:test: PASS src/test/flatten-volume-array.test.tsx
30
+ @remotion/renderer:test: PASS src/test/validate-config-stitcher.test.ts
31
+ @remotion/renderer:test: PASS src/test/render-still.test.ts
32
+ @remotion/renderer:test: PASS src/test/webpack-to-serve-url.test.ts
33
+ @remotion/renderer:test: PASS src/test/validate-config.test.ts (13.034 s)
34
+ @remotion/renderer:test: PASS src/test/asset-calculation.test.tsx (19.103 s)
35
+ @remotion/renderer:test: 
36
+ @remotion/renderer:test: Test Suites: 23 passed, 23 total
37
+ @remotion/renderer:test: Tests: 63 passed, 63 total
38
+ @remotion/renderer:test: Snapshots: 0 total
39
+ @remotion/renderer:test: Time: 21.783 s
40
+ @remotion/renderer:test: Ran all test suites.
@@ -1 +1 @@
1
- {"version":3,"file":"sanitize-filepath.d.ts","sourceRoot":"","sources":["../../src/assets/sanitize-filepath.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,mBAAoB,MAAM,WAKtD,CAAC"}
1
+ {"version":3,"file":"sanitize-filepath.d.ts","sourceRoot":"","sources":["../../src/assets/sanitize-filepath.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,mBAAoB,MAAM,WAKtD,CAAC"}
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.sanitizeFilePath = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const sanitize_filename_1 = require("./sanitize-filename");
9
+ const pathSeparators = /[/\\]/;
9
10
  const sanitizeFilePath = (pathToSanitize) => {
10
11
  return pathToSanitize
11
- .split(path_1.default.sep)
12
+ .split(pathSeparators)
12
13
  .map((s) => (0, sanitize_filename_1.sanitizeFilename)(s))
13
14
  .join(path_1.default.sep);
14
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sanitize-filepath.js","sourceRoot":"","sources":["../../src/assets/sanitize-filepath.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,2DAAqD;AAE9C,MAAM,gBAAgB,GAAG,CAAC,cAAsB,EAAE,EAAE;IAC1D,OAAO,cAAc;SACnB,KAAK,CAAC,cAAI,CAAC,GAAG,CAAC;SACf,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,oCAAgB,EAAC,CAAC,CAAC,CAAC;SAC/B,IAAI,CAAC,cAAI,CAAC,GAAG,CAAC,CAAC;AAClB,CAAC,CAAC;AALW,QAAA,gBAAgB,oBAK3B"}
1
+ {"version":3,"file":"sanitize-filepath.js","sourceRoot":"","sources":["../../src/assets/sanitize-filepath.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,2DAAqD;AAErD,MAAM,cAAc,GAAG,OAAO,CAAC;AAExB,MAAM,gBAAgB,GAAG,CAAC,cAAsB,EAAE,EAAE;IAC1D,OAAO,cAAc;SACnB,KAAK,CAAC,cAAc,CAAC;SACrB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,oCAAgB,EAAC,CAAC,CAAC,CAAC;SAC/B,IAAI,CAAC,cAAI,CAAC,GAAG,CAAC,CAAC;AAClB,CAAC,CAAC;AALW,QAAA,gBAAgB,oBAK3B"}
@@ -1,6 +1,9 @@
1
1
  import { FfmpegFilterCalculation } from './calculate-ffmpeg-filters';
2
2
  export declare const createFfmpegComplexFilter: (filters: FfmpegFilterCalculation[]) => Promise<{
3
- complexFilterFlag: [string, string] | null;
3
+ complexFilterFlag: [
4
+ string,
5
+ string
6
+ ] | null;
4
7
  cleanup: () => void;
5
8
  }>;
6
9
  //# sourceMappingURL=create-ffmpeg-complex-filter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-ffmpeg-complex-filter.d.ts","sourceRoot":"","sources":["../src/create-ffmpeg-complex-filter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AAmBnE,eAAO,MAAM,yBAAyB,YAC5B,uBAAuB,EAAE,KAChC,QAAQ;IACV,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CA2BA,CAAC"}
1
+ {"version":3,"file":"create-ffmpeg-complex-filter.d.ts","sourceRoot":"","sources":["../src/create-ffmpeg-complex-filter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AAmBnE,eAAO,MAAM,yBAAyB,YAC5B,uBAAuB,EAAE,KAChC,QAAQ;IACV,iBAAiB,EAAE;QAAC,MAAM;QAAE,MAAM;KAAC,GAAG,IAAI,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CA2BA,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { Codec } from 'remotion';
2
- export declare const getFileExtensionFromCodec: (codec: Codec, type: 'chunk' | 'final') => "mp3" | "aac" | "wav" | "mp4" | "mkv" | "mov" | "webm";
2
+ export declare const getFileExtensionFromCodec: (codec: Codec, type: 'chunk' | 'final') => "mp3" | "aac" | "wav" | "webm" | "mp4" | "mkv" | "mov";
3
3
  //# sourceMappingURL=get-extension-from-codec.d.ts.map
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Page, ScreenshotOptions } from 'puppeteer-core';
3
2
  export declare const screenshot: (page: Page, options?: ScreenshotOptions) => Promise<Buffer | string | void>;
4
3
  //# sourceMappingURL=puppeteer-screenshot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"puppeteer-screenshot.d.ts","sourceRoot":"","sources":["../src/puppeteer-screenshot.ts"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAE,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAGvD,eAAO,MAAM,UAAU,SAChB,IAAI,YACD,iBAAiB,KACxB,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI,CAyFhC,CAAC"}
1
+ {"version":3,"file":"puppeteer-screenshot.d.ts","sourceRoot":"","sources":["../src/puppeteer-screenshot.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAE,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAGvD,eAAO,MAAM,UAAU,SAChB,IAAI,YACD,iBAAiB,KACxB,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI,CAyFhC,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import puppeteer from 'puppeteer-core';
3
2
  import { ImageFormat } from 'remotion';
4
3
  export declare const screenshotDOMElement: ({ page, imageFormat, quality, opts, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot-dom-element.d.ts","sourceRoot":"","sources":["../src/screenshot-dom-element.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAGrC,eAAO,MAAM,oBAAoB;UAM1B,UAAU,IAAI;iBACP,WAAW;aACf,MAAM,GAAG,SAAS;;;;;MAKxB,QAAQ,MAAM,CA2BjB,CAAC"}
1
+ {"version":3,"file":"screenshot-dom-element.d.ts","sourceRoot":"","sources":["../src/screenshot-dom-element.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAGrC,eAAO,MAAM,oBAAoB;UAM1B,UAAU,IAAI;iBACP,WAAW;aACf,MAAM,GAAG,SAAS;;;;;MAKxB,QAAQ,MAAM,CA2BjB,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Page, ScreenshotOptions } from 'puppeteer-core';
3
2
  export declare const _screenshotTask: (page: Page, format: 'png' | 'jpeg', options: ScreenshotOptions) => Promise<Buffer | string>;
4
3
  //# sourceMappingURL=screenshot-task.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot-task.d.ts","sourceRoot":"","sources":["../src/screenshot-task.ts"],"names":[],"mappings":";AACA,OAAO,EAAa,IAAI,EAAE,iBAAiB,EAAS,MAAM,gBAAgB,CAAC;AAG3E,eAAO,MAAM,eAAe,SACrB,IAAI,UACF,KAAK,GAAG,MAAM,WACb,iBAAiB,KACxB,QAAQ,MAAM,GAAG,MAAM,CAqCzB,CAAC"}
1
+ {"version":3,"file":"screenshot-task.d.ts","sourceRoot":"","sources":["../src/screenshot-task.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,iBAAiB,EAAS,MAAM,gBAAgB,CAAC;AAG3E,eAAO,MAAM,eAAe,SACrB,IAAI,UACF,KAAK,GAAG,MAAM,WACb,iBAAiB,KACxB,QAAQ,MAAM,GAAG,MAAM,CAqCzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "2.6.12",
3
+ "version": "2.6.15",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,11 +20,11 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "@remotion/bundler": "2.6.12",
23
+ "@remotion/bundler": "2.6.15",
24
24
  "execa": "5.1.1",
25
25
  "p-limit": "3.1.0",
26
26
  "puppeteer-core": "13.1.2",
27
- "remotion": "2.6.12",
27
+ "remotion": "2.6.15",
28
28
  "serve-handler": "6.1.3"
29
29
  },
30
30
  "peerDependencies": {
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "6d76097a98c44dc976cecfa04526d663339cf45c"
61
+ "gitHead": "b175877d7ce5e0bbcb9d923cc98546fd6c748b44"
62
62
  }
@@ -1,3 +0,0 @@
1
- import { Codec, ProResProfile } from 'remotion';
2
- export declare const getProResProfileName: (codec: Codec, proResProfile: ProResProfile | undefined) => string | null;
3
- //# sourceMappingURL=get-pro-res-profile-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-pro-res-profile-name.d.ts","sourceRoot":"","sources":["../src/get-pro-res-profile-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,oBAAoB,UACzB,KAAK,iBACG,aAAa,GAAG,SAAS,KACtC,MAAM,GAAG,IAqBX,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getProResProfileName = void 0;
4
- const getProResProfileName = (codec, proResProfile) => {
5
- if (codec !== 'prores') {
6
- return null;
7
- }
8
- switch (proResProfile) {
9
- case '4444-xq':
10
- return '5';
11
- case '4444':
12
- return '4';
13
- case 'hq':
14
- return '3';
15
- case 'standard':
16
- return '2';
17
- case 'light':
18
- return '1';
19
- case 'proxy':
20
- return '0';
21
- default:
22
- return '3';
23
- }
24
- };
25
- exports.getProResProfileName = getProResProfileName;
26
- //# sourceMappingURL=get-pro-res-profile-name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-pro-res-profile-name.js","sourceRoot":"","sources":["../src/get-pro-res-profile-name.ts"],"names":[],"mappings":";;;AAEO,MAAM,oBAAoB,GAAG,CACnC,KAAY,EACZ,aAAwC,EACxB,EAAE;IAClB,IAAI,KAAK,KAAK,QAAQ,EAAE;QACvB,OAAO,IAAI,CAAC;KACZ;IAED,QAAQ,aAAa,EAAE;QACtB,KAAK,SAAS;YACb,OAAO,GAAG,CAAC;QACZ,KAAK,MAAM;YACV,OAAO,GAAG,CAAC;QACZ,KAAK,IAAI;YACR,OAAO,GAAG,CAAC;QACZ,KAAK,UAAU;YACd,OAAO,GAAG,CAAC;QACZ,KAAK,OAAO;YACX,OAAO,GAAG,CAAC;QACZ,KAAK,OAAO;YACX,OAAO,GAAG,CAAC;QACZ;YACC,OAAO,GAAG,CAAC;KACZ;AACF,CAAC,CAAC;AAxBW,QAAA,oBAAoB,wBAwB/B"}
@@ -1,39 +0,0 @@
1
- import type { Browser as PuppeteerBrowser } from 'puppeteer-core';
2
- import { Browser, Codec, FfmpegExecutable, FrameRange, PixelFormat, ProResProfile, TCompMetadata } from 'remotion';
3
- export declare type RenderMediaOnDownload = (src: string) => void;
4
- export declare type StitchingState = 'encoding' | 'muxing';
5
- export declare type RenderMediaOnProgress = (progress: {
6
- renderedFrames: number;
7
- encodedFrames: number;
8
- encodedDoneIn: number | null;
9
- renderedDoneIn: number | null;
10
- stitchStage: StitchingState;
11
- }) => void;
12
- export declare type RenderMediaOptions = {
13
- proResProfile: ProResProfile | undefined;
14
- parallelism: number | null;
15
- parallelEncoding: boolean;
16
- crf: number | null;
17
- outputDir: string;
18
- config: TCompMetadata;
19
- imageFormat: 'png' | 'jpeg' | 'none';
20
- ffmpegExecutable: FfmpegExecutable;
21
- inputProps: object;
22
- pixelFormat: PixelFormat;
23
- codec: Codec;
24
- envVariables: Record<string, string>;
25
- quality: number | undefined;
26
- frameRange: FrameRange | null;
27
- browser: Browser;
28
- serveUrl: string;
29
- openedBrowser: PuppeteerBrowser;
30
- overwrite: boolean;
31
- absoluteOutputFile: string;
32
- onProgress?: RenderMediaOnProgress;
33
- fileExtension: string | null;
34
- bundled: string;
35
- onDownload: (src: string) => void;
36
- dumpBrowserLogs: boolean;
37
- };
38
- export declare const renderMedia: ({ parallelism, proResProfile, parallelEncoding, crf, outputDir, config, imageFormat, ffmpegExecutable, inputProps, pixelFormat, codec, envVariables, quality, frameRange, browser, serveUrl, openedBrowser, absoluteOutputFile, onProgress, overwrite, fileExtension, bundled, onDownload, dumpBrowserLogs, }: RenderMediaOptions) => Promise<void>;
39
- //# sourceMappingURL=render-video.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-video.d.ts","sourceRoot":"","sources":["../src/render-video.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EACN,OAAO,EACP,KAAK,EACL,gBAAgB,EAChB,UAAU,EAEV,WAAW,EACX,aAAa,EACb,aAAa,EACb,MAAM,UAAU,CAAC;AAIlB,oBAAY,qBAAqB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAE1D,oBAAY,cAAc,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEnD,oBAAY,qBAAqB,GAAG,CAAC,QAAQ,EAAE;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,cAAc,CAAC;CAC5B,KAAK,IAAI,CAAC;AAEX,oBAAY,kBAAkB,GAAG;IAChC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;IACzC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACrC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,gBAAgB,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,kTAyBrB,kBAAkB,kBAuIpB,CAAC"}
@@ -1,138 +0,0 @@
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.renderMedia = void 0;
7
- const fs_1 = __importDefault(require("fs"));
8
- const path_1 = __importDefault(require("path"));
9
- const remotion_1 = require("remotion");
10
- const stitcher_1 = require("./stitcher");
11
- const render_1 = require("./render");
12
- const renderMedia = async ({ parallelism, proResProfile, parallelEncoding, crf, outputDir, config, imageFormat, ffmpegExecutable, inputProps, pixelFormat, codec, envVariables, quality, frameRange, browser, serveUrl, openedBrowser, absoluteOutputFile, onProgress, overwrite, fileExtension, bundled, onDownload, dumpBrowserLogs, }) => {
13
- var _a, _b;
14
- let stitchStage = 'encoding';
15
- let stitcherFfmpeg;
16
- let preStitcher;
17
- let encodedFrames = 0;
18
- let renderedFrames = 0;
19
- let preEncodedFileLocation;
20
- let renderedDoneIn = null;
21
- let encodedDoneIn = null;
22
- const renderStart = Date.now();
23
- const callUpdate = () => {
24
- onProgress === null || onProgress === void 0 ? void 0 : onProgress({
25
- encodedDoneIn,
26
- encodedFrames,
27
- renderedDoneIn,
28
- renderedFrames,
29
- stitchStage,
30
- });
31
- };
32
- if (parallelEncoding) {
33
- if (typeof crf !== 'number') {
34
- throw new TypeError('CRF is unexpectedly not a number');
35
- }
36
- preEncodedFileLocation = path_1.default.join(outputDir, 'pre-encode.' + fileExtension);
37
- preStitcher = await (0, stitcher_1.spawnFfmpeg)({
38
- dir: outputDir,
39
- width: config.width,
40
- height: config.height,
41
- fps: config.fps,
42
- outputLocation: preEncodedFileLocation,
43
- force: true,
44
- imageFormat,
45
- pixelFormat,
46
- codec,
47
- proResProfile,
48
- crf,
49
- parallelism,
50
- onProgress: (frame) => {
51
- encodedFrames = frame;
52
- callUpdate();
53
- },
54
- verbose: remotion_1.Internals.Logging.isEqualOrBelowLogLevel('verbose'),
55
- parallelEncoding,
56
- webpackBundle: bundled,
57
- ffmpegExecutable,
58
- assetsInfo: { assets: [] },
59
- });
60
- stitcherFfmpeg = preStitcher.task;
61
- }
62
- const { assetsInfo } = await (0, render_1.renderFrames)({
63
- config,
64
- onFrameUpdate: (frame) => {
65
- renderedFrames = frame;
66
- callUpdate();
67
- },
68
- parallelism,
69
- outputDir,
70
- onStart: () => {
71
- renderedFrames = 0;
72
- callUpdate();
73
- },
74
- inputProps,
75
- envVariables,
76
- imageFormat,
77
- quality,
78
- browser,
79
- frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
80
- puppeteerInstance: openedBrowser,
81
- writeFrame: async (buffer) => {
82
- var _a;
83
- (_a = stitcherFfmpeg === null || stitcherFfmpeg === void 0 ? void 0 : stitcherFfmpeg.stdin) === null || _a === void 0 ? void 0 : _a.write(buffer);
84
- },
85
- serveUrl,
86
- dumpBrowserLogs,
87
- });
88
- if (stitcherFfmpeg) {
89
- (_a = stitcherFfmpeg === null || stitcherFfmpeg === void 0 ? void 0 : stitcherFfmpeg.stdin) === null || _a === void 0 ? void 0 : _a.end();
90
- await stitcherFfmpeg;
91
- (_b = preStitcher === null || preStitcher === void 0 ? void 0 : preStitcher.cleanup) === null || _b === void 0 ? void 0 : _b.call(preStitcher);
92
- }
93
- const closeBrowserPromise = openedBrowser.close();
94
- renderedDoneIn = Date.now() - renderStart;
95
- callUpdate();
96
- if (typeof crf !== 'number') {
97
- throw new TypeError('CRF is unexpectedly not a number');
98
- }
99
- const dirName = path_1.default.dirname(absoluteOutputFile);
100
- if (!fs_1.default.existsSync(dirName)) {
101
- fs_1.default.mkdirSync(dirName, {
102
- recursive: true,
103
- });
104
- }
105
- const stitchStart = Date.now();
106
- await (0, stitcher_1.stitchFramesToVideo)({
107
- dir: outputDir,
108
- width: config.width,
109
- height: config.height,
110
- fps: config.fps,
111
- outputLocation: absoluteOutputFile,
112
- preEncodedFileLocation,
113
- force: overwrite,
114
- imageFormat,
115
- pixelFormat,
116
- codec,
117
- proResProfile,
118
- crf,
119
- assetsInfo,
120
- parallelism,
121
- ffmpegExecutable,
122
- onProgress: (frame) => {
123
- stitchStage = 'muxing';
124
- encodedFrames = frame;
125
- callUpdate();
126
- },
127
- // TODO: Optimization, Now can download before!
128
- onDownload,
129
- webpackBundle: bundled,
130
- verbose: remotion_1.Internals.Logging.isEqualOrBelowLogLevel('verbose'),
131
- });
132
- encodedFrames = config.durationInFrames;
133
- encodedDoneIn = Date.now() - stitchStart;
134
- callUpdate();
135
- await closeBrowserPromise;
136
- };
137
- exports.renderMedia = renderMedia;
138
- //# sourceMappingURL=render-video.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-video.js","sourceRoot":"","sources":["../src/render-video.ts"],"names":[],"mappings":";;;;;;AACA,4CAAoB;AACpB,gDAAwB;AAExB,uCASkB;AACl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,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW,CAAC;IACzC,UAAU,EAAE,CAAC;IACb,MAAM,mBAAmB,CAAC;AAC3B,CAAC,CAAC;AAhKW,QAAA,WAAW,eAgKtB"}
@@ -1,6 +0,0 @@
1
- import execa from 'execa';
2
- export declare const ENABLE_WASM_FFMPEG = true;
3
- export declare const wasmFfmpeg: import("@ffmpeg/ffmpeg").FFmpeg;
4
- export declare const load: Promise<void>;
5
- export declare const runFfmpegCommand: (args: string[], isRenderBad: boolean, options?: execa.Options<string> | undefined) => Promise<execa.ExecaReturnValue<string>>;
6
- //# sourceMappingURL=run-ffmpeg-command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-ffmpeg-command.d.ts","sourceRoot":"","sources":["../src/run-ffmpeg-command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC,eAAO,MAAM,UAAU,iCAA4B,CAAC;AACpD,eAAO,MAAM,IAAI,eAAoB,CAAC;AAEtC,eAAO,MAAM,gBAAgB,SACtB,MAAM,EAAE,eACD,OAAO,yFAgBpB,CAAC"}
@@ -1,25 +0,0 @@
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.runFfmpegCommand = exports.load = exports.wasmFfmpeg = exports.ENABLE_WASM_FFMPEG = void 0;
7
- const ffmpeg_1 = require("@ffmpeg/ffmpeg");
8
- const execa_1 = __importDefault(require("execa"));
9
- const fs_1 = __importDefault(require("fs"));
10
- exports.ENABLE_WASM_FFMPEG = true;
11
- exports.wasmFfmpeg = ffmpeg_1.createFFmpeg({ log: true });
12
- exports.load = exports.wasmFfmpeg.load();
13
- const runFfmpegCommand = async (args, isRenderBad, options) => {
14
- await exports.load;
15
- await exports.wasmFfmpeg.run(...args);
16
- if (isRenderBad) {
17
- await fs_1.default.promises.writeFile('./hi.mp4',
18
- // eslint-disable-next-line new-cap
19
- exports.wasmFfmpeg.FS('readFile', 'hi.mp4'));
20
- }
21
- console.log('wasm done');
22
- return execa_1.default('ffmpeg', args, options);
23
- };
24
- exports.runFfmpegCommand = runFfmpegCommand;
25
- //# sourceMappingURL=run-ffmpeg-command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-ffmpeg-command.js","sourceRoot":"","sources":["../src/run-ffmpeg-command.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA4C;AAC5C,kDAA0B;AAC1B,4CAAoB;AAEP,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAE1B,QAAA,UAAU,GAAG,qBAAY,CAAC,EAAC,GAAG,EAAE,IAAI,EAAC,CAAC,CAAC;AACvC,QAAA,IAAI,GAAG,kBAAU,CAAC,IAAI,EAAE,CAAC;AAE/B,MAAM,gBAAgB,GAAG,KAAK,EACpC,IAAc,EACd,WAAoB,EACpB,OAAuB,EACtB,EAAE;IACH,MAAM,YAAI,CAAC;IAEX,MAAM,kBAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;IAC9B,IAAI,WAAW,EAAE;QAChB,MAAM,YAAE,CAAC,QAAQ,CAAC,SAAS,CAC1B,UAAU;QACV,mCAAmC;QACnC,kBAAU,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CACnC,CAAC;KACF;IAED,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACzB,OAAO,eAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B"}