Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sfinfo(1) [centos man page]

SFINFO(1)																 SFINFO(1)

NAME
sfinfo - display information about audio files SYNOPSIS
sfinfo [options] audio files... DESCRIPTION
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 summary. 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. --reporterror, -r Print an error message if any of the specified files are not recognized as valid audio files. --help, -h Print help message. --version, -v Print version information. EXAMPLES
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 <michael@68k.org> Audio File Library 0.3.6 03/06/2013 SFINFO(1)

Check Out this Related Man Page

SFCONVERT(1)															      SFCONVERT(1)

NAME
sfconvert - convert audio files SYNOPSIS
sfconvert infile outfile [output options] DESCRIPTION
The sfconvert command converts an audio file to another file format or data format. OPTIONS
The following keywords specify the format of the output sound file: format f Output file format. f must be one of the following: aiff Audio Interchange File Format aifc AIFF-C next NeXT/Sun .snd/.au Format wave MS RIFF WAVE bicsf Berkeley/IRCAM/CARL Sound File Format smp Sample Vision Format voc Creative Voice File Format nist NIST SPHERE Format caf Core Audio Format flac FLAC compression c ulaw G.711 mu-law alaw G.711 A-law ima IMA ADPCM msadpcm Microsoft ADPCM flac FLAC alac Apple Lossless Audio Codec byteorder e Output byte order. e may be either big or little. channels n Number of output channels. n is 1 for mono, and 2 for stereo. integer n s Convert to integer audio data. n indicates the output sample width in bits. s specifies the sample format and may be either 2scomp for 2's complement signed data or unsigned for unsigned data. float m Convert to floating-point audio data with a maximum amplitude of m (usually 1.0). The integer and float options are mutually exclusive. The following options take no additional arguments: --help, -h Print help message. --version, -v Print version information. SEE ALSO
sfinfo(1) AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 SFCONVERT(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Combining files

Hi, 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 1 4 2 5 3 6 Combined result = File C 14 25 36 (2 Replies)
Discussion started by: Enda Martin
2 Replies

2. Shell Programming and Scripting

files cross over

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. Example) >>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)
Discussion started by: Jae
2 Replies

3. Programming

Playing Audio files in C

Hi All, Looking for an assistance on how to access the speakers of my machine and play audio files using C. Any tutorials will be of great help. Regards, Sayantan. (1 Reply)
Discussion started by: Sayantan
1 Replies

4. Shell Programming and Scripting

divide a single file with different Weboffercodes into different files with each of o

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)
Discussion started by: enigma_83
4 Replies

5. Shell Programming and Scripting

Show the Difference between two files

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. sample: First File Second File allan entry1 entry2 entry3 allan entry1 entry3 bob entry1... (10 Replies)
Discussion started by: The One
10 Replies

6. Shell Programming and Scripting

Comparing two huge files

Hi, 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)
Discussion started by: kmkbuddy_1983
11 Replies

7. UNIX for Dummies Questions & Answers

File format check

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)
Discussion started by: Leo_NN
11 Replies

8. Solaris

realteak HD Audio Chipset

I am wondering if there is a way to get opensolaris to accept my realteck hd audio chip set. dmesg 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)
Discussion started by: FloridaBSD
1 Replies

9. HP-UX

Format File

Can someone please give me the commands to format all the files in HP-UX without formatting the OS. (5 Replies)
Discussion started by: joeli
5 Replies

10. Shell Programming and Scripting

To Align clinical data files using awk

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 File 1: 0633-009_001200008:225065338468009:CMBRTRM:albuterol... (4 Replies)
Discussion started by: chowdhut
4 Replies

11. UNIX for Dummies Questions & Answers

Find Audio Files With Specific Bandwidth?

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)
Discussion started by: ubu-user
1 Replies

12. Shell Programming and Scripting

Formatting File having big single line into 95 Char Per Line

Hi All, 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. Before:- File Name:- File1.dat 102 121340560... (10 Replies)
Discussion started by: lancesunny
10 Replies

13. Programming

A Function To Create A 1 Second Sinewave WAVE Beep File In Python.

sinebeep.py Creating an audio WAVE file called... beep.wav ...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)
Discussion started by: wisecracker
1 Replies

14. Shell Programming and Scripting

Write aiff tags in terminal

How can I write metadata to AIFF files in terminal, I'd like to write the 'track number' field of ID3. (2 Replies)
Discussion started by: fhill2
2 Replies

15. What is on Your Mind?

Neo's Recommended Audio Books

Just finished this Audible audio book. It's simply great. Highly recommended: 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)
Discussion started by: Neo
0 Replies