Last active
August 16, 2022 18:27
-
-
Save 3ll3d00d/40be3ec6e1a5c0466ae324350be65cb0 to your computer and use it in GitHub Desktop.
ffmpeg biquad filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stereo input, split into mono streams, convert to dbl sample format, filtered, convert back to s32 and then merged back into stereo | |
ffmpeg -i Sine_20_48k_24-bit.wav -filter_complex "[0:a]pan=1c|c0=c0[L];[L]aformat=sample_fmts=dbl[Lin];[Lin]biquad=b0=1.00080054343984:b1=-1.99150225042309:b2=0.990752403334702:a0=1.0:a1=-1.99150965346467:a2=0.991545543732965[L1];[L1]biquad=b0=0.999200096917323:b1=-1.98991663875369:b2=0.990752403395918:a0=1.0:a1=-1.98990924163382:a2=0.989959897433105[L2];[L2]aformat=sample_fmts=s32:sample_rates=48000:channel_layouts=mono[Lout];[0:a]pan=1c|c0=c1[Rin];[Lout][Rin]amerge=inputs=2,pan=stereo|c0=c0|c1=c1[Wout]" -map "[Wout]" -acodec "pcm_s24le" out.wav -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment