@remotion/renderer 4.0.345 → 4.0.347
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/esm/index.mjs
CHANGED
|
@@ -20326,7 +20326,7 @@ var stringifyFfmpegFilter = ({
|
|
|
20326
20326
|
const padStart = startInVideoSeconds + (asset.trimLeft === 0 ? presentationTimeOffsetInSeconds : 0);
|
|
20327
20327
|
return {
|
|
20328
20328
|
filter: "[0:a]" + [
|
|
20329
|
-
`aformat=sample_fmts=
|
|
20329
|
+
`aformat=sample_fmts=s16:sample_rates=${DEFAULT_SAMPLE_RATE}`,
|
|
20330
20330
|
...trimAndTempoFilter,
|
|
20331
20331
|
volumeFilter.value === "1" ? null : `volume=${volumeFilter.value}:eval=${volumeFilter.eval}`,
|
|
20332
20332
|
toneFrequency && toneFrequency !== 1 ? `asetrate=${DEFAULT_SAMPLE_RATE}*${toneFrequency},aresample=${DEFAULT_SAMPLE_RATE},atempo=1/${toneFrequency}` : null
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const getActualTrimLeft: ({ fps, trimLeftOffset, seamless, assetDuration, audioStartFrame, trimLeft, playbackRate, }: {
|
|
2
|
+
trimLeft: number;
|
|
3
|
+
audioStartFrame: number;
|
|
4
|
+
fps: number;
|
|
5
|
+
trimLeftOffset: number;
|
|
6
|
+
seamless: boolean;
|
|
7
|
+
assetDuration: number | null;
|
|
8
|
+
playbackRate: number;
|
|
9
|
+
}) => {
|
|
10
|
+
trimLeft: number;
|
|
11
|
+
maxTrim: number | null;
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getActualTrimLeft = void 0;
|
|
4
|
+
const getActualTrimLeft = ({ fps, trimLeftOffset, seamless, assetDuration, audioStartFrame, trimLeft, playbackRate, }) => {
|
|
5
|
+
const sinceStart = trimLeft - audioStartFrame;
|
|
6
|
+
if (!seamless) {
|
|
7
|
+
return {
|
|
8
|
+
trimLeft: audioStartFrame / fps +
|
|
9
|
+
(sinceStart / fps) * playbackRate +
|
|
10
|
+
trimLeftOffset,
|
|
11
|
+
maxTrim: assetDuration,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
if (seamless) {
|
|
15
|
+
return {
|
|
16
|
+
trimLeft: audioStartFrame / fps / playbackRate +
|
|
17
|
+
sinceStart / fps +
|
|
18
|
+
trimLeftOffset,
|
|
19
|
+
maxTrim: assetDuration ? assetDuration / playbackRate : null,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
throw new Error('This should never happen');
|
|
23
|
+
};
|
|
24
|
+
exports.getActualTrimLeft = getActualTrimLeft;
|
|
@@ -120,7 +120,7 @@ const stringifyFfmpegFilter = ({ channels, volume, fps, assetDuration, chunkLeng
|
|
|
120
120
|
return {
|
|
121
121
|
filter: '[0:a]' +
|
|
122
122
|
[
|
|
123
|
-
`aformat=sample_fmts=
|
|
123
|
+
`aformat=sample_fmts=s16:sample_rates=${sample_rate_1.DEFAULT_SAMPLE_RATE}`,
|
|
124
124
|
// The order matters here! For speed and correctness, we first trim the audio
|
|
125
125
|
...trimAndTempoFilter,
|
|
126
126
|
// The timings for volume must include whatever is in atrim, unless the volume
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.347",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"
|
|
21
|
+
"@remotion/streaming": "4.0.347",
|
|
22
|
+
"remotion": "4.0.347"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"react-dom": "19.0.0",
|
|
34
34
|
"@types/ws": "8.5.10",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
|
-
"@remotion/
|
|
37
|
-
"@remotion/
|
|
36
|
+
"@remotion/example-videos": "4.0.347",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.347"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
41
|
-
"@remotion/compositor-
|
|
42
|
-
"@remotion/compositor-linux-arm64-
|
|
43
|
-
"@remotion/compositor-
|
|
44
|
-
"@remotion/compositor-linux-x64-
|
|
45
|
-
"@remotion/compositor-linux-x64-
|
|
46
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
40
|
+
"@remotion/compositor-darwin-arm64": "4.0.347",
|
|
41
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.347",
|
|
42
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.347",
|
|
43
|
+
"@remotion/compositor-darwin-x64": "4.0.347",
|
|
44
|
+
"@remotion/compositor-linux-x64-musl": "4.0.347",
|
|
45
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.347",
|
|
46
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.347"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|