File Properties

General
Complete name                  : samples_jfk.wav
Format                         : Wave
File size                      : 344 KiB
Duration                       : 11 s 0 ms
Overall bit rate mode          : Constant
Overall bit rate               : 256 kb/s
Writing application            : Lavf59.27.100

Audio
Format                         : PCM
Format settings                : Little / Signed
Codec ID                       : 1
Duration                       : 11 s 0 ms
Bit rate mode                  : Constant
Bit rate                       : 256 kb/s
Channel(s)                     : 1 channel
Sampling rate                  : 16.0 kHz
Bit depth                      : 16 bits
Stream size                    : 344 KiB (100%)

File Properties JSON

{
  "header": {
    "ckID": "RIFF",
    "ckSize": 352070,
    "format": "WAVE"
  },
  "data": [
    {
      "chunk": {
        "chunkId": "fmt%20",
        "chunkSize": 16
      },
      "fmt": {
        "formatTag": "WaveFormatType%3A%3APCM",
        "channels": 1,
        "samplesPerSec": 16000,
        "avgBytesPerSec": 32000,
        "blockAlign": 2
      },
      "pcmExtraData": {
        "bitsPerSample": 16
      }
    },
    {
      "chunk": {
        "chunkId": "LIST",
        "chunkSize": 26
      },
      "list": {
        "type": "INFO",
        "item": [
          {
            "chunkId": "ISFT",
            "chunkSize": 14
          }
        ]
      }
    },
    {
      "chunk": {
        "chunkId": "data",
        "chunkSize": 352000
      }
    }
  ]
}

Format

DataValueCalculationNameField SizeEndianNameNotes
52 49 46 46RIFFChunk ID4BigRIFF Header Signature
46 5F 05 00352070HEX 00055F46Total chunk size4LittleRIFF Chunk Size
57 41 56 45WAVEFile format4BigWAVE Header Signature
66 6D 74 20fmtSub-chunk 1 tag4BigchunkId
10 00 00 0016HEX 00000010Sub-chunk 1 size4LittlechunkSizeUnit: bytes
01 001HEX 0001Audio format2LittleformatTag1 (PCM)
01 001HEX 0001Number of channels2Littlechannels1 (mono) 2 (stereo)
80 3E 00 0016000HEX 00003E80Sample rate4LittlesamplesPerSecSamples/second (Hz)
00 7D 00 0032000HEX 00007D00Bit rate4LittleavgBytesPerSec=sample_rate * bit_depth * channels / 8
02 002HEX 0002Block align2LittleblockAlign
10 0016HEX 0010Bit depth2LittlebitsPerSampleBit depth
64 61 74 61dataSub-chunk tag4BigchunkId
00 5F 05 00352000HEX 00055F00Sub-chunk size4LittlechunkSizeUnit: bytes

Notes

NametagNotes
chunkIdfmt
data
fact
smpl
cue
LIST
id3Other

Calculations

1. Playback duration = 11 s
   1. Formula 1: data[chunkSize] / avgBytesPerSec
      352000 / 32000
   2. Formula 2: data[chunkSize] * 8 / (samplesPerSec * bitsPerSample * channels)
      352000 * 8 / (16000 * 16 * 1)
2. File size = 352078 B
   1. Formula 1: RIFF Chunk Size + RIFF Header Signature(field size) + RIFF Chunk Size(field size)
      352070 + 4 + 4

Notes

  1. Format settings Little-Endian: least significant byte stored first. Big-Endian: most significant byte stored first.

Other

  1. Hex tool https://github.com/WerWolv/ImHex