- Jun 16, 2020
Then install it (though it should be installed by default almost everywhere). Personally, I use ffprobe for that purpose.
File indeed works just fine:
file 440.flac 440.flac: FLAC audio bitstream data, 24 bit, mono, 44.1 kHz, 1323000 samples
I don't think I ever installed this separately. It also resides in /usr/bin/, which is a good indication that it's standard, but no guarantee. Another indication is the fact that it's a universal binary (even with arm64 support). It would not be if it would be installed via something like brew:
file /usr/bin/file /usr/bin/file: Mach-O universal binary with 3 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64] [arm64e:Mach-O 64-bit executable arm64e] /usr/bin/file (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/file (for architecture arm64): Mach-O 64-bit executable arm64 /usr/bin/file (for architecture arm64e): Mach-O 64-bit executable arm64e