ogg123(1)

NAME
ogg123 - plays Ogg Vorbis files

SYNOPSIS
ogg123 [ -vqzVh ] [ -k seconds ] [ -d driver [ -o option:value ] ] file ... | URL ...

DESCRIPTION
ogg123 reads Ogg Vorbis audio files and decodes them to the devices specified on the command line. By default, ogg123 writes to the standard sound device, but output can be sent to any number of devices. Files can be read from the file system, or URLs can be streamed via HTTP.

OPTIONS

-b n, --buffer n
    Use a buffer of 'n' chunks (4096 bytes)

-d device, --device device
    Specify output device. See DEVICES section for a list of devices. Any number of devices may be specified.

-h, --help
    Show command help.

-k n, --skip n
    Skip the first 'n' seconds

-o option:value, --device-option option:value
    Assigns the option option to value for the preceding device. See DEVICES for a list of valid options for each device.

-q, --quiet
    Quiet mode. No messages are displayed.

-V, --version
    Display version information.

-v, --verbose
    Increase verbosity. (Currently not implemented.)

-z, --shuffle
    Play files in random order.

DEVICES
ogg123 supports a variety of audio output devices. Only those devices supported by the target platform will be compiled in.

null
    Null driver. All audio data is discarded. (Note: Audio data is not written to /dev/null !) You could use this driver to test raw decoding speed without output overhead.

oss Open Sound System driver for Linux and {Net,Free,Open}BSD.
    Options:

        dsp DSP device for soundcard. Defaults to /dev/dsp.

alsa
    Advanced Linux Sound Architecture.
    Options:

        card
            Sound card number. (Default = 0)

        dev Device number on the sound card. (Default = 0)

        buf_size
            Override the default buffer size (in bytes).

esd Enlightened Sound Daemon.
    Options:

        host
            The hostname where esd is running. This can include a port number after a colon, as in "whizbang.com:555". (Default = localhost)

solaris
    Solaris audio driver. Note that this driver has not been tested!

irix
    IRIX audio driver. Note that this driver has not been tested!

wav WAV file output. Writes the sound data to disk in uncompressed form. If multiple files are played, all of them will be concatenated into the same WAV file.
    Options:

        file
            Sets the output WAV file. (Default = "output.wav")

EXAMPLES
The ogg123 command line is fairly flexible, perhaps confusingly so. Here are some sample command lines and an explanation of what they do.

Play on the default soundcard:
    ogg123 test.ogg

Play using the OSS driver:
    ogg123 -d oss test.ogg

Pass the "dsp" option to the OSS driver:
    ogg123 -d oss -o dsp:/dev/mydsp

Use the ESD driver
    ogg123 -d esd test.ogg

Use the WAV driver with the default output file, "ouput.wav":
    ogg123 -d wav test.ogg

Listen to a file while you write it to a WAV file:
    ogg123 -d oss -d wav -o file:test.wav test.ogg

Note that options apply to the device declared to the left:
    ogg123 -d oss -o dsp:/dev/mydsp -d wav -o file:test2.wav test.ogg

Stress test your harddrive:
    ogg123 -d oss -d wav -o file:1.wav -d wav -o file:2.wav -d wav -o file:3.wav -d wav -o file:4.wav -d wav -o file:5.wav test.ogg

Create an echo effect with esd and a slow computer:
    ogg123 -d esd -d esd test.ogg

INTERRUPT
You can abort ogg123 at any time by pressing Ctrl-C. If you are playing multiple files, this will stop the current file and begin playing the next one. If you want to abort playing immediately instead of skipping to the next file, press Ctrl-C within the first second of the playback of a new file.

Note that the result of pressing Ctrl-C might not be audible immediately, due to audio data buffering in the audio device. This delay is system dependent, but it is usually not more than one or two seconds.

FILES

/etc/ogg123rc
    Can be used to set the default output device for ogg123. See the included file ogg123rc-example for an example.

~/.ogg123rc
    Per-user config file to override the system wide output device settings.

BUGS
The WAV driver does not interpret the file "-" as stdout.

AUTHORS

Program Authors:
    Kenneth Arnold <kcarnold@yahoo.com>
    Stan Seibert <indigo@aztec.asu.edu>

Manpage Author:
    Stan Seibert <indigo@aztec.asu.edu>