🎥 Make videos programmatically with React
only copy compositor
Jonny Burgera5abb93eba1f
diff --git a/packages/lambda/src/admin/bundle-lambda.ts b/packages/lambda/src/admin/bundle-lambda.tsindex 555801affb..4285022999 100644--- a/packages/lambda/src/admin/bundle-lambda.ts+++ b/packages/lambda/src/admin/bundle-lambda.ts@@ -1,5 +1,5 @@import {BundlerInternals} from '@remotion/bundler';-import {binaryPath, ffmpegCwd} from '@remotion/compositor-linux-arm64-gnu';+import {binaryPath} from '@remotion/compositor-linux-arm64-gnu';import fs from 'fs';import path from 'path';import {quit} from '../cli/helpers/quit';@@ -38,7 +38,6 @@ const bundleLambda = async () => {const compositorFile = `${outdir}/compositor`;fs.copyFileSync(binaryPath, compositorFile);- fs.cpSync(ffmpegCwd, `${outdir}/ffmpeg`, {recursive: true});await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);fs.rmSync(outdir, {recursive: true});diff --git a/packages/renderer/src/compositor/get-executable-path.ts b/packages/renderer/src/compositor/get-executable-path.tsindex 3ad5d84923..e4f6e8a4f2 100644--- a/packages/renderer/src/compositor/get-executable-path.ts+++ b/packages/renderer/src/compositor/get-executable-path.ts@@ -7,8 +7,24 @@ function isMusl() {}export const getExecutablePath = (- type: 'compositor' | 'ffmpeg' | 'ffprobe' | 'ffmpeg-cwd'+ type: 'compositor' | 'ffmpeg' | 'ffprobe' | 'ffmpeg-cwd',+ isLambda: boolean): string => {+ if (isLambda) {+ if (type === 'ffmpeg') {+ return '/opt/ffmpeg/remotion/bin/ffmpeg';+ }++ if (type === 'ffprobe') {+ return '/opt/ffmpeg/remotion/bin/ffprobe';+ }++ if (type === 'ffmpeg-cwd') {+ return '/opt/ffmpeg';+ }+ // Fallthrough for compositor+ }+const key =type === 'compositor'? 'binaryPath'