Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sfconvert(1) [debian man page]

SFCONVERT(1)							 Debian GNU/Linux						      SFCONVERT(1)

NAME
sfconvert - convert between various audio formats SYNOPSIS
sfconvert infile outfile [ options ... ] [ output keywords ... ] DESCRIPTION
The sfconvert tool can be used to convert audio files from one audio format to another. The files' audio formats have to be supported by libaudiofile. OPTIONS
The following keywords specify the format of the output sound file: byteorder e Desired endianness of output sample data. e may be one of big or little. channels n Number of output channels. n is 1 for mono, and 2 for stereo files. format f Audio format of output file. f has to be one of the currently supported formats: aiff (Audio Interchange File Format), aifc (AIFF-C File Format), next (NeXT/Sun Format), wave (MS RIFF WAVE Format), bicsf (Berkeley/IRCAM/CARL Sound File Format), avr (Audio Visual Research File Format), iff (Amiga IFF/8SVX Sound File Format), or nist (NIST SPHERE File Format). integer n s Produce integer samples. n specifies the width of individual samples in bits, s yields the encoding and may be one of 2scomp (2's complement signed data), or unsigned (unsigned data). The integer and float options (see below) are mutually exclusive. float m Produce floating point samples with a maximum amplitude of m (usually 1.0). This options may not be used together with option inte- ger. SEE ALSO
sfinfo(1). AUTHOR
sfconvert was written by Michael Pruett <michael@68k.org>. This manual page was written by Daniel Kobras <kobras@debian.org> for the Debian GNU/Linux system (but may be used by others). It is based on the sfconvert plain text documentation as distributed with audiofile. Debian Project March 2001 SFCONVERT(1)

Check Out this Related Man Page

AFGETFRAMESIZE(3)														 AFGETFRAMESIZE(3)

NAME
afGetFrameSize - calculate the frame size in bytes for an audio track SYNOPSIS
#include <audiofile.h> float afGetFrameSize (AFfilehandle file, int track, int expand3to4); PARAMETERS
file is a valid AFfilehandle. track is an integer which refers to a specific audio track in the file. At present no supported audio file format allows for more than one audio track within a file, so track should always be AF_DEFAULT_TRACK. expand3to4 is a boolean-valued integer indicating whether frame size calculation will treat 24-bit data as having a size of 3 bytes or 4 bytes. DESCRIPTION
afGetFrameSize returns the number of bytes in a frame in a given audio track. A sample frame consists of one or more samples. For a monaural track, a sample frame will always contain one sample. For a stereophonic track, a sample frame will always contain two samples, one for the left channel and one for the right channel. A non-zero value of expand3to4 should be used when calculating the frame size for storage in memory (since 24-bit audio data is presented in memory as a 4-byte sign-extended integer), while a value of zero should be used for calculating storage on disk where no padding is added. The parameter expand3to4 is ignored unless the specified audio track contains 24-bit audio data. AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFGETFRAMESIZE(3)
Man Page

12 More Discussions You Might Find Interesting

1. Linux

No Sound [Sigmatel C-Major Audio] :: Fedora 7

I've been fighting for a few days now with trying to get my soundcard to recognize. I am currently using a Latitude D630 with Sigmatel C-Major Audio using the Intel ICH8 Family. My problem appears to be that the computer cannot detect a sound card but it was only able to install default drivers... (0 Replies)
Discussion started by: grid-lyn
0 Replies

2. Shell Programming and Scripting

File Format

I have an input which is like this I have an input which is like this #RowNum ClassNUm Date Pass Mark1 Mark2 #------------------------------------------------------------ 0100 201 20070909 0 90 100 0100 203 20070909 1 100 100 0100 301 20070909 0 45 99 0100 231 20070909 ... (2 Replies)
Discussion started by: gopsman
2 Replies

3. HP-UX

Desired Format !

Hi everybody, I just need desired ouput from text file which should have folowing format; "2007-06-25 00:03:32.926+05:30",12354369,"Load","Completed","Rs.-5,556.00",9452217714 "2007-06-25 00:06:57.357+05:30",12354371,"Load","Completed","Rs.-56.00",9415766266 "2007-06-25... (1 Reply)
Discussion started by: prasanth_babu
1 Replies

4. 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

5. 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

6. 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

7. 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

8. Shell Programming and Scripting

EBCDIC Format to Normal String

Hi, I have EBCDIC format file and i wold like to convert normal string(user readable) in unix . The source having the binary IBM file format Sample Source Format: ... (3 Replies)
Discussion started by: koti_rama
3 Replies

9. Shell Programming and Scripting

Error with Audio Conversion Bash Script

Good evening, I'm currently working on a BASH script to convert audio between file formats and I've come across a snag. At the beginning of the script, I'm having the system check to see if any files with the .m4a extension exist in the directory, and if so, it runs the script. If there are no... (1 Reply)
Discussion started by: KBurkholder
1 Replies

10. UNIX for Advanced & Expert Users

Identifing The Format of Data File

Hello All, We are receiving UTF-16 formatted file and when i vi the file in Linux OS i am seeing some weird characters, is this because in my .bashrc profile the language variable has been set to LC_ALL=en_US.UTF-8 and hence the reason i am not able to read the UTF-16 formatted file properly? or... (2 Replies)
Discussion started by: Ariean
2 Replies

11. 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

12. Shell Programming and Scripting

EMAIL Format in UNIX

Hi , Need help of Email Format I have TEST .txt file which contains below data /home/a.DAT File Not received /home/a.CTL File Not received /home/b.DAT File Not received /home/b.CTL File Not received i am using below command to send mail mail -s "ERROR: files" $MAIL_LIST <... (6 Replies)
Discussion started by: satish1222
6 Replies