1 .\" Process this file with
2 .\" groff -man -Tascii ogg123.1
4 .TH ogg123 1 "2010 March 24" "Xiph.Org Foundation" "Vorbis Tools"
7 ogg123 \- plays Ogg Vorbis files
47 reads Ogg Vorbis audio files and decodes them to the devices specified
48 on the command line. By default,
50 writes to the standard sound device, but output can be sent to any
51 number of devices. Files can be read from the file system, or URLs
52 can be streamed via HTTP. If a directory is given, all of the files in
53 it or its subdirectories will be played.
56 .IP "--audio-buffer n"
57 Use an output audio buffer of approximately 'n' kilobytes.
58 .IP "-@ playlist, --list playlist"
59 Play all of the files named in the file 'playlist'. The playlist should have
60 one filename, directory name, or URL per line. Blank lines are permitted.
61 Directories will be treated in the same way as on the command line.
62 .IP "-b n, --buffer n"
63 Use an input buffer of approximately 'n' kilobytes. HTTP-only option.
64 .IP "-p n, --prebuffer n"
65 Prebuffer 'n' percent of the input buffer. Playback won't begin until
66 this prebuffer is complete. HTTP-only option.
67 .IP "-d device, --device device"
68 Specify output device. See
70 section for a list of devices. Any number of devices may be specified.
71 .IP "-f filename, --file filename"
72 Specify output file for file devices. The filename "-" writes to standard
73 out. If the file already exists,
79 Skip the first 'n' seconds. 'n' may also be in minutes:seconds or
80 hours:minutes:seconds form.
82 Stops playing 'n' seconds from the start of the stream. 'n' may also have the
83 same format as used in the
86 .IP "-o option[:value], --device-option option[:value]"
91 for the preceding device. See
93 for a list of valid options for each device.
95 Quiet mode. No messages are displayed.
97 Display version information.
101 Play every 'n'th decoded block. Has the effect of playing audio at 'n' times
102 faster than normal speed.
104 Repeat every played block 'n' times. Has the effect of playing audio 'n'
105 times slower than normal speed. May be with -x for interesting fractional
108 Repeat playlist indefinitely.
110 Play files in pseudo-random order.
112 Play files in pseudo-random order forever.
117 supports a variety of audio output devices through libao. Only those
118 devices supported by the target platform will be available. The
120 option may only be used with devices that write to files.
122 Options supported by all devices:
125 Turn on debugging output [if any] for a chosen driver.
127 Force a specific output channel ordering for a given device.
130 seperated list of AO style channel names, eg, L,R,C,LFE,BL,BR,SL,SR.
132 Turn on verbose output for a chosen driver. the -v option will also set the
133 driver verbose option.
135 Force chosen driver to be completely silent. Even errors will not produce any
136 output. -q will also set the driver quiet option.
141 AIX live output driver. Options:
144 Set AIX output device to
150 Advanced Linux Sound Architecture live output driver. Options:
152 .IP buffer_time:value
153 Override the default hardware buffer size (in milliseconds).
155 ALSA device label to use. Examples include "hw:0" for the first soundcard
156 and "hw:1" for the second. The alsa driver normally chooses one of
161 automatically depending on number of output channels. For more information,
162 see http://alsa.opensrc.org/ALSA+device+labels
163 .IP period_time:value
164 Override the default hardware period size (in microseconds).
165 .IP period_time:value
166 Override the default hardware period size (in microseconds).
169 is set to "yes" or "no" to override the compiled-in default to use or not use
170 mmap device access. In the past, some buggy alsa drivers have behaved better when
171 not using mmap access at the penalty of slightly higher CPU usage.
176 aRts Sound Daemon live output driver. Options:
180 is set to "yes" or "no" to allow opening the aRts playback device for multiply
181 concurrent playback. Although the driver works properly in multi mode, it is
182 known to occasionally crash the aRts server itself. Default behavior is "no".
187 Sun audio file output. Writes the audio samples in AU format. The AU
188 format supports writing to unseekable files like standard out. In
189 such circumstances, the AU header will specify the sample format, but
190 not the length of the recording.
194 Enlightened Sound Daemon live output. Options:
198 specifies the hostname where esd is running. This can include a port number
199 after a colon, as in "whizbang.com:555". (Default = localhost)
200 .IP client_name:value
201 Sets the client name for the new audio stream. Defaults to "libao client".
206 IRIX live output audio driver.
210 MacOS X 'AUHAL' live output driver. This driver supports MacOS X
211 10.5 and later (10.4 and earlier uses an earlier, incompatable
214 .IP buffer_time:value
215 Set the hardware buffer size to the equivalent of
222 Network Audio Server live output driver. Options:
225 Set size of audio buffer on server in bytes.
227 Set location of NAS server; See nas(1) for format.
232 Null driver. All audio data is discarded. (Note: Audio data is not
235 !) You could use this driver to test raw decoding speed without
240 Open Sound System driver for Linux and FreeBSD, versions 2, 3 and 4. Options:
243 DSP device for soundcard. Defaults to
249 Pulseaudio live audio sound driver. Options:
252 Specifies location of remote or alternate Pulseaudio server.
254 Specifies a non-default Pulseaudio sink for audio stream.
259 Raw file output. Writes raw audio samples to a file. Options:
262 Chooses big endian ("big"), little endian ("little"), or native ("native") byte order.
263 Default is native order.
268 RoarAudio Daemon live output driver. Options:
270 .IP "server:value, host:value"
271 Specifies location of remote RoarAudio server to use.
272 .IP "id:value, dev:value"
273 Specifies a non-default mixer within a RoarAudio server for audio stream.
275 Sets the role setting for the audio stream.
276 .IP client_name:value
277 Sets the client name for the new audio stream. Defaults to "libao client".
282 OpenBSD SNDIO live output driver. Options:
285 Specifies audio device to use for playback.
290 Sun Audio live output driver for NetBSD, OpenBSD, and Solaris. Options:
293 Audio device for soundcard. Defaults to
300 WAV file output. Writes the sound data to disk in uncompressed form.
301 If multiple files are played, all of them will be concatenated into
302 the same WAV file. WAV files cannot be written to unseekable files,
303 such as standard out. Use the AU format instead.
307 Windows MultiMedia live output driver for Win98 and later. Options:
310 Selects audio device to use for playback by device name.
312 Selects audio device to use for playback by device id (card number).
319 command line is fairly flexible, perhaps confusingly so. Here are
320 some sample command lines and an explanation of what they do.
323 Play on the default soundcard:
329 Play all of the files in the directory ~/music and its subdirectories.
335 Play a file using the OSS driver:
337 .B ogg123 -d oss test.ogg
341 Pass the "dsp" option to the OSS driver:
343 .B ogg123 -d oss -o dsp:/dev/mydsp
349 .B ogg123 -d esd test.ogg
353 Use the WAV driver with the output file, "test.wav":
355 .B ogg123 -d wav -f test.wav test.ogg
359 Listen to a file while you write it to a WAV file:
361 .B ogg123 -d oss -d wav -f test.wav test.ogg
365 Note that options apply to the device declared to the left:
367 .B ogg123 -d oss -o dsp:/dev/mydsp -d raw -f test2.raw -o byteorder:big test.ogg
371 Stress test your harddrive:
373 .B ogg123 -d oss -d wav -f 1.wav -d wav -f 2.wav -d wav -f 3.wav -d wav -f 4.wav -d wav -f 5.wav test.ogg
377 Create an echo effect with esd and a slow computer:
379 .B ogg123 -d esd -d esd test.ogg
386 at any time by pressing Ctrl-C. If you are playing multiple
387 files, this will stop the current file and begin playing the
388 next one. If you want to abort playing immediately instead
389 of skipping to the next file, press Ctrl-C within the first
390 second of the playback of a new file.
392 Note that the result of pressing Ctrl-C might not be audible
393 immediately, due to audio data buffering in the audio device.
394 This delay is system dependent, but it is usually not more
395 than one or two seconds.
401 Can be used to set the default output device for all libao programs.
405 Per-user config file to override the system wide output device settings.
410 Piped WAV files may cause strange behavior in other programs. This is
411 because WAV files store the data length in the header. However, the
412 output driver does not know the length when it writes the header, and
413 there is no value that means "length unknown". Use the raw or au
414 output driver if you need to use ogg123 in a pipe.
421 Kenneth Arnold <kcarnold-xiph@arnoldnet.net>
423 Stan Seibert <volsung@xiph.org>
429 Stan Seibert <volsung@xiph.org>
434 \fBlibao.conf\fR(5), \fBoggenc\fR(1), \fBvorbiscomment\fR(1), \fBogginfo\fR(1)