Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Cyber Angels

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 75 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       ogg123  [ -vqzVh ] [ -k seconds ] [ -x nth ] [ -y ntimes ]
       [ -b buffer_size ] [ -d driver [ -o option:value  ]  [  -f
       filename ] ] file ...  | directory ...  | URL ...


       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  subdi­
       rectories will be played.


       --audio-buffer n
              Use  an  output  audio  buffer of approximately 'n'

       -@ 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.  Play­
              back 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

       -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

       -x n, --nth
              Play  every 'n'th decoded block.  Has the effect of
              playing audio  at  'n'  times  faster  than  normal

       -y n, --ntimes
              Repeat  every  played  block  'n'  times.   Has the
              effect of playing audio 'n' times slower than  nor­
              mal  speed.   May  be with -x for interesting frac­
              tional speeds.

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


       ogg123 supports a variety of audio output devices  through
       libao.   Only  those devices supported by the target plat­
       form 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.

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

       sun    Sun  Audio driver for NetBSD, OpenBSD, and Solaris.

                      dev    Audio    device    for    soundcard.
                             Defaults to /dev/audio.

       alsa   Advanced Linux Sound Architecture.

                      card   Sound card number.  (Default = 0)

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

                             Override the default buffer size (in
                             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  cir­
              cumstances,  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

                             Choose big endian, little endian, or
                             native  byte  order.    (Default   =

       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


       The ogg123 command line is fairly flexible,  perhaps  con­
       fusingly  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
              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

              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

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


       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 audi­
       ble  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.


              Can  be  used  to set the default output device for
              all libao programs.

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


       Piped  WAV  files may cause strange behavior in other pro­
       grams.  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.


                          July 22, 2001                 ogg123(1)



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.15 Seconds