ferreum / mpv-skipsilence

Increase playback speed during silence - a revolution in attention-deficit induction technology.

Home Page:https://codeberg.org/ferreum/mpv-skipsilence/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

threshold can go positive

markifi opened this issue · comments

i don't know whether this is even an issue by itself, but it is possible to set silence threshold above 0, which seems a bit silly although it doesn't hinder the operation of the lua script.

anyway if it wasn't worth a thread, apologies.

This may seem silly for most usecases, but there are actually formats that allow going above 0 dB. For example the fltp format, which is what is used a lot for internal processing, is the 32 bit float format described here:

But if you’re using 32-bit float, the recording won’t clip because there’s a vast amount of headroom (+770 dB, to be exact) built into the recording format.

Besides playing such a file, you can try that yourself by prepending a volume boost to the to the filter graph.
Beware that this can make the output VERY loud if you increase the number: af pre @vol:volume=2

Of course such a format has to be in use in mpv, which may already be the case for you in mpv, regardless of the file's sample format. It does for me, but maybe only because I'm using easyeffects, which I subsequently use to compress it, so it doesn't distort the output. Skipsilence also requires fltp when using arnndn, and I think mpv's scaletempo2 filter also requests it.

If you play with this, beware that ffmpeg's volumedetect filter doesn't support this format, so it can can't show above 0 dB and distorts the audio.