Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
ogg123(1)
Edit
PageHistory
Diff
Info
LikePages
!!NAME ogg123 - plays Ogg Vorbis files !!SYNOPSIS __ogg123 __ [[ __-vqzVh__ ] [[ __-k__ ''seconds '' ] [[ __-x__ ''nth'' ] [[ __-y__ ''ntimes'' ] [[ __-b__ ''buffer_size '' ] [[ __-d__ ''driver '' [[ __-o__ ''option:value'' ] [[ __-f__ ''filename'' ] ] ''file'' __...__ | ''directory'' __...__ | ''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. If a directory is given, all of the files in it or its subdirectories will be played. !!OPTIONS ;--audio-buffer n: Use an output audio buffer of approximately 'n' kilobytes. ;-@ 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. ;-b n, --buffer n: Use an input buffer of approximately 'n' kilobytes. ;-p n, --prebuffer n: Prebuffer 'n' percent of the input buffer. Playback won't begin until this prebuffer is complete. ;-d device, --device device: Specify output device. See __DEVICES__ section for a list of devices. Any number of devices may be specified. ;-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. ;-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. ;-x n, --nth: Play every 'n'th decoded block. Has the effect of playing audio at 'n' times faster than normal speed. ;-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. ;-z, --shuffle: Play files in pseudo-random order. !!DEVICES __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. ;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 FreeBSD. Options: ;dsp: DSP device for soundcard. Defaults to __/dev/dsp.__ ;sun: Sun Audio driver for NetBSD, OpenBSD, and Solaris. Options: ;dev: Audio device for soundcard. Defaults to __/dev/audio.__ ;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). ;irix: IRIX audio driver. ;arts: aRts Sound Daemon. ;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) ;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. ;raw: Raw sample output. Writes raw audio samples to a file. Options: ;byteorder: Choose big endian, little endian, or native byte order. (Default = "native") ;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. !!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 all of the files in the directory ~/music and its subdirectories. __ogg123 ~/music__ Play a file 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 output file, "test.wav": __ogg123 -d wav -f test.wav test.ogg__ Listen to a file while you write it to a WAV file: __ogg123 -d oss -d wav -f test.wav test.ogg__ Note that options apply to the device declared to the left: __ogg123 -d oss -o dsp:/dev/mydsp -d raw -f test2.raw -o byteorder:big test.ogg__ Stress test your harddrive: __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__ 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/libao.conf : Can be used to set the default output device for all libao programs. ;~/.libao : Per-user config file to override the system wide output device settings. !!BUGS 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. !!SEE ALSO libao.conf(5) !!AUTHORS Program Authors: ;: Kenneth Arnold <kcarnold@yahoo.com> Stan Seibert <indigo@aztec.asu.edu> Manpage Author: ;: Stan Seibert <indigo@aztec.asu.edu>
No page links to
ogg123(1)
.
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.