@remotion/renderer 2.5.0-alpha.ee579a98 → 2.5.3
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.
- package/LICENSE.md +41 -0
- package/dist/assets/calculate-asset-positions.d.ts.map +1 -1
- package/dist/assets/calculate-asset-positions.js +12 -3
- package/dist/assets/calculate-asset-positions.js.map +1 -1
- package/dist/assets/convert-assets-to-file-urls.d.ts +2 -3
- package/dist/assets/convert-assets-to-file-urls.d.ts.map +1 -1
- package/dist/assets/convert-assets-to-file-urls.js +2 -3
- package/dist/assets/convert-assets-to-file-urls.js.map +1 -1
- package/dist/assets/download-and-map-assets-to-file.d.ts +4 -6
- package/dist/assets/download-and-map-assets-to-file.d.ts.map +1 -1
- package/dist/assets/download-and-map-assets-to-file.js +3 -11
- package/dist/assets/download-and-map-assets-to-file.js.map +1 -1
- package/dist/browser-log.d.ts +7 -0
- package/dist/browser-log.d.ts.map +1 -0
- package/dist/browser-log.js +3 -0
- package/dist/browser-log.js.map +1 -0
- package/dist/create-ffmpeg-complex-filter.d.ts +4 -1
- package/dist/create-ffmpeg-complex-filter.d.ts.map +1 -1
- package/dist/ffmpeg-flags.d.ts +7 -3
- package/dist/ffmpeg-flags.d.ts.map +1 -1
- package/dist/ffmpeg-flags.js +15 -9
- package/dist/ffmpeg-flags.js.map +1 -1
- package/dist/get-audio-codec-name.d.ts.map +1 -1
- package/dist/get-audio-codec-name.js +0 -3
- package/dist/get-audio-codec-name.js.map +1 -1
- package/dist/get-compositions.d.ts +1 -4
- package/dist/get-compositions.d.ts.map +1 -1
- package/dist/get-compositions.js +12 -21
- package/dist/get-compositions.js.map +1 -1
- package/dist/get-pro-res-profile-name.d.ts +3 -0
- package/dist/get-pro-res-profile-name.d.ts.map +1 -0
- package/dist/get-pro-res-profile-name.js +26 -0
- package/dist/get-pro-res-profile-name.js.map +1 -0
- package/dist/index.d.ts +9 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/normalize-serve-url.d.ts +2 -0
- package/dist/normalize-serve-url.d.ts.map +1 -0
- package/dist/normalize-serve-url.js +20 -0
- package/dist/normalize-serve-url.js.map +1 -0
- package/dist/open-browser.d.ts.map +1 -1
- package/dist/open-browser.js +0 -11
- package/dist/open-browser.js.map +1 -1
- package/dist/puppeteer-screenshot.d.ts +0 -1
- package/dist/puppeteer-screenshot.d.ts.map +1 -1
- package/dist/puppeteer-screenshot.js.map +1 -1
- package/dist/render-still.d.ts +4 -4
- package/dist/render-still.d.ts.map +1 -1
- package/dist/render-still.js +14 -7
- package/dist/render-still.js.map +1 -1
- package/dist/render.d.ts +3 -3
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +21 -14
- package/dist/render.js.map +1 -1
- package/dist/run-ffmpeg-command.d.ts +6 -0
- package/dist/run-ffmpeg-command.d.ts.map +1 -0
- package/dist/run-ffmpeg-command.js +25 -0
- package/dist/run-ffmpeg-command.js.map +1 -0
- package/dist/screenshot-dom-element.d.ts +0 -1
- package/dist/screenshot-dom-element.d.ts.map +1 -1
- package/dist/screenshot-task.d.ts +1 -3
- package/dist/screenshot-task.d.ts.map +1 -1
- package/dist/screenshot-task.js.map +1 -1
- package/dist/set-props-and-env.d.ts +2 -2
- package/dist/set-props-and-env.d.ts.map +1 -1
- package/dist/set-props-and-env.js +2 -2
- package/dist/set-props-and-env.js.map +1 -1
- package/dist/stitcher.d.ts +3 -4
- package/dist/stitcher.d.ts.map +1 -1
- package/dist/stitcher.js +9 -16
- package/dist/stitcher.js.map +1 -1
- package/dist/stringify-ffmpeg-filter.d.ts.map +1 -1
- package/dist/stringify-ffmpeg-filter.js +0 -3
- package/dist/stringify-ffmpeg-filter.js.map +1 -1
- package/dist/validate-ffmpeg.d.ts +2 -2
- package/dist/validate-ffmpeg.d.ts.map +1 -1
- package/dist/validate-ffmpeg.js +20 -8
- package/dist/validate-ffmpeg.js.map +1 -1
- package/package.json +9 -6
- package/dist/handle-null-audio.d.ts +0 -1
- package/dist/handle-null-audio.d.ts.map +0 -1
- package/dist/handle-null-audio.js +0 -2
- package/dist/handle-null-audio.js.map +0 -1
- package/dist/validate-frame.d.ts +0 -2
- package/dist/validate-frame.d.ts.map +0 -1
- package/dist/validate-frame.js +0 -25
- package/dist/validate-frame.js.map +0 -1
- package/dist/validate-quality.d.ts +0 -1
- package/dist/validate-quality.d.ts.map +0 -1
- package/dist/validate-quality.js +0 -2
- package/dist/validate-quality.js.map +0 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Remotion License
|
|
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.
|
|
4
|
+
|
|
5
|
+
- [Free license](#free-license)
|
|
6
|
+
- [Company license](#company-license)
|
|
7
|
+
|
|
8
|
+
## Free license
|
|
9
|
+
|
|
10
|
+
Copyright © 2021 [Jonny Burger](https://jonny.io)
|
|
11
|
+
|
|
12
|
+
### Eligibility
|
|
13
|
+
|
|
14
|
+
You are eligible to use Remotion for free if you are:
|
|
15
|
+
|
|
16
|
+
- an individual
|
|
17
|
+
- a for-profit organisation with up to 3 employees
|
|
18
|
+
- a non-profit or not-for-profit organisation
|
|
19
|
+
- evaluating whether Remotion is a good fit, and are not yet using it in a commercial way
|
|
20
|
+
|
|
21
|
+
### Allowed use cases
|
|
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.
|
|
24
|
+
|
|
25
|
+
### Disallowed use cases
|
|
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.
|
|
28
|
+
|
|
29
|
+
### Warranty notice
|
|
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.
|
|
32
|
+
|
|
33
|
+
### Support
|
|
34
|
+
|
|
35
|
+
Support is provided on a best-we-can-do basis via GitHub Issues.
|
|
36
|
+
|
|
37
|
+
## Company license
|
|
38
|
+
|
|
39
|
+
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support.
|
|
40
|
+
|
|
41
|
+
Visit [companies.remotion.dev](https://companies.remotion.dev) for pricing and to buy a license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculate-asset-positions.d.ts","sourceRoot":"","sources":["../../src/assets/calculate-asset-positions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAC,MAAM,EAA0B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"calculate-asset-positions.d.ts","sourceRoot":"","sources":["../../src/assets/calculate-asset-positions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAC,MAAM,EAA0B,MAAM,SAAS,CAAC;AA2BxD,eAAO,MAAM,uBAAuB,WAAY,MAAM,EAAE,EAAE,WAgDzD,CAAC"}
|
|
@@ -13,13 +13,22 @@ const findFrom = (target, asset) => {
|
|
|
13
13
|
target.splice(index, 1);
|
|
14
14
|
return true;
|
|
15
15
|
};
|
|
16
|
+
const copyAndDeduplicateAssets = (assets) => {
|
|
17
|
+
const deduplicated = [];
|
|
18
|
+
for (const asset of assets) {
|
|
19
|
+
if (!deduplicated.find((d) => d.id === asset.id)) {
|
|
20
|
+
deduplicated.push(asset);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return deduplicated;
|
|
24
|
+
};
|
|
16
25
|
const calculateAssetPositions = (frames) => {
|
|
17
26
|
var _a, _b;
|
|
18
27
|
const assets = [];
|
|
19
28
|
for (let frame = 0; frame < frames.length; frame++) {
|
|
20
|
-
const prev = ((_a = frames[frame - 1]) !== null && _a !== void 0 ? _a : [])
|
|
21
|
-
const current = frames[frame];
|
|
22
|
-
const next = ((_b = frames[frame + 1]) !== null && _b !== void 0 ? _b : [])
|
|
29
|
+
const prev = copyAndDeduplicateAssets((_a = frames[frame - 1]) !== null && _a !== void 0 ? _a : []);
|
|
30
|
+
const current = copyAndDeduplicateAssets(frames[frame]);
|
|
31
|
+
const next = copyAndDeduplicateAssets((_b = frames[frame + 1]) !== null && _b !== void 0 ? _b : []);
|
|
23
32
|
for (const asset of current) {
|
|
24
33
|
if (!findFrom(prev, asset)) {
|
|
25
34
|
assets.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculate-asset-positions.js","sourceRoot":"","sources":["../../src/assets/calculate-asset-positions.ts"],"names":[],"mappings":";;;AACA,6EAAqE;AAGrE,MAAM,QAAQ,GAAG,CAAC,CAAuB,EAAE,CAAS,EAAE,EAAE;IACvD,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,MAAgB,EAAE,KAAa,EAAE,EAAE;IACpD,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1D,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;QACjB,OAAO,KAAK,CAAC;KACb;IAED,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACxB,OAAO,IAAI,CAAC;AACb,C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AQ,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;gBAC3B,wBAAwB;gBACxB,uBAAuB;gBACvB,oCAAoC;gBACpC,KAAK,CAAC,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC;aAChD;YAED,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;SAC/C;KACD;IAED,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC3B,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;SACjD;KACD;IAED,OAAO,IAAA,oDAAuB,EAAC;QAC9B,MAAM,EAAE,MAAsB;QAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM;KACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,uBAAuB,2BAgDlC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { TAsset } from 'remotion';
|
|
2
|
-
export declare const convertAssetsToFileUrls: ({ assets,
|
|
2
|
+
export declare const convertAssetsToFileUrls: ({ assets, dir, onDownload, }: {
|
|
3
3
|
assets: TAsset[][];
|
|
4
|
-
|
|
4
|
+
dir: string;
|
|
5
5
|
onDownload: (src: string) => void;
|
|
6
|
-
webpackBundle: string | null;
|
|
7
6
|
}) => Promise<TAsset[][]>;
|
|
8
7
|
//# sourceMappingURL=convert-assets-to-file-urls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-assets-to-file-urls.d.ts","sourceRoot":"","sources":["../../src/assets/convert-assets-to-file-urls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAWhC,eAAO,MAAM,uBAAuB;
|
|
1
|
+
{"version":3,"file":"convert-assets-to-file-urls.d.ts","sourceRoot":"","sources":["../../src/assets/convert-assets-to-file-urls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAWhC,eAAO,MAAM,uBAAuB;YAK3B,MAAM,EAAE,EAAE;SACb,MAAM;sBACO,MAAM,KAAK,IAAI;MAC9B,QAAQ,MAAM,EAAE,EAAE,CAsBrB,CAAC"}
|
|
@@ -9,7 +9,7 @@ const chunk = (input, size) => {
|
|
|
9
9
|
: [...arr.slice(0, -1), [...arr.slice(-1)[0], item]];
|
|
10
10
|
}, []);
|
|
11
11
|
};
|
|
12
|
-
const convertAssetsToFileUrls = async ({ assets,
|
|
12
|
+
const convertAssetsToFileUrls = async ({ assets, dir, onDownload, }) => {
|
|
13
13
|
const chunks = chunk(assets, 1000);
|
|
14
14
|
const results = [];
|
|
15
15
|
for (const ch of chunks) {
|
|
@@ -17,9 +17,8 @@ const convertAssetsToFileUrls = async ({ assets, downloadDir, onDownload, webpac
|
|
|
17
17
|
return Promise.all(assetsForFrame.map((a) => {
|
|
18
18
|
return (0, download_and_map_assets_to_file_1.downloadAndMapAssetsToFileUrl)({
|
|
19
19
|
localhostAsset: a,
|
|
20
|
-
|
|
20
|
+
webpackBundle: dir,
|
|
21
21
|
onDownload,
|
|
22
|
-
webpackBundle,
|
|
23
22
|
});
|
|
24
23
|
}));
|
|
25
24
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-assets-to-file-urls.js","sourceRoot":"","sources":["../../src/assets/convert-assets-to-file-urls.ts"],"names":[],"mappings":";;;AACA,uFAAgF;AAEhF,MAAM,KAAK,GAAG,CAAI,KAAU,EAAE,IAAY,EAAE,EAAE;IAC7C,OAAO,KAAK,CAAC,MAAM,CAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAC7C,OAAO,GAAG,GAAG,IAAI,KAAK,CAAC;YACtB,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC,CAAC,CA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EAAE,EAAE;YACzB,OAAO,OAAO,CAAC,GAAG,CACjB,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBACxB,OAAO,IAAA,+DAA6B,EAAC;oBACpC,cAAc,EAAE,CAAC;oBACjB,aAAa,EAAE,GAAG;oBAClB,UAAU;iBACV,CAAC,CAAC;YACJ,CAAC,CAAC,CACF,CAAC;QACH,CAAC,CAAC,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACrB;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC,CAAC;AA9BW,QAAA,uBAAuB,2BA8BlC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { TAsset } from 'remotion';
|
|
2
2
|
export declare const markAllAssetsAsDownloaded: () => void;
|
|
3
|
-
export declare const getSanitizedFilenameForAssetUrl: ({ src, isRemote, webpackBundle,
|
|
3
|
+
export declare const getSanitizedFilenameForAssetUrl: ({ src, isRemote, webpackBundle, }: {
|
|
4
4
|
src: string;
|
|
5
5
|
isRemote: boolean;
|
|
6
|
-
webpackBundle: string
|
|
7
|
-
downloadDir: string;
|
|
6
|
+
webpackBundle: string;
|
|
8
7
|
}) => string;
|
|
9
|
-
export declare const downloadAndMapAssetsToFileUrl: ({ localhostAsset,
|
|
8
|
+
export declare const downloadAndMapAssetsToFileUrl: ({ localhostAsset, webpackBundle, onDownload, }: {
|
|
10
9
|
localhostAsset: TAsset;
|
|
11
|
-
|
|
10
|
+
webpackBundle: string;
|
|
12
11
|
onDownload: (src: string) => void;
|
|
13
|
-
webpackBundle: string | null;
|
|
14
12
|
}) => Promise<TAsset>;
|
|
15
13
|
//# sourceMappingURL=download-and-map-assets-to-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-and-map-assets-to-file.d.ts","sourceRoot":"","sources":["../../src/assets/download-and-map-assets-to-file.ts"],"names":[],"mappings":"AAGA,OAAO,EAAS,MAAM,EAAC,MAAM,UAAU,CAAC;AA+DxC,eAAO,MAAM,yBAAyB,YAQrC,CAAC;AAEF,eAAO,MAAM,+BAA+B;
|
|
1
|
+
{"version":3,"file":"download-and-map-assets-to-file.d.ts","sourceRoot":"","sources":["../../src/assets/download-and-map-assets-to-file.ts"],"names":[],"mappings":"AAGA,OAAO,EAAS,MAAM,EAAC,MAAM,UAAU,CAAC;AA+DxC,eAAO,MAAM,yBAAyB,YAQrC,CAAC;AAEF,eAAO,MAAM,+BAA+B;SAKtC,MAAM;cACD,OAAO;mBACF,MAAM;YAqBrB,CAAC;AAEF,eAAO,MAAM,6BAA6B;oBAKzB,MAAM;mBACP,MAAM;sBACH,MAAM,KAAK,IAAI;MAC9B,QAAQ,MAAM,CAejB,CAAC"}
|
|
@@ -63,16 +63,9 @@ const markAllAssetsAsDownloaded = () => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
exports.markAllAssetsAsDownloaded = markAllAssetsAsDownloaded;
|
|
66
|
-
const getSanitizedFilenameForAssetUrl = ({ src, isRemote, webpackBundle,
|
|
66
|
+
const getSanitizedFilenameForAssetUrl = ({ src, isRemote, webpackBundle, }) => {
|
|
67
67
|
const { pathname, search } = new URL(src);
|
|
68
|
-
// There is always a webpack bundle, except when we are
|
|
69
|
-
// in Lambda. Also in Lambda, all assets are remote.
|
|
70
|
-
// Therefore we assert that if an asset is local and no Webpack bundle
|
|
71
|
-
// is available, it is an error
|
|
72
68
|
if (!isRemote) {
|
|
73
|
-
if (!webpackBundle) {
|
|
74
|
-
throw new TypeError('Expected webpack bundle');
|
|
75
|
-
}
|
|
76
69
|
return path_1.default.join(webpackBundle, (0, sanitize_filename_1.default)(pathname));
|
|
77
70
|
}
|
|
78
71
|
const split = pathname.split('.');
|
|
@@ -80,15 +73,14 @@ const getSanitizedFilenameForAssetUrl = ({ src, isRemote, webpackBundle, downloa
|
|
|
80
73
|
? `.${split[split.length - 1]}`
|
|
81
74
|
: '';
|
|
82
75
|
const hashedFileName = String((0, remotion_1.random)(`${pathname}${search}`)).replace('0.', '');
|
|
83
|
-
return path_1.default.join(
|
|
76
|
+
return path_1.default.join(webpackBundle, (0, sanitize_filename_1.default)(hashedFileName + fileExtension));
|
|
84
77
|
};
|
|
85
78
|
exports.getSanitizedFilenameForAssetUrl = getSanitizedFilenameForAssetUrl;
|
|
86
|
-
const downloadAndMapAssetsToFileUrl = async ({ localhostAsset,
|
|
79
|
+
const downloadAndMapAssetsToFileUrl = async ({ localhostAsset, webpackBundle, onDownload, }) => {
|
|
87
80
|
const newSrc = (0, exports.getSanitizedFilenameForAssetUrl)({
|
|
88
81
|
src: localhostAsset.src,
|
|
89
82
|
isRemote: localhostAsset.isRemote,
|
|
90
83
|
webpackBundle,
|
|
91
|
-
downloadDir,
|
|
92
84
|
});
|
|
93
85
|
if (localhostAsset.isRemote) {
|
|
94
86
|
await downloadAsset(localhostAsset.src, newSrc, onDownload);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-and-map-assets-to-file.js","sourceRoot":"","sources":["../../src/assets/download-and-map-assets-to-file.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAgD;AAChD,8CAAsB;AACtB,gDAAwB;AACxB,uCAAwC;AACxC,0EAAiD;AAEjD,MAAM,gBAAgB,GAA6B,EAAE,CAAC;AACtD,MAAM,oBAAoB,GAA6B,EAAE,CAAC;AAC1D,MAAM,SAAS,GAAoC,EAAE,CAAC;AAEtD,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAE,EAAE;IAClD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;QACpB,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;KACpB;IAED,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QACpC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACJ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AG,CAAC;aACX,IAAI,CAAC,WAAW,CAAC;aACjB,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACH,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEK,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC7C,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACjD,OAAO,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC7C,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,yBAAyB,6BAQpC;AAEK,MAAM,+BAA+B,GAAG,CAAC,EAC/C,GAAG,EACH,QAAQ,EACR,aAAa,
|
|
1
|
+
{"version":3,"file":"download-and-map-assets-to-file.js","sourceRoot":"","sources":["../../src/assets/download-and-map-assets-to-file.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAgD;AAChD,8CAAsB;AACtB,gDAAwB;AACxB,uCAAwC;AACxC,0EAAiD;AAEjD,MAAM,gBAAgB,GAA6B,EAAE,CAAC;AACtD,MAAM,oBAAoB,GAA6B,EAAE,CAAC;AAC1D,MAAM,SAAS,GAAoC,EAAE,CAAC;AAEtD,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAE,EAAE;IAClD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;QACpB,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;KACpB;IAED,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QACpC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CA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CAAC,EAAE;QAC/B,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,cAAc,GAAG,MAAM,CAAC,IAAA,iBAAM,EAAC,GAAG,QAAQ,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CACpE,IAAI,EACJ,EAAE,CACF,CAAC;IACF,OAAO,cAAI,CAAC,IAAI,CACf,aAAa,EACb,IAAA,2BAAgB,EAAC,cAAc,GAAG,aAAa,CAAC,CAChD,CAAC;AACH,CAAC,CAAC;AA5BW,QAAA,+BAA+B,mCA4B1C;AAEK,MAAM,6BAA6B,GAAG,KAAK,EAAE,EACnD,cAAc,EACd,aAAa,EACb,UAAU,GAKV,EAAmB,EAAE;IACrB,MAAM,MAAM,GAAG,IAAA,uCAA+B,EAAC;QAC9C,GAAG,EAAE,cAAc,CAAC,GAAG;QACvB,QAAQ,EAAE,cAAc,CAAC,QAAQ;QACjC,aAAa;KACb,CAAC,CAAC;IAEH,IAAI,cAAc,CAAC,QAAQ,EAAE;QAC5B,MAAM,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;KAC5D;IAED,OAAO;QACN,GAAG,cAAc;QACjB,GAAG,EAAE,MAAM;KACX,CAAC;AACH,CAAC,CAAC;AAvBW,QAAA,6BAA6B,iCAuBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-log.d.ts","sourceRoot":"","sources":["../src/browser-log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAE,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAE1E,oBAAY,UAAU,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,sBAAsB,EAAE,CAAC;IACrC,IAAI,EAAE,kBAAkB,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-log.js","sourceRoot":"","sources":["../src/browser-log.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { FfmpegFilterCalculation } from './calculate-ffmpeg-filters';
|
|
2
2
|
export declare const createFfmpegComplexFilter: (filters: FfmpegFilterCalculation[]) => Promise<{
|
|
3
|
-
complexFilterFlag: [
|
|
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,
|
|
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"}
|
package/dist/ffmpeg-flags.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare type FfmpegVersion = [number, number, number] | null;
|
|
2
|
-
export declare const getFfmpegBuildInfo: (
|
|
3
|
-
|
|
2
|
+
export declare const getFfmpegBuildInfo: (options: {
|
|
3
|
+
ffmpegExecutable: string | null;
|
|
4
|
+
}) => Promise<string>;
|
|
5
|
+
export declare const ffmpegHasFeature: (ffmpegExecutable: string | null, feature: 'enable-gpl' | 'enable-libx265' | 'enable-libvpx') => Promise<boolean>;
|
|
4
6
|
export declare const parseFfmpegVersion: (buildconf: string) => FfmpegVersion;
|
|
5
|
-
export declare const getFfmpegVersion: (
|
|
7
|
+
export declare const getFfmpegVersion: (options: {
|
|
8
|
+
ffmpegExecutable: string | null;
|
|
9
|
+
}) => Promise<FfmpegVersion>;
|
|
6
10
|
//# sourceMappingURL=ffmpeg-flags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ffmpeg-flags.d.ts","sourceRoot":"","sources":["../src/ffmpeg-flags.ts"],"names":[],"mappings":"AAKA,oBAAY,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AAE5D,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ffmpeg-flags.d.ts","sourceRoot":"","sources":["../src/ffmpeg-flags.ts"],"names":[],"mappings":"AAKA,oBAAY,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AAE5D,eAAO,MAAM,kBAAkB,YAAmB;IACjD,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,oBAcA,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBACV,MAAM,GAAG,IAAI,WACtB,YAAY,GAAG,gBAAgB,GAAG,eAAe,qBAQ1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,KAAG,aAStD,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAmB;IAC/C,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,KAAG,QAAQ,aAAa,CAKxB,CAAC"}
|
package/dist/ffmpeg-flags.js
CHANGED
|
@@ -7,33 +7,39 @@ exports.getFfmpegVersion = exports.parseFfmpegVersion = exports.ffmpegHasFeature
|
|
|
7
7
|
const execa_1 = __importDefault(require("execa"));
|
|
8
8
|
const validate_ffmpeg_1 = require("./validate-ffmpeg");
|
|
9
9
|
let buildConfig = null;
|
|
10
|
-
const getFfmpegBuildInfo = async () => {
|
|
10
|
+
const getFfmpegBuildInfo = async (options) => {
|
|
11
|
+
var _a;
|
|
11
12
|
if (buildConfig !== null) {
|
|
12
13
|
return buildConfig;
|
|
13
14
|
}
|
|
14
|
-
const data = await (0, execa_1.default)('ffmpeg', ['-buildconf']
|
|
15
|
+
const data = await (0, execa_1.default)((_a = options.ffmpegExecutable) !== null && _a !== void 0 ? _a : 'ffmpeg', ['-buildconf'], {
|
|
16
|
+
reject: false,
|
|
17
|
+
});
|
|
15
18
|
buildConfig = data.stderr;
|
|
16
19
|
return buildConfig;
|
|
17
20
|
};
|
|
18
21
|
exports.getFfmpegBuildInfo = getFfmpegBuildInfo;
|
|
19
|
-
const ffmpegHasFeature = async (feature) => {
|
|
20
|
-
if (!(0, validate_ffmpeg_1.binaryExists)('ffmpeg')) {
|
|
22
|
+
const ffmpegHasFeature = async (ffmpegExecutable, feature) => {
|
|
23
|
+
if (!(await (0, validate_ffmpeg_1.binaryExists)('ffmpeg', ffmpegExecutable))) {
|
|
21
24
|
return false;
|
|
22
25
|
}
|
|
23
|
-
const config = await (0, exports.getFfmpegBuildInfo)();
|
|
26
|
+
const config = await (0, exports.getFfmpegBuildInfo)({ ffmpegExecutable });
|
|
24
27
|
return config.includes(feature);
|
|
25
28
|
};
|
|
26
29
|
exports.ffmpegHasFeature = ffmpegHasFeature;
|
|
27
30
|
const parseFfmpegVersion = (buildconf) => {
|
|
28
|
-
|
|
31
|
+
var _a;
|
|
32
|
+
const match = buildconf.match(/ffmpeg version ([0-9]+).([0-9]+)(?:.([0-9]+))?/);
|
|
29
33
|
if (!match) {
|
|
30
34
|
return null;
|
|
31
35
|
}
|
|
32
|
-
return [Number(match[1]), Number(match[2]), Number(match[3])];
|
|
36
|
+
return [Number(match[1]), Number(match[2]), Number((_a = match[3]) !== null && _a !== void 0 ? _a : 0)];
|
|
33
37
|
};
|
|
34
38
|
exports.parseFfmpegVersion = parseFfmpegVersion;
|
|
35
|
-
const getFfmpegVersion = async () => {
|
|
36
|
-
const buildInfo = await (0, exports.getFfmpegBuildInfo)(
|
|
39
|
+
const getFfmpegVersion = async (options) => {
|
|
40
|
+
const buildInfo = await (0, exports.getFfmpegBuildInfo)({
|
|
41
|
+
ffmpegExecutable: options.ffmpegExecutable,
|
|
42
|
+
});
|
|
37
43
|
return (0, exports.parseFfmpegVersion)(buildInfo);
|
|
38
44
|
};
|
|
39
45
|
exports.getFfmpegVersion = getFfmpegVersion;
|
package/dist/ffmpeg-flags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ffmpeg-flags.js","sourceRoot":"","sources":["../src/ffmpeg-flags.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,uDAA+C;AAE/C,IAAI,WAAW,GAAkB,IAAI,CAAC;AAI/B,MAAM,kBAAkB,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"ffmpeg-flags.js","sourceRoot":"","sources":["../src/ffmpeg-flags.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,uDAA+C;AAE/C,IAAI,WAAW,GAAkB,IAAI,CAAC;AAI/B,MAAM,kBAAkB,GAAG,KAAK,EAAE,OAExC,EAAE,EAAE;;IACJ,IAAI,WAAW,KAAK,IAAI,EAAE;QACzB,OAAO,WAAW,CAAC;KACnB;IAED,MAAM,IAAI,GAAG,MAAM,IAAA,eAAK,EACvB,MAAA,OAAO,CAAC,gBAAgB,mCAAI,QAAQ,EACpC,CAAC,YAAY,CAAC,EACd;QACC,MAAM,EAAE,KAAK;KACb,CACD,CAAC;IACF,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1B,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAhBW,QAAA,kBAAkB,sBAgB7B;AAEK,MAAM,gBAAgB,GAAG,KAAK,EACpC,gBAA+B,EAC/B,OAA0D,EACzD,EAAE;IACH,IAAI,C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.ts","sourceRoot":"","sources":["../src/get-audio-codec-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAY,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,iBAAiB,UAAW,KAAK,KAAG,MAAM,GAAG,IAoBzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-audio-codec-name.js","sourceRoot":"","sources":["../src/get-audio-codec-name.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAEnC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAiB,EAAE;IAChE,IAAI,CAAC,oBAAS,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;QACnC,4DAA4D;QAC5D,gFAAgF;QAChF,IAAI,KAAK,KAAK,UAAU,EAAE;YACzB,OAAO,WAAW,CAAC;SACnB;QAED,OAAO,KAAK,CAAC;KACb;IAED,IAAI,KAAK,KAAK,KAAK,EAAE;QACpB,OAAO,KAAK,CAAC;KACb;IAED,IAAI,KAAK,KAAK,KAAK,EAAE;QACpB,OAAO,YAAY,CAAC;KACpB;IAED,
|
|
1
|
+
{"version":3,"file":"get-audio-codec-name.js","sourceRoot":"","sources":["../src/get-audio-codec-name.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAEnC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAiB,EAAE;IAChE,IAAI,CAAC,oBAAS,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;QACnC,4DAA4D;QAC5D,gFAAgF;QAChF,IAAI,KAAK,KAAK,UAAU,EAAE;YACzB,OAAO,WAAW,CAAC;SACnB;QAED,OAAO,KAAK,CAAC;KACb;IAED,IAAI,KAAK,KAAK,KAAK,EAAE;QACpB,OAAO,KAAK,CAAC;KACb;IAED,IAAI,KAAK,KAAK,KAAK,EAAE;QACpB,OAAO,YAAY,CAAC;KACpB;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AApBW,QAAA,iBAAiB,qBAoB5B"}
|
|
@@ -5,11 +5,8 @@ declare type GetCompositionsConfig = {
|
|
|
5
5
|
inputProps?: object | null;
|
|
6
6
|
envVariables?: Record<string, string>;
|
|
7
7
|
browserInstance?: PuppeteerBrowser;
|
|
8
|
-
onError?: (errorData: {
|
|
9
|
-
err: Error;
|
|
10
|
-
}) => void;
|
|
11
8
|
browserExecutable?: BrowserExecutable;
|
|
12
9
|
};
|
|
13
|
-
export declare const getCompositions: (
|
|
10
|
+
export declare const getCompositions: (webpackBundle: string, config?: GetCompositionsConfig | undefined) => Promise<TCompMetadata[]>;
|
|
14
11
|
export {};
|
|
15
12
|
//# sourceMappingURL=get-compositions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-compositions.d.ts","sourceRoot":"","sources":["../src/get-compositions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAO,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAC,OAAO,EAAE,iBAAiB,EAAa,aAAa,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"get-compositions.d.ts","sourceRoot":"","sources":["../src/get-compositions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAO,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAC,OAAO,EAAE,iBAAiB,EAAa,aAAa,EAAC,MAAM,UAAU,CAAC;AAK9E,aAAK,qBAAqB,GAAG;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACtC,CAAC;AA+CF,eAAO,MAAM,eAAe,kBACZ,MAAM,iDAEnB,QAAQ,aAAa,EAAE,CA+BzB,CAAC"}
|
package/dist/get-compositions.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getCompositions = void 0;
|
|
4
4
|
const remotion_1 = require("remotion");
|
|
5
5
|
const open_browser_1 = require("./open-browser");
|
|
6
|
+
const serve_static_1 = require("./serve-static");
|
|
6
7
|
const set_props_and_env_1 = require("./set-props-and-env");
|
|
7
8
|
const getPageAndCleanupFn = async ({ passedInInstance, browser, browserExecutable, }) => {
|
|
8
9
|
if (passedInInstance) {
|
|
@@ -32,41 +33,31 @@ const getPageAndCleanupFn = async ({ passedInInstance, browser, browserExecutabl
|
|
|
32
33
|
},
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
|
-
const getCompositions = async (
|
|
36
|
+
const getCompositions = async (webpackBundle, config) => {
|
|
36
37
|
var _a, _b;
|
|
37
38
|
const { page, cleanup } = await getPageAndCleanupFn({
|
|
38
39
|
passedInInstance: config === null || config === void 0 ? void 0 : config.browserInstance,
|
|
39
40
|
browser: (_a = config === null || config === void 0 ? void 0 : config.browser) !== null && _a !== void 0 ? _a : remotion_1.Internals.DEFAULT_BROWSER,
|
|
40
41
|
browserExecutable: (_b = config === null || config === void 0 ? void 0 : config.browserExecutable) !== null && _b !== void 0 ? _b : null,
|
|
41
42
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(_a = config === null || config === void 0 ? void 0 : config.onError) === null || _a === void 0 ? void 0 : _a.call(config, { err: err });
|
|
46
|
-
});
|
|
47
|
-
page.on('pageerror', (err) => {
|
|
48
|
-
var _a;
|
|
49
|
-
console.log(err);
|
|
50
|
-
(_a = config === null || config === void 0 ? void 0 : config.onError) === null || _a === void 0 ? void 0 : _a.call(config, { err: err });
|
|
51
|
-
});
|
|
43
|
+
const { port, close } = await (0, serve_static_1.serveStatic)(webpackBundle);
|
|
44
|
+
page.on('error', console.error);
|
|
45
|
+
page.on('pageerror', console.error);
|
|
52
46
|
await (0, set_props_and_env_1.setPropsAndEnv)({
|
|
53
47
|
inputProps: config === null || config === void 0 ? void 0 : config.inputProps,
|
|
54
48
|
envVariables: config === null || config === void 0 ? void 0 : config.envVariables,
|
|
55
49
|
page,
|
|
56
|
-
|
|
50
|
+
port,
|
|
57
51
|
initialFrame: 0,
|
|
58
52
|
});
|
|
59
|
-
|
|
60
|
-
const pageRes = await page.goto(urlToVisit);
|
|
61
|
-
if (pageRes.status() !== 200) {
|
|
62
|
-
throw new Error(`Error while getting compositions: Tried to go to ${urlToVisit} but the status code was not 200 as expected, but ${pageRes.status()}. Does the site you specified exist?`);
|
|
63
|
-
}
|
|
64
|
-
const isRemotionFn = await page.evaluate('window.getStaticCompositions');
|
|
65
|
-
if (isRemotionFn === undefined) {
|
|
66
|
-
throw new Error(`Error while getting compositions: Tried to go to ${urlToVisit} and verify that it is a Remotion project by checking if window.getStaticCompositions is defined. However, the function was undefined, which indicates that this is not a valid Remotion project. Please check the URL you passed.`);
|
|
67
|
-
}
|
|
53
|
+
await page.goto(`http://localhost:${port}/index.html?evaluation=true`);
|
|
68
54
|
await page.waitForFunction('window.ready === true');
|
|
69
55
|
const result = await page.evaluate('window.getStaticCompositions()');
|
|
56
|
+
// Close web server and don't wait for it to finish,
|
|
57
|
+
// it is slow.
|
|
58
|
+
close().catch((err) => {
|
|
59
|
+
console.error('Was not able to close web server', err);
|
|
60
|
+
});
|
|
70
61
|
cleanup();
|
|
71
62
|
return result;
|
|
72
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-compositions.js","sourceRoot":"","sources":["../src/get-compositions.ts"],"names":[],"mappings":";;;AACA,uCAA8E;AAC9E,iDAA2C;AAC3C,2DAAmD;
|
|
1
|
+
{"version":3,"file":"get-compositions.js","sourceRoot":"","sources":["../src/get-compositions.ts"],"names":[],"mappings":";;;AACA,uCAA8E;AAC9E,iDAA2C;AAC3C,iDAA2C;AAC3C,2DAAmD;AAUnD,MAAM,mBAAmB,GAAG,KAAK,EAAE,EAClC,gBAA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qBX,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ declare global {
|
|
|
7
7
|
remotion_collectAssets: () => TAsset[];
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export { combineVideos } from './combine-videos';
|
|
11
10
|
export { FfmpegVersion } from './ffmpeg-flags';
|
|
12
11
|
export { getCompositions } from './get-compositions';
|
|
13
12
|
export { renderFrames } from './render';
|
|
@@ -16,23 +15,20 @@ export { stitchFramesToVideo } from './stitcher';
|
|
|
16
15
|
export { OnErrorInfo, OnStartData, RenderFramesOutput } from './types';
|
|
17
16
|
export declare const RenderInternals: {
|
|
18
17
|
ensureLocalBrowser: (browser: import("remotion").Browser, preferredBrowserExecutable: import("remotion").BrowserExecutable) => Promise<void>;
|
|
19
|
-
ffmpegHasFeature: (feature: "enable-gpl" | "enable-libx265" | "enable-libvpx") => Promise<boolean>;
|
|
18
|
+
ffmpegHasFeature: (ffmpegExecutable: string | null, feature: "enable-gpl" | "enable-libx265" | "enable-libvpx") => Promise<boolean>;
|
|
20
19
|
getActualConcurrency: (userPreference: number | null) => number;
|
|
21
|
-
getFfmpegVersion: (
|
|
20
|
+
getFfmpegVersion: (options: {
|
|
21
|
+
ffmpegExecutable: string | null;
|
|
22
|
+
}) => Promise<import("./ffmpeg-flags").FfmpegVersion>;
|
|
22
23
|
openBrowser: (browser: import("remotion").Browser, options?: {
|
|
23
24
|
shouldDumpIo?: boolean | undefined;
|
|
24
25
|
browserExecutable?: string | null | undefined;
|
|
25
26
|
} | undefined) => Promise<import("puppeteer-core").Browser>;
|
|
26
|
-
validateFfmpeg: () => Promise<void>;
|
|
27
|
-
binaryExists: (name: "ffmpeg" | "brew") => Promise<boolean>;
|
|
28
|
-
getFfmpegBuildInfo: (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} | undefined) => Promise<{
|
|
32
|
-
port: number;
|
|
33
|
-
close: () => Promise<void>;
|
|
34
|
-
}>;
|
|
35
|
-
addSilentAudioIfNecessary: (videoFile: string) => Promise<void>;
|
|
27
|
+
validateFfmpeg: (customFfmpegBinary: string | null) => Promise<void>;
|
|
28
|
+
binaryExists: (name: "ffmpeg" | "brew", localFFmpeg: string | null) => Promise<boolean>;
|
|
29
|
+
getFfmpegBuildInfo: (options: {
|
|
30
|
+
ffmpegExecutable: string | null;
|
|
31
|
+
}) => Promise<string>;
|
|
36
32
|
validateEvenDimensionsWithCodec: ({ width, height, codec, }: {
|
|
37
33
|
width: number;
|
|
38
34
|
height: number;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAY/C,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,KAAK,EAAE,OAAO,CAAC;QACf,qBAAqB,EAAE,MAAM,aAAa,EAAE,CAAC;QAC7C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAC3C,sBAAsB,EAAE,MAAM,MAAM,EAAE,CAAC;KACvC;CACD;AAED,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AACrE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAU3B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RenderInternals = exports.stitchFramesToVideo = exports.renderStill = exports.renderFrames = exports.getCompositions =
|
|
4
|
-
const add_silent_audio_if_necessary_1 = require("./add-silent-audio-if-necessary");
|
|
3
|
+
exports.RenderInternals = exports.stitchFramesToVideo = exports.renderStill = exports.renderFrames = exports.getCompositions = void 0;
|
|
5
4
|
const ffmpeg_flags_1 = require("./ffmpeg-flags");
|
|
6
5
|
const get_concurrency_1 = require("./get-concurrency");
|
|
7
6
|
const get_local_browser_executable_1 = require("./get-local-browser-executable");
|
|
8
7
|
const open_browser_1 = require("./open-browser");
|
|
9
|
-
const serve_static_1 = require("./serve-static");
|
|
10
8
|
const validate_even_dimensions_with_codec_1 = require("./validate-even-dimensions-with-codec");
|
|
11
9
|
const validate_ffmpeg_1 = require("./validate-ffmpeg");
|
|
12
|
-
var combine_videos_1 = require("./combine-videos");
|
|
13
|
-
Object.defineProperty(exports, "combineVideos", { enumerable: true, get: function () { return combine_videos_1.combineVideos; } });
|
|
14
10
|
var get_compositions_1 = require("./get-compositions");
|
|
15
11
|
Object.defineProperty(exports, "getCompositions", { enumerable: true, get: function () { return get_compositions_1.getCompositions; } });
|
|
16
12
|
var render_1 = require("./render");
|
|
@@ -28,8 +24,6 @@ exports.RenderInternals = {
|
|
|
28
24
|
validateFfmpeg: validate_ffmpeg_1.validateFfmpeg,
|
|
29
25
|
binaryExists: validate_ffmpeg_1.binaryExists,
|
|
30
26
|
getFfmpegBuildInfo: ffmpeg_flags_1.getFfmpegBuildInfo,
|
|
31
|
-
serveStatic: serve_static_1.serveStatic,
|
|
32
|
-
addSilentAudioIfNecessary: add_silent_audio_if_necessary_1.addSilentAudioIfNecessary,
|
|
33
27
|
validateEvenDimensionsWithCodec: validate_even_dimensions_with_codec_1.validateEvenDimensionsWithCodec,
|
|
34
28
|
};
|
|
35
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,iDAIwB;AACxB,uDAAuD;AACvD,iFAAkE;AAClE,iDAA2C;AAC3C,+FAAsF;AACtF,uDAA+D;AAY/D,uDAAmD;AAA3C,mHAAA,eAAe,OAAA;AACvB,mCAAsC;AAA9B,sGAAA,YAAY,OAAA;AACpB,+CAA2C;AAAnC,2GAAA,WAAW,OAAA;AACnB,uCAA+C;AAAvC,+GAAA,mBAAmB,OAAA;AAEd,QAAA,eAAe,GAAG;IAC9B,kBAAkB,EAAlB,iDAAkB;IAClB,gBAAgB,EAAhB,+BAAgB;IAChB,oBAAoB,EAApB,sCAAoB;IACpB,gBAAgB,EAAhB,+BAAgB;IAChB,WAAW,EAAX,0BAAW;IACX,cAAc,EAAd,gCAAc;IACd,YAAY,EAAZ,8BAAY;IACZ,kBAAkB,EAAlB,iCAAkB;IAClB,+BAA+B,EAA/B,qEAA+B;CAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-serve-url.d.ts","sourceRoot":"","sources":["../src/normalize-serve-url.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,iBAAkB,MAAM,KAAG,MAmBxD,CAAC"}
|