[FFmpeg-user] Dim audio in parts where there is a lot of wind

MacFH - C E Macfarlane - News news at macfh.co.uk
Fri Jun 2 20:47:33 EEST 2023


On 02/06/2023 18:10, Paul B Mahol wrote:
>
> On Fri, Jun 2, 2023 at 7:05 PM MacFH - C E Macfarlane - News <
>>
>> You can combine it with fades.  For example the following will fade out
>> over 2s, mute for 2s, fade in for 2s:
>>
>> -af
>>
>> "afade=t=out:st=0:d=2,volume=enable='between(t,2,4)':volume=0,afade=t=in:st=4:d=2"
>>
>> Notes:
>>
>> I don't know if it's possible to fade to or from a given level other
>> than zero, but perhaps, given the above as a starting point, someone
>> else can help further with that.
> 
> If you use more recent version, there is silence and unity options to set:
> 
> https://ffmpeg.org/ffmpeg-filters.html#afade-1

Thanks, so if I've understood that correctly in principle the above 
could be changed to something like ...

"afade=t=out:st=0:d=2:silence=0.5,volume=enable='between(t,2,4)':volume=0.5,afade=t=in:st=4:d=2:silence=0.5"

... to suite the OP's needs?


More information about the ffmpeg-user mailing list