🎥 Make videos programmatically with React
add apad for now
Jonny Burger20f424063669
diff --git a/packages/example/out.mp4 b/packages/example/out.mp4new file mode 100644index 0000000000..3319e445f0Binary files /dev/null and b/packages/example/out.mp4 differdiff --git a/packages/renderer/src/stringify-ffmpeg-filter.ts b/packages/renderer/src/stringify-ffmpeg-filter.tsindex 39462e2f8b..c2364d6b77 100644--- a/packages/renderer/src/stringify-ffmpeg-filter.ts+++ b/packages/renderer/src/stringify-ffmpeg-filter.ts@@ -35,6 +35,9 @@ export const stringifyFfmpegFilter = ({return (`[${streamIndex}:a]` +[+ // TODO: This will solve the issue of stitching videos together reported by Olli+ // on Discord. But will it introduce other problems where the audio is not right? Pending investigation+ 'apad',`atrim=${trimLeft}:${trimRight}`,// For n channels, we delay n + 1 channels.// This is because `ffprobe` for some audio files reports the wrong amount