sfinfo - display information about audio files
sfinfo [options] audio files...
sfinfo prints information about the specified audio files, including file format, sample rate, duration, and audio data format.
By default sfinfo displays information in a longer, multi-line format; specifying the --short or -s option produces a short, single-line
Any files which are not recognized as valid audio files will be ignored unless the --reporterror or -r option is given. The file formats
currently supported by sfinfo are AIFF, AIFF-C, NeXT/Sun .snd/.au, WAVE, Berkeley/IRCAM/CARL Sound File, AVR, Amiga IFF/8SVX, Sample
Vision, Creative Voice File, NIST SPHERE, and Core Audio Format.
OPTIONS --short, -s
Print short single-line summary of each recognized audio file.
Print an error message if any of the specified files are not recognized as valid audio files.
Print help message.
Print version information.
Display summary of an audio file:
% sfinfo drum.aiff
File Name drum.aiff
File Format Audio Interchange File Format (aiff)
Data Format 16-bit integer (2's complement, big endian)
Audio Data 1569972 bytes begins at offset 54 (36 hex)
2 channels, 392493 frames
Sampling Rate 44100.00 Hz
Duration 8.900 seconds
List all recognized audio files in the current directory using the short output format:
% sfinfo -s *
9.60s 44100.00 aiff 1ch 16b -- bass.aiff
8.90s 44100.00 aiff 2ch 16b -- drum.aiff
SEE ALSO sfconvert(1)AUTHOR
Michael Pruett <email@example.com>
Audio File Library 0.3.6 03/06/2013 SFINFO(1)
Check Out this Related Man Page
afGetFrameCount, afGetTrackBytes, afGetDataOffset - get the total sample frame count, length of audio track in bytes, offset of the audio
track for a track in an audio file
AFframecount afGetFrameCount (AFfilehandle file, int track);
AFfileoffset afGetTrackBytes (AFfilehandle file, int track);
AFfileoffset afGetDataOffset (AFfilehandle file, int track);
file is an audio file handle created by a previous call to afOpenFile(3).
track is an integer which specifies an audio track within file. All supported file formats contain exactly one audio track per file, so the
constant AF_DEFAULT_TRACK should always be used.
afGetFrameCount returns the total number of sample frames contained within the specified track of the specified file.
Each sample frame of audio consists of a fixed number of samples (equal to the number of audio channels in the track. For monaural data, a
sample frame consists of one audio sample. For stereophonic data, a sample frame consists of a stereo pair.
afGetTrackBytes returns the total number of bytes of raw audio data (i.e., prior to decompression or conversion) in the track.
afGetDataOffset returns the offset in bytes of the start of the audio data contained within the specified track of the specified file.
afGetFrameCount returns the total number of sample frames in track.
afGetTrackBytes returns the total number of bytes of audio data in track.
afGetDataOffset returns the offset in bytes to the beginning of the audio data in track.
Each of these routines returns -1 in case of error.
Michael Pruett <firstname.lastname@example.org>
Audio File Library 0.3.6 03/06/2013 AFGETFRAMECOUNT(3)
is there a way to combine 2 files together, joining line 1 from file A with line 1 from file B, line 2 from A with line 2 from B etc.
File A File B
Combined result =
36 (2 Replies)
I have many files (File 1, File 2, File 3, ...) in same directory.
The format of all these files are same.
What I would like to do is to combine all these files into a single file via cross over.
>>File 1 look like this.
f1 01 1.0
f1 02 2.0
f1 03 3.0
f1 04 4.0
f1 05 5.0
f1 06... (2 Replies)
Here is the format of my file; I do not have the delimiter in the file for the data to be separated.
Each line in the file is in the following format. File contains the data of different WebOfferCodes
Item Code | Account Number | Card Number | Source code | WebOfferCode
12digits | 10... (4 Replies)
I have two files and I need to know the difference between each line. This will extend to thousand lines and manual works is really not really an option.
First File Second File
allan entry1 entry2 entry3 allan entry1 entry3
bob entry1... (10 Replies)
I have two files file A and File B. File A is a error file and File B is source file. In the error file. First line is the actual error and second line gives the information about the record (client ID) that throws error. I need to compare the first field (which doesnt start with '//') of... (11 Replies)
How to check if file is in a given format?
For instance: if file records are delimeted with "|" ( pipes) and have exactly 26 fields?
File is pretty big (~3 mil reccords), so not sure if I have to check all records or just head/tail records or smth.
Any ideas are much much more than... (11 Replies)
I am wondering if there is a way to get opensolaris to accept my realteck hd audio chip set.
Thu Oct 23 22:47:38 EDT 2008
Oct 23 22:34:49 opensolaris Use is subject to license terms.
Oct 23 22:34:49 opensolaris unix: features:... (1 Reply)
Hello, I am new to shell scripts and 1st week into awk. I have so far managed to format output files to sample File 1 and File 2 as shown below and File 3 output solution is what I am looking for...thanks
0633-009_001200008:225065338468009:CMBRTRM:albuterol... (4 Replies)
Hi, I would like to write a shell script that will:
-search the files of a specific user to find any audio files with a bandwidth iqual or greater than 192 kps
- on the results i should see the file name along with all the whole file route and each file's size
So I guess i should be using... (1 Reply)
I have 4 big files which contains one big line containing formatted character records, I need to format each file in such way that each File will have 95 Characters per line. Last line of each file will have newline character at end.
File Name:- File1.dat
102 121340560... (10 Replies)
Creating an audio WAVE file called...
...that can be played using almost ANY audio player available.
This simple DEMO snippet of code generates a 1 second sinewave WAVE file. It IS saved inside the CURRENT drawer so that you can find it... ;o)
Note that the... (1 Reply)
Just finished this Audible audio book. It's simply great.
This book was so well done that I did not want to miss a single word; so ended up listening to half of the book twice when I got distracted. This is a great audio book.
... (0 Replies)