🎥 Make videos programmatically with React
Merge branch 'main' into audio-pipeline-2
Jonny Burger95cc2c8ebae6
diff --cc packages/renderer/src/stitch-frames-to-video.tsindex 539a97b98f,e8279ecf95..dd6e0b5c52--- a/packages/renderer/src/stitch-frames-to-video.ts+++ b/packages/renderer/src/stitch-frames-to-video.ts@@@ -160,13 -141,12 +160,15 @@@ export const spawnFfmpeg = async (optioInternals.validateSelectedCrfAndCodecCombination(crf, codec);Internals.validateSelectedPixelFormatAndCodecCombination(pixelFormat, codec);- const {complexFilterFlag, cleanup, assetPositions} = await getAssetsData(- options- );+ const audio = await getAssetsData(options);+++ // TODO: If only audio should be output, finish now+ if (isAudioOnly) {+ throw new Error('audio only not implemented');+ }- // TODO: If only audio should be output, finish now+ const expectedFrames = options.assetsInfo.assets.length;+const ffmpegArgs = [['-r', String(options.fps)],...(options.internalOptions?.preEncodedFileLocation