[FFmpeg-user] silenceremove use

To ny tonynederpel at hotmail.com
Wed Feb 19 13:42:51 EET 2020


How do you figure results are correct?

ffmpeg -i '/home/tony/test/Recording_53.wav' -af silenceremove=1:0:-20dB recording53_silences_removed.wav
this one does'nt remove anything. 

ffmpeg -i '/home/tony/test/Recording_53.wav' -af silenceremove=0:0:0:0:0:-1:0:-20dB:0:0:1:0 recording53_silences_removed.wav
this one leaves silences of more than a minute. Even though the thresholds are set to remove everything below -20dB.

ffmpeg -i '/home/tony/test/Recording_53.wav' -af silenceremove=start_periods=1:start_duration=0:start_threshold=-20dB:start_silence=3:start_mode=any:stop_periods=2:stop_duration=3:stop_threshold=-20dB:stop_silence=3:stop_mode=any:detection=peak:window=10 recording53_silences_removed.wav
and this leaves nothing even though there as sounds louder than -20dB.


Van: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> namens Paul B Mahol <onemda at gmail.com>

Verzonden: woensdag 19 februari 2020 12:16

Aan: FFmpeg user questions <ffmpeg-user at ffmpeg.org>

Onderwerp: Re: [FFmpeg-user] silenceremove use

 


On 2/19/20, To ny <tonynederpel at hotmail.com> wrote:

> Hello, and thanks so much for your reply.

>

> I was actually only requesting help for the silenceremove arguments (or

> settings or

> however they're called) on the commandline.

>

> The -20 dB threshold will not be my final settings. It was just to make sure

> something is removed.

>

> I don't know if you only read my additions to the original question (be

> replying

> to my first original email) or did read my original mail. I tried a few

> variations

> of the silenceremove filter arguments but with unexpected results.



Silenceremove results are correct and your file(s) are broken.



>

> Kind regards,

>

> Tony

>

> ________________________________

> Van: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> namens Ted Park

> <kumowoon1025 at gmail.com>

> Verzonden: woensdag 19 februari 2020 10:11

> Aan: FFmpeg user questions <ffmpeg-user at ffmpeg.org>

> Onderwerp: Re: [FFmpeg-user] silenceremove use

>

>> Is there anyone who has experience with the silenceremove filter? I'm

>> trying to remove long silences from recordings i made on my phone. The

>> silences are actually a constant noise because of the microphone gain is

>> set to 5.0x. (The playback meter in Audacity says the noise is around -48

>> to 42 dB). It is around 9 hours in duration. 1,1 GB large, signed 16 bit

>> little endian mono 16 kHz wave file. Audacity says it's 32 bit float wave

>> file though.

>

> Hey there,

> As you’ve noticed you pretty much need to know the basic “profile,” I guess,

> of the silence in your audio for best results. You could use the show volume

> filter with ffplay,

> % ffplay -f lavfi -i “amovie=$INPUT,showvolume"

> To get a general idea of what the noise is like, and apply the options

> accordingly.

> e.g.     Use the levels of the silence/noise sections for the level options,

> setting -20db would cut out a lot more than noise, I think; see if there are

> short periods of noise, other than background noise, but still noise, and

> see how long those are to set a value for the duration options; also see if

> using peak and a window of 10 seconds makes sense (It might not, even if you

> set a more sensible value for the threshold, basically I think that would

> make it treat anything as silence if in a 10 second window it rises above

> the threshold even once)

>

> _______________________________________________

> 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".

> _______________________________________________

> 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".

_______________________________________________

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