[FFmpeg-user] Replace multiple parts of audio with beeps

Michael Koch astroelectronic at t-online.de
Wed Feb 1 12:33:36 EET 2023


Am 01.02.2023 um 11:27 schrieb Alexander Bieliaev via ffmpeg-user:
> How can I replace multiple parts of audio with generated beeps?
> I tried next command:
>
> -filter_complex "
> [0]volume=0:enable='between(t,10,15)+between(t,20,30)'[main];
> sine=f=800,
> pan=stereo|FL=c0|FR=c0,
> volume=0:enable='between(t,0,10)+between(t,15,20)'[beep];
> [main][beep]amix=inputs=2:duration=first"
>
> It successfully replaced parts between 10 - 15 seconds and 20 - 30 seconds
> but the beep keeps playing till the end of the audio.
>

I think you also must make the beep silent after t=30:

volume=0:enable='between(t,0,10)+between(t,15,20)+gt(t,30)'

Michael



More information about the ffmpeg-user mailing list