Skip to content

🎥 Make videos programmatically with React

Use `s16` for preprocessing audio

Jonny Burger4f1ddf44c8b8
diff --git a/packages/renderer/src/stringify-ffmpeg-filter.ts b/packages/renderer/src/stringify-ffmpeg-filter.ts
index 6050b0ad4c..d307ef2d1e 100644
--- a/packages/renderer/src/stringify-ffmpeg-filter.ts
+++ b/packages/renderer/src/stringify-ffmpeg-filter.ts
@@ -229,7 +229,7 @@ export const stringifyFfmpegFilter = ({
filter:
'[0:a]' +
[
- `aformat=sample_fmts=s32:sample_rates=${DEFAULT_SAMPLE_RATE}`,
+ `aformat=sample_fmts=s16:sample_rates=${DEFAULT_SAMPLE_RATE}`,
// The order matters here! For speed and correctness, we first trim the audio
...trimAndTempoFilter,
// The timings for volume must include whatever is in atrim, unless the volume