[MPlayer-users] -af volume

Media Streaming Services mediastream at gmail.com
Wed Jun 20 16:44:45 CEST 2007


Alexander Roalter wrote:

> I don't think volume measurement is done @ every frame, since with audio
> this is not how things are usually done. With a DVD input, sampling
> rates of 48kHz are usually applied, this means that 48,000 times per
> second the volume is measured (it's not *exactly* like that, since the
> points in the waveform do not actually represent the volume per se, but
> more an amalgamation of loudness, and frequency.
>
> To create some statistics, one could average this over each second, or
> even at a finer grain, but you would only get what normal audio editor
> software shows (http://images.google.com/images?&q=waveform, first image
> comes handy). You could output the audio to PCM (-ao pcm) and apply one
> of the many other programs to do statistics on such a wave file.

Sorry I wasn't clear before, I do understand that measurements taken
at a sample rate frequency would produce a wave form, that is not
exactly what I need but it would overly satisfy my task. The -af
volume and -af_adv force=4 provides me with one value:  'max volume',
wish it was average volume, since there could always be a "click"
maxing out the db's. And since '-af volume' measures volume anyways, I
was wondering if I can have it output its measurements to stdout?

Thanks.
Dennis.



More information about the MPlayer-users mailing list