Name
Stats -- multichannel aware "stat"
Synopsis
stats [-b bits|-x bits|-s scale] [-w window-time]
Function
Display time domain statistical information about the audio channels; audio is passed unmodified through the processing chain. Statistics are calculated and displayed for each audio channel and, where applicable, an overall figure is also given.

For example, for a typical well-mastered stereo music file (overall, left, right):

‘DC offset’
0.000803 -0.000391 0.000803

‘Min level’
-0.750977 -0.750977 -0.653412

‘Max level’
0.708801 0.708801 0.653534

‘Pk lev dB’
-2.49 -2.49 -3.69

‘RMS lev dB’
-19.41 -19.13 -19.71

‘RMS Pk dB’
-13.82 -13.82 -14.38

‘RMS Tr dB’
-85.25 -85.25 -82.66

‘Crest factor’
- 6.79 6.32

‘Flat factor’
0.00 0.00 0.00

‘Pk count’
2 2 2

‘Bit-depth’
16/16 16/16 16/16

‘Num samples’
7.72M

‘Length s’
174.973

‘Scale max’
1.000000

‘Window s’
0.050

DC offset, Min level, and Max level are shown, by default, in the range +/-1. If the -b (bits) options is given, then these three measurements will be scaled to a signed integer with the given number of bits; for example, for 16 bits, the scale would be -32768 to +32767. The -x option behaves the same way as -b except that the signed integer values are displayed in hexadecimal. The -s option scales the three measurements by a given floating-point number.

Pk lev dB and RMS lev dB are standard peak and RMS level measured in dBFS. RMS Pk dB and RMS Tr dB are peak and trough values for RMS level measured over a short window (default 50ms).

Crest factor is the standard ratio of peak to RMS level (note: not in dB).

Flat factor is a measure of the flatness (i.e. consecutive samples with the same value) of the signal at its peak levels (i.e. either Min level, or Max level). Pk count is the number of occasions (not the number of samples) that the signal attained either Min level, or Max level.

The right-hand Bit-depth figure is the standard definition of bit-depth i.e. bits less significant than the given number are fixed at zero. The left-hand figure is the number of most significant bits that are fixed at zero (or one for negative numbers) subtracted from the right-hand figure (the number subtracted is directly related to Pk lev dB).

For multi-channel audio, an overall figure for each of the above measurements is given and derived from the channel figures as follows: DC offset: maximum magnitude; Max level, Pk lev dB, RMS Pk dB, Bit-depth: maximum; Min level, RMS Tr dB: minimum; RMS lev dB, Flat factor, Pk count: average; Crest factor: not applicable.

Length s is the duration in seconds of the audio, and Num samples is equal to the sample-rate multiplied by Length.

Scale Max is the scaling applied to the first three measurements; specifically, it is the maximum value that could apply to Max level. Window s is the length of the window used for the peak and trough RMS measurements.

See also the stat effect.


Show TOC