Audio basics of parametric analysis

Sampling Rate

  • sample_rate: 44100

  • It refers to a sampling rate of 44,100 times a second collection

Channel

  • channels: 2
  • Generally left channel, right channel, the greater the number of acquisition channels out of the file size

Sample size (sampling format)

  • sample_size/sample_fmt:
    • AV_SAMPLE_FMT_S16
    • AV_SAMPLE_FMT_S16P (planar sample type, planar storage)
    • AV_SAMPLE_FMT_FLTP

An amount of data

  • nb_samples: 1024 Single Channel number of samples
  • Calculated frame rate: 44100/1024 = 43.066 frame rate
  • One second of audio Size: 44100x2x2 = 172.26KB
  • An audio size: 1024x2x2 = 4096B

Guess you like

Origin www.cnblogs.com/fandx/p/12204048.html