carta
sndfile-cmp(1)

sndfile-cmp1

Compare two audio files

Usage

sndfile-cmp file1 file2

Overview

sndfile-cmp compares the audio data of two sound files. For two files to compare as being the same, their channel counts, sample rate, audio data lengths and actual audio data must match. Other differences such as string metadata like song title, artist etc and their presence or absence are ignored.

Exit status

0

The audio data is the same.

1

The audio data differs.

History

  • Arch Linux 2026-11-01 to Debian 11 (Bullseye): the text shown here
  • Debian 10 (Buster) to Debian 9 (Stretch)
  • Debian 8 (Jessie) to Debian 6.0 (Squeeze)

Authors

Conrad Parker ⟨[email protected]⟩ Erik de Castro Lopo ⟨[email protected]⟩

From libsndfile 1.2.2-4 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.