Instantly share code, notes, and snippets.

Embed
What would you like to do?
ffmpeg biquad filter
# 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