@remotion/cli 3.3.34 → 3.3.36
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/dist/config/log.d.ts +1 -1
- package/dist/editor/components/Checkbox.d.ts +5 -0
- package/dist/editor/components/Checkbox.js +38 -0
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +43 -0
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +15 -0
- package/dist/editor/components/RenderModal/CrfSetting.js +56 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +14 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +42 -0
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/MutedSetting.js +14 -0
- package/dist/editor/components/RenderModal/QualitySetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/QualitySetting.js +27 -0
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/ScaleSetting.js +27 -0
- package/dist/editor/components/RenderModal/layout.d.ts +4 -0
- package/dist/editor/components/RenderModal/layout.js +25 -0
- package/dist/get-cli-options.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +10 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.js +13 -0
- package/package.json +7 -7
package/dist/config/log.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LogLevel } from '@remotion/renderer';
|
|
2
|
-
export declare const getLogLevel: () => "
|
|
2
|
+
export declare const getLogLevel: () => "error" | "verbose" | "info" | "warn";
|
|
3
3
|
export declare const setLogLevel: (newLogLevel: LogLevel) => void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Checkbox = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const colors_1 = require("../helpers/colors");
|
|
6
|
+
const Checkmark_1 = require("../icons/Checkmark");
|
|
7
|
+
const size = 20;
|
|
8
|
+
const background = {
|
|
9
|
+
height: size,
|
|
10
|
+
width: size,
|
|
11
|
+
position: 'relative',
|
|
12
|
+
};
|
|
13
|
+
const input = {
|
|
14
|
+
appearance: 'none',
|
|
15
|
+
background: colors_1.INPUT_BACKGROUND,
|
|
16
|
+
border: '1px solid ' + colors_1.INPUT_BORDER_COLOR_UNHOVERED,
|
|
17
|
+
height: size,
|
|
18
|
+
width: size,
|
|
19
|
+
top: 0,
|
|
20
|
+
left: 0,
|
|
21
|
+
position: 'absolute',
|
|
22
|
+
margin: 0,
|
|
23
|
+
};
|
|
24
|
+
const box = {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
height: size,
|
|
30
|
+
width: size,
|
|
31
|
+
top: 0,
|
|
32
|
+
left: 0,
|
|
33
|
+
pointerEvents: 'none',
|
|
34
|
+
};
|
|
35
|
+
const Checkbox = ({ checked, onChange }) => {
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: background, children: [(0, jsx_runtime_1.jsx)("input", { style: input, type: 'checkbox', checked: checked, onChange: onChange }), (0, jsx_runtime_1.jsx)("div", { style: box, children: checked ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null })] }));
|
|
37
|
+
};
|
|
38
|
+
exports.Checkbox = Checkbox;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrentCompositionKeybindings = exports.TitleUpdater = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const remotion_1 = require("remotion");
|
|
6
|
+
const use_keybinding_1 = require("../helpers/use-keybinding");
|
|
7
|
+
const TitleUpdater = () => {
|
|
8
|
+
const video = remotion_1.Internals.useVideo();
|
|
9
|
+
(0, react_1.useEffect)(() => {
|
|
10
|
+
if (!video) {
|
|
11
|
+
document.title = 'Remotion Preview';
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
document.title = `${video.id} / ${window.remotion_projectName} - Remotion Preview`;
|
|
15
|
+
}, [video]);
|
|
16
|
+
return null;
|
|
17
|
+
};
|
|
18
|
+
exports.TitleUpdater = TitleUpdater;
|
|
19
|
+
const CurrentCompositionKeybindings = () => {
|
|
20
|
+
const keybindings = (0, use_keybinding_1.useKeybinding)();
|
|
21
|
+
const video = remotion_1.Internals.useVideo();
|
|
22
|
+
const openRenderModal = (0, react_1.useCallback)(() => {
|
|
23
|
+
if (!video) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
const renderButton = document.getElementById('render-modal-button');
|
|
27
|
+
renderButton.click();
|
|
28
|
+
}, [video]);
|
|
29
|
+
(0, react_1.useEffect)(() => {
|
|
30
|
+
const binding = keybindings.registerKeybinding({
|
|
31
|
+
event: 'keydown',
|
|
32
|
+
key: 'r',
|
|
33
|
+
commandCtrlKey: false,
|
|
34
|
+
callback: openRenderModal,
|
|
35
|
+
preventDefault: true,
|
|
36
|
+
});
|
|
37
|
+
return () => {
|
|
38
|
+
binding.unregister();
|
|
39
|
+
};
|
|
40
|
+
}, [keybindings, openRenderModal]);
|
|
41
|
+
return null;
|
|
42
|
+
};
|
|
43
|
+
exports.CurrentCompositionKeybindings = CurrentCompositionKeybindings;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Codec } from '@remotion/renderer';
|
|
3
|
+
export declare const useCrfState: (codec: Codec) => {
|
|
4
|
+
crf: number;
|
|
5
|
+
setCrf: (updater: (prev: number) => number) => void;
|
|
6
|
+
minCrf: number;
|
|
7
|
+
maxCrf: number;
|
|
8
|
+
shouldDisplayOption: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const CrfSetting: React.FC<{
|
|
11
|
+
crf: number;
|
|
12
|
+
setCrf: (value: (prevVal: number) => number) => void;
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CrfSetting = exports.useCrfState = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const client_1 = require("@remotion/renderer/client");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const InputDragger_1 = require("../NewComposition/InputDragger");
|
|
8
|
+
const RemInput_1 = require("../NewComposition/RemInput");
|
|
9
|
+
const layout_1 = require("./layout");
|
|
10
|
+
const getDefaultCrfState = () => {
|
|
11
|
+
return client_1.BrowserSafeApis.validCodecs
|
|
12
|
+
.map((c) => {
|
|
13
|
+
return [c, client_1.BrowserSafeApis.getDefaultCrfForCodec(c)];
|
|
14
|
+
})
|
|
15
|
+
.reduce((acc, [codec, crf]) => {
|
|
16
|
+
return {
|
|
17
|
+
...acc,
|
|
18
|
+
[codec]: crf,
|
|
19
|
+
};
|
|
20
|
+
}, {});
|
|
21
|
+
};
|
|
22
|
+
const useCrfState = (codec) => {
|
|
23
|
+
const [state, setState] = (0, react_1.useState)(() => getDefaultCrfState());
|
|
24
|
+
const range = client_1.BrowserSafeApis.getValidCrfRanges(codec);
|
|
25
|
+
return {
|
|
26
|
+
crf: state[codec],
|
|
27
|
+
setCrf: (updater) => {
|
|
28
|
+
setState((q) => {
|
|
29
|
+
return {
|
|
30
|
+
...q,
|
|
31
|
+
[codec]: updater(q[codec]),
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
minCrf: range[0],
|
|
36
|
+
maxCrf: range[1],
|
|
37
|
+
shouldDisplayOption: range[0] !== range[1],
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.useCrfState = useCrfState;
|
|
41
|
+
const CrfSetting = ({ crf, setCrf, min, max }) => {
|
|
42
|
+
const onCrfSetDirectly = (0, react_1.useCallback)((newCrf) => {
|
|
43
|
+
setCrf(() => newCrf);
|
|
44
|
+
}, [setCrf]);
|
|
45
|
+
const onCrfChanged = (0, react_1.useCallback)((e) => {
|
|
46
|
+
setCrf((q) => {
|
|
47
|
+
const newCrf = parseFloat(e);
|
|
48
|
+
if (Number.isNaN(newCrf)) {
|
|
49
|
+
return q;
|
|
50
|
+
}
|
|
51
|
+
return Math.min(max, Math.max(newCrf, min));
|
|
52
|
+
});
|
|
53
|
+
}, [max, min, setCrf]);
|
|
54
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "CRF" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: crf, onTextChange: onCrfChanged, placeholder: `${min}-${max}`, onValueChange: onCrfSetDirectly, name: "crf", step: 1, min: min, max: max }) }) })] }));
|
|
55
|
+
};
|
|
56
|
+
exports.CrfSetting = CrfSetting;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnforceAudioTrackSetting = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const Checkbox_1 = require("../Checkbox");
|
|
7
|
+
const layout_1 = require("./layout");
|
|
8
|
+
const EnforceAudioTrackSetting = ({ enforceAudioTrack, setEnforceAudioTrack }) => {
|
|
9
|
+
const onEnforceAudioTrackChanged = (0, react_1.useCallback)((e) => {
|
|
10
|
+
setEnforceAudioTrack(e.target.checked);
|
|
11
|
+
}, [setEnforceAudioTrack]);
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Enforce Audio Track" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: enforceAudioTrack, onChange: onEnforceAudioTrackChanged }) })] }));
|
|
13
|
+
};
|
|
14
|
+
exports.EnforceAudioTrackSetting = EnforceAudioTrackSetting;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FrameRangeSetting: React.FC<{
|
|
3
|
+
startFrame: number;
|
|
4
|
+
endFrame: number;
|
|
5
|
+
setEndFrame: React.Dispatch<React.SetStateAction<number | null>>;
|
|
6
|
+
setStartFrame: React.Dispatch<React.SetStateAction<number | null>>;
|
|
7
|
+
durationInFrames: number;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrameRangeSetting = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const InputDragger_1 = require("../NewComposition/InputDragger");
|
|
7
|
+
const RemInput_1 = require("../NewComposition/RemInput");
|
|
8
|
+
const layout_1 = require("./layout");
|
|
9
|
+
const FrameRangeSetting = ({ startFrame, endFrame, setEndFrame, durationInFrames, setStartFrame }) => {
|
|
10
|
+
const maxStartFrame = endFrame - 1;
|
|
11
|
+
const minStartFrame = 0;
|
|
12
|
+
const minEndFrame = startFrame + 1;
|
|
13
|
+
const maxEndFrame = durationInFrames - 1;
|
|
14
|
+
const onStartFrameChangedDirectly = (0, react_1.useCallback)((newStartFrame) => {
|
|
15
|
+
setStartFrame(newStartFrame);
|
|
16
|
+
}, [setStartFrame]);
|
|
17
|
+
const onEndFrameChangedDirectly = (0, react_1.useCallback)((newEndFrame) => {
|
|
18
|
+
setEndFrame(newEndFrame);
|
|
19
|
+
}, [setEndFrame]);
|
|
20
|
+
const onStartFrameChanged = (0, react_1.useCallback)((e) => {
|
|
21
|
+
setStartFrame((q) => {
|
|
22
|
+
const newStartFrame = parseInt(e, 10);
|
|
23
|
+
if (Number.isNaN(newStartFrame)) {
|
|
24
|
+
return q;
|
|
25
|
+
}
|
|
26
|
+
const newStartFrameClamped = Math.min(maxStartFrame, Math.max(newStartFrame, minStartFrame));
|
|
27
|
+
return newStartFrameClamped;
|
|
28
|
+
});
|
|
29
|
+
}, [maxStartFrame, setStartFrame]);
|
|
30
|
+
const onEndFrameChanged = (0, react_1.useCallback)((e) => {
|
|
31
|
+
setEndFrame((q) => {
|
|
32
|
+
const newEndFrame = parseInt(e, 10);
|
|
33
|
+
if (Number.isNaN(newEndFrame)) {
|
|
34
|
+
return q;
|
|
35
|
+
}
|
|
36
|
+
const newEndFrameClamped = Math.min(maxEndFrame, Math.max(newEndFrame, minEndFrame));
|
|
37
|
+
return newEndFrameClamped;
|
|
38
|
+
});
|
|
39
|
+
}, [maxEndFrame, minEndFrame, setEndFrame]);
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Frame range" }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.rightRow, children: [(0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: startFrame, onTextChange: onStartFrameChanged, placeholder: `${minStartFrame}-${maxStartFrame}`, onValueChange: onStartFrameChangedDirectly, name: "startFrame", step: 1, min: minStartFrame, max: maxStartFrame }) }), (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: endFrame, onTextChange: onEndFrameChanged, placeholder: `${minEndFrame}-${maxEndFrame}`, onValueChange: onEndFrameChangedDirectly, name: "endFrame", step: 1, min: minEndFrame, max: maxEndFrame }) })] })] }));
|
|
41
|
+
};
|
|
42
|
+
exports.FrameRangeSetting = FrameRangeSetting;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MutedSetting = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const Checkbox_1 = require("../Checkbox");
|
|
7
|
+
const layout_1 = require("./layout");
|
|
8
|
+
const MutedSetting = ({ muted, setMuted }) => {
|
|
9
|
+
const onMutedChanged = (0, react_1.useCallback)((e) => {
|
|
10
|
+
setMuted(e.target.checked);
|
|
11
|
+
}, [setMuted]);
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Muted" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: muted, onChange: onMutedChanged }) })] }));
|
|
13
|
+
};
|
|
14
|
+
exports.MutedSetting = MutedSetting;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QualitySetting = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const InputDragger_1 = require("../NewComposition/InputDragger");
|
|
7
|
+
const RemInput_1 = require("../NewComposition/RemInput");
|
|
8
|
+
const layout_1 = require("./layout");
|
|
9
|
+
const MIN_QUALITY = 1;
|
|
10
|
+
const MAX_QUALITY = 100;
|
|
11
|
+
const QualitySetting = ({ quality, setQuality }) => {
|
|
12
|
+
const onQualityChangedDirectly = (0, react_1.useCallback)((newQuality) => {
|
|
13
|
+
setQuality(newQuality);
|
|
14
|
+
}, [setQuality]);
|
|
15
|
+
const onQualityChanged = (0, react_1.useCallback)((e) => {
|
|
16
|
+
setQuality((q) => {
|
|
17
|
+
const newQuality = parseInt(e, 10);
|
|
18
|
+
if (Number.isNaN(newQuality)) {
|
|
19
|
+
return q;
|
|
20
|
+
}
|
|
21
|
+
const newQualityClamped = Math.min(MAX_QUALITY, Math.max(newQuality, MIN_QUALITY));
|
|
22
|
+
return newQualityClamped;
|
|
23
|
+
});
|
|
24
|
+
}, [setQuality]);
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "JPEG Quality" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: quality, onTextChange: onQualityChanged, placeholder: `${MIN_QUALITY}-${MAX_QUALITY}`, onValueChange: onQualityChangedDirectly, name: "quality", step: 1, min: MIN_QUALITY, max: MAX_QUALITY }) }) })] }));
|
|
26
|
+
};
|
|
27
|
+
exports.QualitySetting = QualitySetting;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScaleSetting = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const InputDragger_1 = require("../NewComposition/InputDragger");
|
|
7
|
+
const RemInput_1 = require("../NewComposition/RemInput");
|
|
8
|
+
const layout_1 = require("./layout");
|
|
9
|
+
const MIN_SCALE = 0.1;
|
|
10
|
+
const MAX_SCALE = 10;
|
|
11
|
+
const ScaleSetting = ({ scale, setScale }) => {
|
|
12
|
+
const onScaleSetDirectly = (0, react_1.useCallback)((newScale) => {
|
|
13
|
+
setScale(newScale);
|
|
14
|
+
}, [setScale]);
|
|
15
|
+
const onScaleChanged = (0, react_1.useCallback)((e) => {
|
|
16
|
+
setScale((q) => {
|
|
17
|
+
const newScale = parseFloat(e);
|
|
18
|
+
if (Number.isNaN(newScale)) {
|
|
19
|
+
return q;
|
|
20
|
+
}
|
|
21
|
+
const newScaleClamped = Math.min(MAX_SCALE, Math.max(newScale, MIN_SCALE));
|
|
22
|
+
return newScaleClamped;
|
|
23
|
+
});
|
|
24
|
+
}, [setScale]);
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Scale" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: scale, onTextChange: onScaleChanged, placeholder: `${MIN_SCALE}-${MAX_SCALE}`, onValueChange: onScaleSetDirectly, name: "scale", step: 0.1, min: MIN_SCALE, max: MAX_SCALE }) }) })] }));
|
|
26
|
+
};
|
|
27
|
+
exports.ScaleSetting = ScaleSetting;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rightRow = exports.label = exports.optionRow = void 0;
|
|
4
|
+
const colors_1 = require("../../helpers/colors");
|
|
5
|
+
exports.optionRow = {
|
|
6
|
+
display: 'flex',
|
|
7
|
+
flexDirection: 'row',
|
|
8
|
+
alignItems: 'flex-start',
|
|
9
|
+
minHeight: 40,
|
|
10
|
+
paddingLeft: 16,
|
|
11
|
+
paddingRight: 16,
|
|
12
|
+
};
|
|
13
|
+
exports.label = {
|
|
14
|
+
width: 150,
|
|
15
|
+
fontSize: 14,
|
|
16
|
+
lineHeight: '40px',
|
|
17
|
+
color: colors_1.LIGHT_TEXT,
|
|
18
|
+
};
|
|
19
|
+
exports.rightRow = {
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'row',
|
|
22
|
+
justifyContent: 'flex-end',
|
|
23
|
+
alignSelf: 'center',
|
|
24
|
+
flex: 1,
|
|
25
|
+
};
|
|
@@ -30,7 +30,7 @@ export declare const getCliOptions: (options: {
|
|
|
30
30
|
browserExecutable: BrowserExecutable;
|
|
31
31
|
ffmpegExecutable: import("@remotion/renderer").FfmpegExecutable;
|
|
32
32
|
ffprobeExecutable: import("@remotion/renderer").FfmpegExecutable;
|
|
33
|
-
logLevel: "
|
|
33
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
34
34
|
scale: number;
|
|
35
35
|
chromiumOptions: ChromiumOptions;
|
|
36
36
|
overwrite: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export declare const CliInternals: {
|
|
|
88
88
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
89
89
|
ffmpegExecutable: import("@remotion/renderer").FfmpegExecutable;
|
|
90
90
|
ffprobeExecutable: import("@remotion/renderer").FfmpegExecutable;
|
|
91
|
-
logLevel: "
|
|
91
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
92
92
|
scale: number;
|
|
93
93
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
94
94
|
overwrite: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Codec } from '@remotion/renderer';
|
|
2
|
+
import type { RenderType } from '../../editor/components/RenderModal/RenderModal';
|
|
3
|
+
export declare const getDefaultCodecs: ({ defaultCodec, isStill, }: {
|
|
4
|
+
defaultCodec: Codec;
|
|
5
|
+
isStill: boolean;
|
|
6
|
+
}) => {
|
|
7
|
+
initialAudioCodec: Codec;
|
|
8
|
+
initialVideoCodec: Codec;
|
|
9
|
+
initialRenderType: RenderType;
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefaultCodecs = void 0;
|
|
4
|
+
const client_1 = require("@remotion/renderer/client");
|
|
5
|
+
const getDefaultCodecs = ({ defaultCodec, isStill, }) => {
|
|
6
|
+
const isAudioCodec = client_1.BrowserSafeApis.isAudioCodec(defaultCodec);
|
|
7
|
+
return {
|
|
8
|
+
initialAudioCodec: isAudioCodec ? defaultCodec : 'mp3',
|
|
9
|
+
initialVideoCodec: isAudioCodec ? 'h264' : defaultCodec,
|
|
10
|
+
initialRenderType: isStill ? 'still' : isAudioCodec ? 'audio' : 'video',
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.getDefaultCodecs = getDefaultCodecs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.36",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@remotion/bundler": "3.3.
|
|
26
|
-
"@remotion/media-utils": "3.3.
|
|
27
|
-
"@remotion/player": "3.3.
|
|
28
|
-
"@remotion/renderer": "3.3.
|
|
25
|
+
"@remotion/bundler": "3.3.36",
|
|
26
|
+
"@remotion/media-utils": "3.3.36",
|
|
27
|
+
"@remotion/player": "3.3.36",
|
|
28
|
+
"@remotion/renderer": "3.3.36",
|
|
29
29
|
"better-opn": "2.1.1",
|
|
30
30
|
"dotenv": "9.0.2",
|
|
31
31
|
"memfs": "3.4.3",
|
|
32
32
|
"minimist": "1.2.6",
|
|
33
33
|
"prompts": "2.4.1",
|
|
34
|
-
"remotion": "3.3.
|
|
34
|
+
"remotion": "3.3.36",
|
|
35
35
|
"semver": "7.3.5",
|
|
36
36
|
"source-map": "0.6.1"
|
|
37
37
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "623bf1e883e7b26b9d02458037c930ccbe8857e4"
|
|
75
75
|
}
|