1 .\" Process this file with
2 .\" groff -man -Tascii ogg123.1
4 .TH ogg123 1 "2003 September 1" "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.
123 Null driver. All audio data is discarded. (Note: Audio data is not
126 !) You could use this driver to test raw decoding speed without
130 Advanced Linux Sound Architecture.
135 ALSA device label to use. The system default is used by default.
136 Examples include "plughw:0,0" for the first soundcard, and "plughw:1,0" for
137 the second. For more information, see
138 http://alsa.opensrc.org/ALSA+device+labels
140 Override the default buffer size (in bytes).
148 Enlightened Sound Daemon.
153 The hostname where esd is running. This can include a port number
154 after a colon, as in "whizbang.com:555". (Default = localhost)
162 Open Sound System driver for Linux and FreeBSD.
167 DSP device for soundcard. Defaults to
173 Sun Audio driver for NetBSD, OpenBSD, and Solaris.
178 Audio device for soundcard. Defaults to
184 Sun audio file output. Writes the audio samples in AU format. The AU
185 format supports writing to unseekable files, like standard out. In
186 such circumstances, the AU header will specify the sample format, but
187 not the length of the recording.
190 Raw sample output. Writes raw audio samples to a file.
195 Choose big endian, little endian, or native byte order. (Default = "native")
200 WAV file output. Writes the sound data to disk in uncompressed form.
201 If multiple files are played, all of them will be concatenated into
202 the same WAV file. WAV files cannot be written to unseekable files,
203 such as standard out. Use the AU format instead.
210 command line is fairly flexible, perhaps confusingly so. Here are
211 some sample command lines and an explanation of what they do.
214 Play on the default soundcard:
220 Play all of the files in the directory ~/music and its subdirectories.
226 Play a file using the OSS driver:
228 .B ogg123 -d oss test.ogg
232 Pass the "dsp" option to the OSS driver:
234 .B ogg123 -d oss -o dsp:/dev/mydsp
240 .B ogg123 -d esd test.ogg
244 Use the WAV driver with the output file, "test.wav":
246 .B ogg123 -d wav -f test.wav test.ogg
250 Listen to a file while you write it to a WAV file:
252 .B ogg123 -d oss -d wav -f test.wav test.ogg
256 Note that options apply to the device declared to the left:
258 .B ogg123 -d oss -o dsp:/dev/mydsp -d raw -f test2.raw -o byteorder:big test.ogg
262 Stress test your harddrive:
264 .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
268 Create an echo effect with esd and a slow computer:
270 .B ogg123 -d esd -d esd test.ogg
277 at any time by pressing Ctrl-C. If you are playing multiple
278 files, this will stop the current file and begin playing the
279 next one. If you want to abort playing immediately instead
280 of skipping to the next file, press Ctrl-C within the first
281 second of the playback of a new file.
283 Note that the result of pressing Ctrl-C might not be audible
284 immediately, due to audio data buffering in the audio device.
285 This delay is system dependent, but it is usually not more
286 than one or two seconds.
292 Can be used to set the default output device for all libao programs.
296 Per-user config file to override the system wide output device settings.
301 Piped WAV files may cause strange behavior in other programs. This is
302 because WAV files store the data length in the header. However, the
303 output driver does not know the length when it writes the header, and
304 there is no value that means "length unknown". Use the raw or au
305 output driver if you need to use ogg123 in a pipe.
312 Kenneth Arnold <kcarnold-xiph@arnoldnet.net>
314 Stan Seibert <volsung@xiph.org>
320 Stan Seibert <volsung@xiph.org>
325 \fBlibao.conf\fR(5), \fBoggenc\fR(1), \fBvorbiscomment\fR(1), \fBogginfo\fR(1)