Player icon indicating copy to clipboard operation
Player copied to clipboard

Silence skip feature

Open zkvsky opened this issue 5 years ago • 17 comments

Exo provides great feature called silence skip and I was amazed by its implementation in NewPipe, unfortunately it doesn't play local files. When you don't look at the video it's actually really hard to spot places where it is skipped. Thus I would like ask for inclusion of this feature [ possibly together with speedup functionality ].

zkvsky avatar Jan 07 '21 12:01 zkvsky

Sounds interesting. I try that out.

Can you point out your use case / with what video does this feature makes sense? Can you share a sample?

moneytoo avatar Jan 07 '21 12:01 moneytoo

IMHO this is something that would be useful for podcasts instead of movies and TV shows. I would expect it to be more bound to online content. Just Player also currently doesn't have any background or music playback as it's originally intended for movies/shows. Playback speed setting is already there (as it's provided by ExoPlayer UI).

moneytoo avatar Jan 07 '21 20:01 moneytoo

It's great for any kind of educational content, classes etc. which many of us are in the midst of. In one case this feature cut one of my videos from 2 hours to one, without speeding up, and it is far much pleasant to listen to. Podcasts are pretty much covered by PocketCasts which have such feature too, it's closed source but oh well

zkvsky avatar Jan 08 '21 08:01 zkvsky

I would also advocate for the addition of this silence skip feature. Like barolo mentioned, it is very useful for educational content (for example, I'm currently watching recordings of my lectures and this feature would be much more helpful than simply increasing the playback speed). Also, I think no other player offers this feature (I only know about NewPipe, but that doesn't really count), neither on Android nor on Desktop platforms. There are ways to reencode those videos but that is time-consuming and costs much more space.

AkitoFire avatar Mar 27 '21 15:03 AkitoFire

You can try builds available here which have skip silence enabled (but lack UI to toggle that). See how well it works for your content.

moneytoo avatar Mar 27 '21 21:03 moneytoo

@AkitoFire AntennaPod offers such feature, since it can play videos now, it's not intuitive since you need to add folder with videos first.

I'll check the new builds

zkvsky avatar Mar 28 '21 07:03 zkvsky

@moneytoo That build works great! In the future I would love to have an option to 2x/3x fastforward through silence instead skipping.

zkvsky avatar Mar 28 '21 07:03 zkvsky

@moneytoo Thank you! I'm not entirely sure what the difference between both builds is, but it works really well! With quieter content, the output is a garbled mess though. One possible solution for this problem would be to check for a loudness standard and adjust accordingly (specifying target LUFS, for example), but I'm not sure how to implement something like this for a normal video player.

AkitoFire avatar Mar 28 '21 09:03 AkitoFire

@moneytoo is there a plan to include this in release builds?

zkvsky avatar May 26 '21 11:05 zkvsky

@moneytoo is there a plan to include this in release builds?

Maybe in the future, but I can't promise anything. It would probably be available only after activating some advanced mode (I still need to think though that more).

moneytoo avatar May 27 '21 19:05 moneytoo

@moneytoo is there a plan to include this in release builds?

Maybe in the future, but I can't promise anything. It would probably be available only after activating some advanced mode (I still need to think though that more).

Gotcha, thank you for updating the builds.

zkvsky avatar Jun 06 '21 15:06 zkvsky

@moneytoo Could you please update the builds?

zkvsky avatar Jun 30 '21 08:06 zkvsky

@moneytoo thank you for updates!

I have a request, could you perhaps tie playback speed to silence skip, instead of just skipping, e.g. 3x speed. It's much less jarring. That's how the NewPipe guys do it.

zkvsky avatar Sep 10 '21 19:09 zkvsky

Starting v0.59 you can enable the basic audio skip from settings. You can access settings from system App info screen (phones only) or by long pressing the gear (⚙️) icon (phones/TV).

moneytoo avatar Sep 12 '21 07:09 moneytoo

Starting v0.59 you can enable the basic audio skip from settings. You can access settings from system App info screen (phones only) or by long pressing the gear (gear) icon (phones/TV).

Marvelous! Just updated all of my devices. Thank you.

Will you consider my request of speeding up instead of cutting for skipping?

zkvsky avatar Sep 12 '21 21:09 zkvsky

@moneytoo awesome 😍 but was it possible to adjust the threshold at which scipping occures? Because for my lectures to much is sciped, so understanding spoken sentences is not possible anymore.

theScrabi avatar Dec 02 '21 01:12 theScrabi

Am I correct in thinking that this: https://github.com/google/ExoPlayer/issues/6705 having been resolved should make it possible to enable the user to configure parameters of the skip-silence feature, so they can change the minimum duration of silence to be skipped, the threshold volume below which is classified as 'silence', and the duration of 'padding' on the edges of any silent portion?

User087 avatar Jan 15 '24 16:01 User087