-
-
Notifications
You must be signed in to change notification settings - Fork 416
API question: How to get current volume level (detect silence in video)? #658
Comments
I don't think so. You could use the |
I'm replying here for Vlc.DotNet, but that's true for all libvlc bindings. The only way I can think of is highly theoretical : Using audio callbacks to get the raw audio data and analyze that to see if it there is audio. If you're doing that "on-the-fly", I'm not sure how you could sync it with the video afterwards. Another way in libvlc would be to create an audio filter plugin (probably in C or C++) that detects silence/audio, but that's quite hard to do. Otherwise, look into ffmpeg or NAudio to see if something is doable there. |
Are there any examples on using SetAudioCallbacks to analyze raw audio data? |
But I don't see a way to access |
that's why I mentioned libvlcsharp. |
It seems that NAudio with this code perfectly fit my intentions. Syncing timestamps with VLC is very doable. |
I wish to control video playback speed depending on if there is a voice or silence in video. Is it possible to detect silent moments with vlcdotnet?
The text was updated successfully, but these errors were encountered: