Skip to content

🎥 Make videos programmatically with React

Update calculate-ffmpeg-filters.ts

Jonny Burger807344645b23
diff --git a/packages/renderer/src/calculate-ffmpeg-filters.ts b/packages/renderer/src/calculate-ffmpeg-filters.ts
index b601a2cc08..99cb89958a 100644
--- a/packages/renderer/src/calculate-ffmpeg-filters.ts
+++ b/packages/renderer/src/calculate-ffmpeg-filters.ts
@@ -21,8 +21,7 @@ export const calculateFfmpegFilter = ({
const assetTrimLeft = asset.trimLeft / asset.playbackRate / fps;
const assetTrimRight =
- (asset.trimLeft + asset.duration) / asset.playbackRate / fps;
-
+ assetTrimLeft + (asset.duration * asset.playbackRate) / fps;
return stringifyFfmpegFilter({
channels,
startInVideo: asset.startInVideo,