Silence channel detection


Apr 11, 2006

Is there any way to detect silent audio channels?

I have some bogus video/audio files (avi, mkv, ogm, etc) which have mostly AC3 audio streams with 6 channels.
The problem ist they only have 2 channels which contain actual audio data,
the other channels are just silent.

I need a way to detect that.
Is there a simple way to do this?
I don't want to get each and every library to demux the audio stream from the container and
then get a library which can read that specific audio stream to check if there are some silent channels.

It may be as hacked together as it needs to be if it gets the job done.
Maybe it could be possible through some media players?
(I have the needed codecs & splitters already installed to be able to play those files,
but is there any way to take advantage of that?)
Top Bottom