Files
wavinfo/README.md
Jamie Hardt ec5b796181 Fixed readme
2022-11-23 14:44:40 -08:00

2.9 KiB

Documentation Status Lint and Test

wavinfo

The wavinfo package allows you to probe WAVE and RF64/WAVE files and extract extended metadata, with an emphasis on film, video and professional music production metadata.

wavinfo reads:

  • Broadcast-WAVE metadata1, including embedded program loudness and coding history, if extant. This also includes the SMPTE UMID2.
  • ADM track metadata3, including channel, pack formats, object and content names.
  • iXML production recorder metadata4, including project, scene, and take tags, recorder notes and file family information.
  • Most of the common RIFF INFO5 metadata fields.
  • The wav format is also parsed, so you can access the basic sample rate and channel count information.

In progress:

Demonstration

The entry point for wavinfo is the WavInfoReader class.

from wavinfo import WavInfoReader

path = '../tests/test_files/A101_1.WAV'

info = WavInfoReader(path)

The package also installs a shell command:

$ wavinfo test_files/A101_1.WAV

Basic WAV Data

The length of the file in frames (interleaved samples) and bytes is available, as is the contents of the format chunk.

(info.data.frame_count, info.data.byte_count)
>>> (240239, 1441434)
(info.fmt.sample_rate, info.fmt.channel_count, info.fmt.block_align, info.fmt.bits_per_sample)
>>> (48000, 2, 6, 24)

Other Resources