Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Usage sndfile convert 1.0.28

Wiesław Šoltés edited this page Jan 11, 2018 · 1 revision
Usage : sndfile-convert.exe [options] [encoding] <input file> <output file>

    where [option] may be:

        -override-sample-rate=X  : force sample rate of input to X
        -endian=little           : force output file to little endian data
        -endian=big              : force output file to big endian data
        -endian=cpu              : force output file same endian-ness as the CPU
        -normalize               : normalize the data in the output file

    where [encoding] may be one of the following:

        -pcms8     : signed 8 bit pcm
        -pcmu8     : unsigned 8 bit pcm
        -pcm16     : 16 bit pcm
        -pcm24     : 24 bit pcm
        -pcm32     : 32 bit pcm
        -float32   : 32 bit floating point
        -ulaw      : ULAW
        -alaw      : ALAW
        -alac16    : 16 bit ALAC (CAF only)
        -alac20    : 20 bit ALAC (CAF only)
        -alac24    : 24 bit ALAC (CAF only)
        -alac32    : 32 bit ALAC (CAF only)
        -ima-adpcm : IMA ADPCM (WAV only)
        -ms-adpcm  : MS ADPCM (WAV only)
        -gsm610    : GSM6.10 (WAV only)
        -dwvw12    : 12 bit DWVW (AIFF only)
        -dwvw16    : 16 bit DWVW (AIFF only)
        -dwvw24    : 24 bit DWVW (AIFF only)
        -vorbis    : Vorbis (OGG only)

    If no encoding is specified, the program will try to use the encoding
    of the input file in the output file. This will not always work as
    most container formats (eg WAV, AIFF etc) only support a small subset
    of codec formats (eg 16 bit PCM, a-law, Vorbis etc).

    The format of the output file is determined by the file extension of the
    output file name. The following extensions are currently understood:

        wav        : WAV (Microsoft)
        aif        : AIFF (Apple/SGI)
        au         : AU (Sun/NeXT)
        snd        : AU (Sun/NeXT)
        raw        : RAW (header-less)
        gsm        : RAW (header-less)
        vox        : RAW (header-less)
        paf        : PAF (Ensoniq PARIS)
        fap        : PAF (Ensoniq PARIS)
        svx        : IFF (Amiga IFF/SVX8/SV16)
        nist       : WAV (NIST Sphere)
        sph        : WAV (NIST Sphere)
        voc        : VOC (Creative Labs)
        ircam      : SF (Berkeley/IRCAM/CARL)
        sf         : SF (Berkeley/IRCAM/CARL)
        w64        : W64 (SoundFoundry WAVE 64)
        mat        : MAT4 (GNU Octave 2.0 / Matlab 4.2)
        mat4       : MAT4 (GNU Octave 2.0 / Matlab 4.2)
        mat5       : MAT5 (GNU Octave 2.1 / Matlab 5.0)
        pvf        : PVF (Portable Voice Format)
        xi         : XI (FastTracker 2)
        htk        : HTK (HMM Tool Kit)
        sds        : SDS (Midi Sample Dump Standard)
        avr        : AVR (Audio Visual Research)
        wavex      : WAVEX (Microsoft)
        sd2        : SD2 (Sound Designer II)
        flac       : FLAC (Free Lossless Audio Codec)
        caf        : CAF (Apple Core Audio File)
        wve        : WVE (Psion Series 3)
        prc        : WVE (Psion Series 3)
        ogg        : OGG (OGG Container format)
        oga        : OGG (OGG Container format)
        mpc        : MPC (Akai MPC 2k)
        rf64       : RF64 (RIFF 64)
Clone this wiki locally