[FFmpeg-user] Replace part of the audio

Paul B Mahol onemda at gmail.com
Sat Jan 21 18:05:16 EET 2023


On 1/19/23, Michael Koch <astroelectronic at t-online.de> wrote:
> Am 19.01.2023 um 15:49 schrieb Alexander Bieliaev via ffmpeg-user:
>> How can I replace a part of the audio from and to a specific time with
>> some
>> other audio/sound (I want to replace it with beep in this case)?
>>
>
> Here is an example:
>
> ffmpeg -lavfi sine=500:d=10 -y audio1.wav
> ffmpeg -lavfi sine=2000:d=10 -y audio2.wav
>
> ffmpeg -i audio1.wav -i audio2.wav -lavfi
> [0]volume='1-between(t,4,6)':eval=frame[a];[1]volume='between(t,4,6)':eval=frame[b];[a][b]amix
>
> -y out.wav

That is never going to give smooth transitions.

Also overly complicated as can be simplified with commands to to amix filter.

>
> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list