Skip to content

Commit 99ea214

Browse files
committed
Remove irnorm option from afir filter for ffmpeg 6.x compatibility
The irnorm option was added in ffmpeg 7.x. Dropping it makes the bandpass filter work with Ubuntu's ffmpeg 6.1.1 package without affecting detection results.
1 parent 7a6d158 commit 99ea214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function bandpassFilter(rawPath, lowFreq, highFreq, sampleRate = SAMPLE_R
8585
"-i",
8686
rawPath,
8787
"-filter_complex",
88-
`sinc=hp=${lowFreq}:lp=${highFreq}:r=${sampleRate}[ir];[0:a][ir]afir=irnorm=-1`,
88+
`sinc=hp=${lowFreq}:lp=${highFreq}:r=${sampleRate}[ir];[0:a][ir]afir`,
8989
"-f",
9090
"s16le",
9191
"-acodec",

0 commit comments

Comments
 (0)