Penguin
Annotated edit history of ogg123(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 JohnMcPherson 1 !!NAME
2 ogg123 - plays Ogg Vorbis files
3
4
5
6 !!SYNOPSIS
7 __ogg123 __ [[ __-vqzVh__ ] [[ __-k__ ''seconds '' ] [[ __-x__ ''nth'' ] [[ __-y__ ''ntimes'' ] [[ __-b__ ''buffer_size '' ] [[ __-d__ ''driver '' [[ __-o__ ''option:value'' ] [[ __-f__ ''filename'' ] ] ''file'' __...__ | ''directory'' __...__ | ''URL'' __...__
8
9
10
11 !!DESCRIPTION
12 __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. If a directory is given, all of the files in it or its subdirectories will be played.
13
14
15
16 !!OPTIONS
17
18 ;--audio-buffer n: Use an output audio buffer of approximately 'n' kilobytes.
19 ;-@ playlist, --list playlist: Play all of the files named in the file 'playlist'. The playlist should have one filename, directory name, or URL per line. Blank lines are permitted. Directories will be treated in the same way as on the command line.
20 ;-b n, --buffer n: Use an input buffer of approximately 'n' kilobytes.
21 ;-p n, --prebuffer n: Prebuffer 'n' percent of the input buffer. Playback won't begin until this prebuffer is complete.
22 ;-d device, --device device: Specify output device. See __DEVICES__ section for a list of devices. Any number of devices may be specified.
23 ;-f filename, --file filename: Specify output file for file devices. The filename "-" writes to standard out. If the file already exists, __ogg123__ will overwrite it.
24 ;-h, --help: Show command help.
25 ;-k n, --skip n: Skip the first 'n' seconds
26 ;-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.
27 ;-q, --quiet: Quiet mode. No messages are displayed.
28 ;-V, --version: Display version information.
29 ;-v, --verbose: Increase verbosity.
30 ;-x n, --nth: Play every 'n'th decoded block. Has the effect of playing audio at 'n' times faster than normal speed.
31 ;-y n, --ntimes: Repeat every played block 'n' times. Has the effect of playing audio 'n' times slower than normal speed. May be with -x for interesting fractional speeds.
32 ;-z, --shuffle: Play files in pseudo-random order.
33
34
35
36 !!DEVICES
37
38
39 __ogg123__ supports a variety of audio output devices through libao. Only those devices supported by the target platform will be available. The __-f__ option may only be used with devices that write to files.
40
41
42 ;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.
43
44
45 ;oss: Open Sound System driver for Linux and FreeBSD.
46 Options:
47
48 ;dsp: DSP device for soundcard. Defaults to __/dev/dsp.__
49
50
51
52
53 ;sun: Sun Audio driver for NetBSD, OpenBSD, and Solaris.
54 Options:
55
56 ;dev: Audio device for soundcard. Defaults to __/dev/audio.__
57
58
59
60
61 ;alsa: Advanced Linux Sound Architecture.
62 Options:
63
64 ;card: Sound card number. (Default = 0)
65 ;dev: Device number on the sound card. (Default = 0)
66 ;buf_size: Override the default buffer size (in bytes).
67
68
69
70
71 ;irix: IRIX audio driver.
72
73
74 ;arts: aRts Sound Daemon.
75
76
77 ;esd: Enlightened Sound Daemon.
78 Options:
79
80 ;host: The hostname where esd is running. This can include a port number after a colon, as in "whizbang.com:555". (Default = localhost)
81
82
83
84
85 ;au: Sun audio file output. Writes the audio samples in AU format. The AU format supports writing to unseekable files, like standard out. In such circumstances, the AU header will specify the sample format, but not the length of the recording.
86
87
88 ;raw: Raw sample output. Writes raw audio samples to a file.
89 Options:
90
91 ;byteorder: Choose big endian, little endian, or native byte order. (Default = "native")
92
93
94
95
96 ;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. WAV files cannot be written to unseekable files, such as standard out. Use the AU format instead.
97
98
99
100 !!EXAMPLES
101
102
103 The __ogg123__ command line is fairly flexible, perhaps confusingly so. Here are some sample command lines and an explanation of what they do.
104
105
106
107 Play on the default soundcard:
108 __ogg123 test.ogg__
109
110
111
112
113 Play all of the files in the directory ~/music and its subdirectories.
114 __ogg123 ~/music__
115
116
117
118
119 Play a file using the OSS driver:
120 __ogg123 -d oss test.ogg__
121
122
123 Pass the "dsp" option to the OSS driver:
124 __ogg123 -d oss -o dsp:/dev/mydsp __
125
126
127
128
129 Use the ESD driver
130 __ogg123 -d esd test.ogg__
131
132
133
134
135 Use the WAV driver with the output file, "test.wav":
136 __ogg123 -d wav -f test.wav test.ogg__
137
138
139
140
141 Listen to a file while you write it to a WAV file:
142 __ogg123 -d oss -d wav -f test.wav test.ogg__
143
144
145
146
147 Note that options apply to the device declared to the left:
148 __ogg123 -d oss -o dsp:/dev/mydsp -d raw -f test2.raw -o byteorder:big test.ogg__
149
150
151
152
153 Stress test your harddrive:
154 __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__
155
156
157
158
159 Create an echo effect with esd and a slow computer:
160 __ogg123 -d esd -d esd test.ogg__
161
162
163
164 !!INTERRUPT
165 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.
166
167 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.
168
169
170
171 !!FILES
172
173
174
175 ;/etc/libao.conf : Can be used to set the default output device for all libao programs.
176
177
178 ;~/.libao : Per-user config file to override the system wide output device settings.
179
180
181
182
183
184 !!BUGS
185
186
187 Piped WAV files may cause strange behavior in other programs. This is because WAV files store the data length in the header. However, the output driver does not know the length when it writes the header, and there is no value that means "length unknown". Use the raw or au output driver if you need to use ogg123 in a pipe.
188
189
190
191 !!SEE ALSO
192 libao.conf(5)
193
194
195
196 !!AUTHORS
197
198
199
200 Program Authors:
201 ;:
202 Kenneth Arnold <kcarnold@yahoo.com>
203 Stan Seibert <indigo@aztec.asu.edu>
204
205
206
207
208 Manpage Author:
209 ;:
210 Stan Seibert <indigo@aztec.asu.edu>
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.