Skip to content

afinfo MacOS Command Guide

The MacOS afinfo command provides detailed information about audio files, including format, duration, bit rate, and more. It is a useful tool for analyzing and troubleshooting audio files on your MacOS system.

Terminal window
afinfo [option] [audiofile]
OptionDescription
-hShow help/usage information
-bShow basic information
-dShow data format information
-rShow audio data rate
-cShow audio format description
-sShow audio stream summary
ParameterDescription
audiofileThe audio file for which to display information
Terminal window
afinfo audio_file.mp3

This command displays detailed information about the specified audio file.

Terminal window
afinfo -c audio_file.wav

Displays the channel layout information for the specified audio file.

Terminal window
afinfo -p audio_file.aiff

Shows peak information (maximum sample value) for the specified audio file.

Terminal window
afinfo -f audio_file.aac

Prints out the format specific information for the specified audio file.

Terminal window
afinfo -l audio_file.m4a

Displays the length (in frames) of the audio data for the specified file.

Terminal window
afinfo -b audio_file.flac

Shows the bit depth of the audio data in the specified FLAC file.

Terminal window
afinfo -r audio_file.aif

Prints out the sample rate information for the specified audio file.

To use the afinfo command in MacOS, execute the following command:

Terminal window
afinfo audiofile.mp3

What information does afinfo provide in MacOS?

Section titled “What information does afinfo provide in MacOS?”

The afinfo command in MacOS provides detailed information about the specified audio file, including sample rate, file type, duration, and more.

Terminal window
afinfo audiofile.mp3

How can I get the bitrate of an audio file using afinfo in MacOS?

Section titled “How can I get the bitrate of an audio file using afinfo in MacOS?”

To get the bitrate of an audio file using afinfo in MacOS, you can run the following command:

Terminal window
afinfo -b audiofile.mp3

Can I use afinfo to check the duration of an audio file in MacOS?

Section titled “Can I use afinfo to check the duration of an audio file in MacOS?”

Yes, you can use the afinfo command to check the duration of an audio file in MacOS. Here is an example command:

Terminal window
afinfo -q audiofile.mp3

How do I display detailed channel layout information for an audio file using afinfo in MacOS?

Section titled “How do I display detailed channel layout information for an audio file using afinfo in MacOS?”

You can display detailed channel layout information for an audio file using the afinfo command in MacOS by running the following command:

Terminal window
afinfo -c audiofile.mp3

Is there a way to view all available information about an audio file with afinfo in MacOS?

Section titled “Is there a way to view all available information about an audio file with afinfo in MacOS?”

Yes, you can view all available information about an audio file using the afinfo command in MacOS by running the following command:

Terminal window
afinfo -r audiofile.mp3
  • Retrieving audio file information
  • Checking audio file format and duration
  • Viewing audio file metadata
  • Verifying audio file integrity
  • Analyzing audio file properties