{
    "mode": "man",
    "parameter": "mpg123",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/mpg123/1/json",
    "generated": "2026-08-30T02:04:12Z",
    "synopsis": "mpg123 [ options ] file-or-URL...",
    "sections": {
        "NAME": {
            "content": "mpg123 - play audio MPEG 1.0/2.0/2.5 stream (layers 1, 2 and 3)\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mpg123 [ options ] file-or-URL...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "mpg123  reads  one  or more files (or standard input if ``-'' is specified) or URLs and plays\nthem on the audio device (default) or outputs them to stdout.  file/URL is assumed to  be  an\nMPEG audio bit stream.\n",
            "subsections": []
        },
        "OPERANDS": {
            "content": "The following operands are supported:\n\nfile(s) The path name(s) of one or more input files.  They must be valid MPEG-1.0/2.0/2.5 au‐\ndio  layer  1,  2  or 3 bit streams.  If a dash ``-'' is specified, MPEG data will be\nread from the standard input.  Furthermore, any name  starting  with  ``http://''  or\n``https://''  is recognized as URL (see next section), while a leading ``file://'' is\nbeing stripped for normal local file access, for consistency (since mpg123 1.30.1).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "mpg123 options may be either the traditional POSIX one letter options, or the GNU style  long\noptions.   POSIX  style  options start with a single ``-'', while GNU long options start with\n``--''.  Option arguments (if needed) follow separated by whitespace (not ``='').  Note  that\nsome options can be absent from your installation when disabled in the build process.\n",
            "subsections": []
        },
        "INPUT OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-k _ --skip _",
                    "content": "Skip first num frames.  By default the decoding starts at the first frame.\n",
                    "flag": "-k",
                    "long": "--skip"
                },
                {
                    "name": "-n _ --frames _",
                    "content": "Decode only num frames.  By default the complete stream is decoded.\n",
                    "flag": "-n",
                    "long": "--frames"
                },
                {
                    "name": "--fuzzy",
                    "content": "Enable  fuzzy  seeks (guessing byte offsets or using approximate seek points from Xing\nTOC).  Without that, seeks need a first scan through the file before they can jump  at\npositions.   You  can  decide here: sample-accurate operation with gapless features or\nfaster (fuzzy) seeking.\n",
                    "long": "--fuzzy"
                },
                {
                    "name": "-y --no-resync",
                    "content": "Do NOT try to resync and continue decoding if an error occurs in the input file.  Nor‐\nmally,  mpg123  tries  to keep the playback alive at all costs, including skipping in‐\nvalid material and searching new header when something goes wrong.  With  this  switch\nyou can make it bail out on data errors (and perhaps spare your ears a bad time). Note\nthat this switch has been renamed from --resync.  The old name still works, but is not\nadvertised or recommended to use (subject to removal in future).\n",
                    "flag": "-y",
                    "long": "--no-resync"
                },
                {
                    "name": "-F --no-frankenstein",
                    "content": "Disable  support  for Frankenstein streams. Normally, mpg123 stays true to the concept\nof MPEG audio being just a concatenation of MPEG frames.  It  will  continue  decoding\neven  if  the type of MPEG frames varies wildly. With this switch, it will only decode\nthe input as long as it does not change its character (from  layer  I  to  layer  III,\nchanging  sampling rate, from mono to stereo), silently assuming end of stream on such\noccasion. The switch also stops decoding of compatible MPEG frames  if  there  was  an\nInfo  frame  (Xing  header,  Lame  tag)  that  contained a length of the track in MPEG\nframes.  This comes a bit closer to the notion of a MP3 file as a  defined  collection\nof  MPEG  frames that belong together, but gets rid of the flexibility that can be fun\nat times but mostly is hell for the programmer of the parser and decoder ...\n\n--network  backend\nSelect network  backend (helper program), choices are usually auto,  wget,  and  curl.\nAuto means to try the first available backend.\n\n--resync-limit bytes\nSet number of bytes to search for valid MPEG data once lost in stream; <0 means search\nwhole stream.  If you know there are huge chunks of invalid data in your files... here\nis  your hammer.  Note: Only since version 1.14 this also increases the amount of junk\nskipped on beginning.\n",
                    "flag": "-F",
                    "long": "--no-frankenstein"
                },
                {
                    "name": "-u _ --auth _",
                    "content": "HTTP authentication to use  when  receiving  files  via  HTTP.   The  format  used  is\nuser:password.  Mpg123  will  clear  this quickly, but it may still appear in sight of\nother users or even just in your shell history. You may seek alternative ways to spec‐\nify that to your network backend.\n\n--auth-file authfile\nProvide the authentication info via given file instead of command line directly.\n",
                    "flag": "-u",
                    "long": "--auth"
                },
                {
                    "name": "--ignore-mime",
                    "content": "Ignore MIME types given by HTTP server. If you know better and want mpg123  to  decode\nsomething the server thinks is image/png, then just do it.\n",
                    "long": "--ignore-mime"
                },
                {
                    "name": "--no-icy-meta",
                    "content": "Do not accept ICY meta data.\n\n--streamdump filename\nDump  a copy of the input data (as read by libmpg123) to the given file.  This enables\nyou to store a web stream to disk while playing, or just create a concatenation of the\nlocal files you play for ... why not?\n\n--icy-interval bytes\nThis setting enables you to play a stream dump containing ICY metadata  at  the  given\ninterval  in  bytes  (the  value of the icy-metaint HTTP response header). Without it,\nsuch a stream will play, but will cause regular decoding glitches with resync.\n",
                    "long": "--no-icy-meta"
                },
                {
                    "name": "--no-seekbuffer",
                    "content": "Disable the default micro-buffering of non-seekable streams that gives  the  parser  a\nsafer footing.\n\n-@ file, --list file\nRead  filenames  and/or URLs of MPEG audio streams from the specified file in addition\nto the ones specified on the command line (if any).  Note that file can be  either  an\nordinary  file,  a  dash ``-'' to indicate that a list of filenames/URLs is to be read\nfrom the standard input, or an URL pointing to a an appropriate list file.  Note: only\none -@ option can be used (if more than one is specified, only the last  one  will  be\nrecognized).  Furthermore,  for HTTP resources, the MIME type information will be used\nto re-open an actual MPEG stream as such instead of treating it as playlist  file.  So\nyou  could  just always use -@ for web resources without bothering if it is a playlist\nor already the resolved stream address.\n",
                    "long": "--no-seekbuffer"
                },
                {
                    "name": "-l _ --listentry _",
                    "content": "Of the playlist, play specified entry only.  n is the number of entry starting at 1. A\nvalue of 0 is the default and means playing the whole list,  a  negative  value  means\nshowing of the list of titles with their numbers...\n",
                    "flag": "-l",
                    "long": "--listentry"
                },
                {
                    "name": "--continue",
                    "content": "Enable  playlist  continuation  mode. This changes frame skipping to apply only to the\nfirst track and also continues to play following tracks in playlist after the selected\none. Also, the option to play a number of frames only applies to the  whole  playlist.\nBasically,  this  tries to treat the playlist more like one big stream (like, an audio\nbook).  The current track number in list (1-based)  and  frame  number  (0-based)  are\nprinted at exit (useful if you interrupted playback and want to continue later).  Note\nthat  the continuation info is printed to standard output unless the switch for piping\naudio data to standard out is used. Also, it really makes sense to  work  with  actual\nplaylist  files  instead  of lists of file names as arguments, to keep track positions\nconsistent.\n\n--loop times\nfor looping track(s) a certain number of times, < 0  means  infinite  loop  (not  with\n--random!).\n",
                    "long": "--continue"
                },
                {
                    "name": "--keep-open",
                    "content": "For remote control mode: Keep loaded file open after reaching end.\n\n--timeout seconds\nTimeout in (integer) seconds before declaring a stream dead (if <= 0, wait forever).\n",
                    "long": "--keep-open"
                },
                {
                    "name": "-z --shuffle",
                    "content": "Shuffle  play.  Randomly shuffles the order of files specified on the command line, or\nin the list file.\n",
                    "flag": "-z",
                    "long": "--shuffle"
                },
                {
                    "name": "-Z --random",
                    "content": "Continuous random play.  Keeps picking a random file from the command line or the play\nlist.  Unlike shuffle play above, random play never ends, and plays  individual  songs\nmore than once.\n",
                    "flag": "-Z",
                    "long": "--random"
                },
                {
                    "name": "-i, --index",
                    "content": "Index  / scan through the track before playback.  This fills the index table for seek‐\ning (if enabled in libmpg123) and may make the operating system cache  the  file  con‐\ntents for smoother operating on playback.\n\n--index-size size\nSet the number of entries in the seek frame index table.\n\n--preframes num\nSet  the  number  of  frames  to be read as lead-in before a seeked-to position.  This\nserves to fill the layer 3 bit reservoir, which is needed to  faithfully  reproduce  a\ncertain  sample  at  a certain position.  Note that for layer 3, a minimum of 1 is en‐\nforced (because of frame overlap), and for layer 1 and 2, this is limited to 2 (no bit\nreservoir in that case, but engine spin-up anyway).\n\n\nOUTPUT and PROCESSING OPTIONS",
                    "flag": "-i",
                    "long": "--index"
                },
                {
                    "name": "-o _ --output _",
                    "content": "Select audio output module. You can provide a comma-separated list to  use  the  first\none that works.  Also see -a.\n",
                    "flag": "-o",
                    "long": "--output"
                },
                {
                    "name": "--list-modules",
                    "content": "List the available modules.\n",
                    "long": "--list-modules"
                },
                {
                    "name": "--list-devices",
                    "content": "List  the available output devices for given output module. If there is no functional‐\nity to list devices in the chosen module, an error will be  printed  and  mpg123  will\nexit with a non-zero code.\n",
                    "long": "--list-devices"
                },
                {
                    "name": "-a _ --audiodevice _",
                    "content": "Specify the audio device to use.  The default as well as the possible values depend on\nthe  active output. For the JACK output, a comma-separated list of ports to connect to\n(for each channel) can be specified.\n",
                    "flag": "-a",
                    "long": "--audiodevice"
                },
                {
                    "name": "-s --stdout",
                    "content": "The decoded audio samples are written to standard  output,  instead  of  playing  them\nthrough the audio device.  This option must be used if your audio hardware is not sup‐\nported  by mpg123.  The output format per default is raw (headerless) linear PCM audio\ndata, 16 bit, stereo, host byte order (you can force mono or 8bit).\n",
                    "flag": "-s",
                    "long": "--stdout"
                },
                {
                    "name": "-O _ --outfile",
                    "content": "Write raw output into a file (instead of simply redirecting standard output to a  file\nwith the shell).\n",
                    "flag": "-O",
                    "long": "--outfile"
                },
                {
                    "name": "-w _ --wav",
                    "content": "Write  output  as WAV file. This will cause the MPEG stream to be decoded and saved as\nfile file , or standard output if - is used as file name. You can also  use  --au  and\n--cdr  for  AU  and CDR format, respectively. Note that WAV/AU writing to non-seekable\nfiles, or redirected stdout, needs some thought. Since 1.16.0, the  logic  changed  to\nwriting  the  header with the first actual data. This avoids spurious WAV headers in a\npipe, for example. The result of decoding nothing to WAV/AU is a file consisting  just\nof  the  header  when  it is seekable and really nothing when not (not even a header).\nCorrectly writing data with prophetic headers to stdout is no easy business.\n\n--au file\nDoes not play the MPEG file but writes it to file in SUN audio format.  If -  is  used\nas the filename, the AU file is written to stdout. See paragraph about WAV writing for\nheader fun with non-seekable streams.\n\n--cdr file\nDoes  not play the MPEG file but writes it to file as a CDR file.  If - is used as the\nfilename, the CDR file is written to stdout.\n",
                    "flag": "-w",
                    "long": "--wav"
                },
                {
                    "name": "--reopen",
                    "content": "Forces reopen of the audiodevice after ever song\n\n--cpu decoder-type\nSelects a certain decoder (optimized for specific CPU), for example i586 or MMX.   The\nlist  of  available  decoders  can vary; depending on the build and what your CPU sup‐\nports.  This option is only available when the build actually includes  several  opti‐\nmized decoders.\n",
                    "long": "--reopen"
                },
                {
                    "name": "--test-cpu",
                    "content": "Tests your CPU and prints a list of possible choices for --cpu.\n",
                    "long": "--test-cpu"
                },
                {
                    "name": "--list-cpu",
                    "content": "Lists all available decoder choices, regardless of support by your CPU.\n",
                    "long": "--list-cpu"
                },
                {
                    "name": "-g _ --gain _",
                    "content": "[DEPRECATED]  Set  audio hardware output gain (default: don't change). The unit of the\ngain value is hardware and output module dependent.  (This parameter is only  provided\nfor backwards compatibility and may be removed in the future without prior notice. Use\nthe audio player for playing and a mixer app for mixing, UNIX style!)\n",
                    "flag": "-g",
                    "long": "--gain"
                },
                {
                    "name": "-f _ --scale _",
                    "content": "Change scale factor (default: 32768).\n",
                    "flag": "-f",
                    "long": "--scale"
                },
                {
                    "name": "--rva-mix, --rva-radio",
                    "content": "Enable  RVA  (relative volume adjustment) using the values stored for ReplayGain radio\nmode / mix mode with all tracks roughly equal loudness.  The first  valid  information\nfound  in  ID3V2  Tags  (Comment  named RVA or the RVA2 frame) or ReplayGain header in\nLame/Info Tag is used.\n",
                    "long": "--rva-radio"
                },
                {
                    "name": "--rva-album, --rva-audiophile",
                    "content": "Enable RVA (relative volume adjustment) using the values stored for ReplayGain  audio‐\nphile  mode / album mode with usually the effect of adjusting album loudness but keep‐\ning relative loudness inside album.  The first valid information found in  ID3V2  Tags\n(Comment  named  RVAALBUM or the RVA2 frame) or ReplayGain header in Lame/Info Tag is\nused.\n",
                    "long": "--rva-audiophile"
                },
                {
                    "name": "-0 --single0 -1 --single1",
                    "content": "Decode only channel 0 (left) or channel 1 (right), respectively.   These  options  are\navailable for stereo MPEG streams only.\n",
                    "flag": "-1",
                    "long": "--single1"
                },
                {
                    "name": "-m --mono --mix --singlemix",
                    "content": "Mix both channels / decode mono. It takes less CPU time than full stereo decoding.\n",
                    "flag": "-m",
                    "long": "--singlemix"
                },
                {
                    "name": "--stereo",
                    "content": "Force stereo output\n",
                    "long": "--stereo"
                },
                {
                    "name": "-r _ --rate _",
                    "content": "Set  sample rate (default: automatic).  You may want to change this if you need a con‐\nstant bitrate independent of the mpeg stream rate. mpg123 automagically  converts  the\nrate. You should then combine this with --stereo or --mono.\n\n--resample method\nSet  resampling method to employ if forcing an output rate. Choices (case-insensitive)\nare NtoM, dirty, and fine. The fine resampler is the default. It  employs  libsyn123's\nlow-latency  fairly  efficient  resampler to postprocess the output from libmpg123 in‐\nstead of the fast but very crude NtoM decoder (drop sample method) that mpg123  offers\nsince  decades.  If you are really low on CPU time, choose NtoM, as the resampler usu‐\nally needs more time than the MPEG decoder itself.  The mpg123 program is smart enough\nto combine the 2to1 or 4to1 downsampling modes with  the  postprocessing  for  extreme\ndownsampling.\n",
                    "flag": "-r",
                    "long": "--rate"
                },
                {
                    "name": "-2 --2to1 -4 --4to1",
                    "content": "Performs  a  downsampling  of  ratio 2:1 (22 kHz from 44.1 kHz) or 4:1 (11 kHz) on the\noutput stream, respectively. Saves some CPU cycles, but of course throws away the high\nfrequencies, as the decoder does not bother producing them.\n\n--pitch value\nSet a pitch change (speedup/down, 0 is neutral; 0.05 is 5% speedup).  When not enforc‐\ning an output rate, this changes the output sampling rate, so it  only  works  in  the\nrange  your  audio system/hardware supports. When you combine this with a fixed output\nrate, it modifies a software resampling ratio instead.\n\n--8bit Forces 8bit output\n",
                    "flag": "-4",
                    "long": "--4to1"
                },
                {
                    "name": "--float",
                    "content": "Forces f32 encoding\n",
                    "long": "--float"
                },
                {
                    "name": "-e _ --encoding _",
                    "content": "Choose output sample encoding. Possible values look like f32 (32-bit floating  point),\ns32  (32-bit signed integer), u32 (32-bit unsigned integer) and the variants with dif‐\nferent numbers of bits (s24, u24, s16, u16, s8, u8) and  also  special  variants  like\nulaw  and  alaw 8-bit.  See the output of mpg123's longhelp for actually available en‐\ncodings.\n",
                    "flag": "-e",
                    "long": "--encoding"
                },
                {
                    "name": "-d _ --doublespeed _",
                    "content": "Only play every n'th frame.  This will cause the MPEG stream  to  be  played  n  times\nfaster,  which can be used for special effects.  Can also be combined with the --half‐\nspeed option to play 3 out of 4 frames etc.  Don't expect great sound quality when us‐\ning this option.\n",
                    "flag": "-d",
                    "long": "--doublespeed"
                },
                {
                    "name": "-h _ --halfspeed _",
                    "content": "Play each frame n times.  This will cause the MPEG stream to be played at 1/n'th speed\n(n times slower), which can be used for special effects. Can also be combined with the\n--doublespeed option to double every third frame or things like  that.   Don't  expect\ngreat sound quality when using this option.\n",
                    "flag": "-h",
                    "long": "--halfspeed"
                },
                {
                    "name": "-E _ --equalizer",
                    "content": "Enables  equalization,  taken  from file.  The file needs to contain 32 lines of data,\nadditional comment lines may be prefixed with #.   Each  data  line  consists  of  two\nfloating-point  entries,  separated  by  whitespace.  They specify the multipliers for\nleft and right channel of a certain frequency band, respectively.  The first line cor‐\nresponds to the lowest, the 32nd to the highest frequency band.   Note  that  you  can\ncontrol  the  equalizer  interactively  with the generic control interface.  Also note\nthat these are the 32 bands of the MPEG codec, not spaced like you  would  see  for  a\nusual  graphic equalizer. The upside is that there is zero computational cost in addi‐\ntion to decoding. The downside is that you roughly have bass in band 0,  (upper)  mids\nin band 1, treble in all others.\n",
                    "flag": "-E",
                    "long": "--equalizer"
                },
                {
                    "name": "--gapless",
                    "content": "Enable  code that cuts (junk) samples at beginning and end of tracks, enabling gapless\ntransitions between MPEG files when encoder padding and codec delays would prevent it.\nThis is enabled per default beginning with mpg123 version 1.0.0 .\n",
                    "long": "--gapless"
                },
                {
                    "name": "--no-gapless",
                    "content": "Disable the gapless code. That gives you MP3 decodings that include encoder delay  and\npadding plus mpg123's decoder delay.\n",
                    "long": "--no-gapless"
                },
                {
                    "name": "--no-infoframe",
                    "content": "Do  not  parse  the Xing/Lame/VBR/Info frame, decode it instead just like a stupid old\nMP3 hardware player.  This implies disabling of gapless playback as the necessary  in‐\nformation is in said metadata frame.\n",
                    "long": "--no-infoframe"
                },
                {
                    "name": "-D _ --delay _",
                    "content": "Insert a delay of n seconds before each track.\n",
                    "flag": "-D",
                    "long": "--delay"
                },
                {
                    "name": "-o h --headphones",
                    "content": "Direct audio output to the headphone connector (some hardware only; AIX, HP, SUN).\n",
                    "flag": "-o",
                    "long": "--headphones"
                },
                {
                    "name": "-o s --speaker",
                    "content": "Direct audio output to the speaker  (some hardware only; AIX, HP, SUN).\n",
                    "flag": "-o",
                    "long": "--speaker"
                },
                {
                    "name": "-o l --lineout",
                    "content": "Direct audio output to the line-out connector (some hardware only; AIX, HP, SUN).\n",
                    "flag": "-o",
                    "long": "--lineout"
                },
                {
                    "name": "-b _ --buffer _",
                    "content": "Use  an audio output buffer of size Kbytes.  This is useful to bypass short periods of\nheavy system activity, which would normally cause the audio output to be  interrupted.\nYou  should  specify  a  buffer size of at least 1024 (i.e. 1 Mb, which equals about 6\nseconds of audio data) or more; less than about 300 does not make much sense.  The de‐\nfault is 0, which turns buffering off.\n\n--preload fraction\nWait for the buffer to be filled to fraction before starting  playback  (fraction  be‐\ntween 0 and 1). You can tune this prebuffering to either get faster sound to your ears\nor safer uninterrupted web radio.  Default is 0.2 (wait for 20 % of buffer to be full,\nchanged from 1 in version 1.23).\n\n--devbuffer seconds\nSet  device  buffer in seconds; <= 0 means default value. This is the small buffer be‐\ntween the application and the audio backend, possibly  directly  related  to  hardware\nbuffers.\n",
                    "flag": "-b",
                    "long": "--buffer"
                },
                {
                    "name": "--smooth",
                    "content": "Keep  buffer  over track boundaries -- meaning, do not empty the buffer between tracks\nfor possibly some added smoothness.\n\n",
                    "long": "--smooth"
                }
            ]
        },
        "MISC OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-t --test",
                    "content": "Test mode.  The audio stream is decoded, but no output occurs.\n",
                    "flag": "-t",
                    "long": "--test"
                },
                {
                    "name": "-c --check",
                    "content": "Check for filter range violations (clipping), and report them for each  frame  if  any\noccur.\n",
                    "flag": "-c",
                    "long": "--check"
                },
                {
                    "name": "-v --verbose",
                    "content": "Increase  the  verbosity level.  For example, displays the frame numbers during decod‐\ning.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-q --quiet",
                    "content": "Quiet.  Suppress diagnostic messages.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-C --control",
                    "content": "Enable terminal control keys. This is enabled automatically if a terminal is detected.\nBy default use 's' or the space bar to stop/restart (pause, unpause) playback, 'f'  to\njump  forward  to the next song, 'b' to jump back to the beginning of the song, ',' to\nrewind, '.' to fast forward, and 'q' to quit.  Type 'h' for a full list  of  available\ncontrols.  The  A-B  loop feature with key 'o' changes the preset loop interval to the\ninterval between two presses of 'o', the third press (or 'p') ending the looped  play‐\nback. The key 'p' will use the updated loop interval after that.\n",
                    "flag": "-C",
                    "long": "--control"
                },
                {
                    "name": "--no-control",
                    "content": "Disable terminal control even if terminal is detected.\n",
                    "long": "--no-control"
                },
                {
                    "name": "--title",
                    "content": "In  an  xterm, rxvt, screen, iris-ansi (compatible, TERM environment variable is exam‐\nined), change the window's title to the name of song currently playing.\n\n--pauseloop seconds\nSet the length of the loop interval in terminal control fixed looping mode, away  from\nthe  default of 0.5 seconds, as a floating point number. This value can be overwritten\nat runtime using the A-B loop feature.\n\n--name name\nSet the name of this instance, possibly used in various places. This sets  the  client\nname for JACK output.\n",
                    "long": "--title"
                },
                {
                    "name": "--long-tag",
                    "content": "Display ID3 tag info always in long format with one line per item (artist, title, ...)\n\n--utf8 Regardless  of  environment,  print metadata in UTF-8 (otherwise, when not using UTF-8\nlocale, you'll get ASCII stripdown).\n",
                    "long": "--long-tag"
                },
                {
                    "name": "-R --remote",
                    "content": "Activate generic control interface.  mpg123 will then read and execute  commands  from\nstdin.  Basic  usage  is  ``load  <filename>  ''  to  play  some  file and the obvious\n``pause'', ``command.  ``jump <frame>'' will jump/seek to a given  point  (MPEG  frame\nnumber).  Issue ``help'' to get a full list of commands and syntax.\n",
                    "flag": "-R",
                    "long": "--remote"
                },
                {
                    "name": "--remote-err",
                    "content": "Print responses for generic control mode to standard error, not standard out.  This is\nautomatically triggered when using -s.\n\n--fifo path\nCreate a fifo / named pipe on the given path and use that for reading commands instead\nof standard input.\n",
                    "long": "--remote-err"
                },
                {
                    "name": "--aggressive",
                    "content": "Tries to get higher priority\n",
                    "long": "--aggressive"
                },
                {
                    "name": "-T --realtime",
                    "content": "Tries to gain realtime priority.  This option usually requires root privileges to have\nany effect.\n\n-?, --help\nShows short usage instructions.\n",
                    "flag": "-T",
                    "long": "--realtime"
                },
                {
                    "name": "--longhelp",
                    "content": "Shows long usage instructions.\n",
                    "long": "--longhelp"
                },
                {
                    "name": "--version",
                    "content": "Print the version string.\n",
                    "long": "--version"
                },
                {
                    "name": "--libversion",
                    "content": "Print  version  information  on the mpg123 libraries being used (libmpg123, libout123,\nlibsyn123).\n",
                    "long": "--libversion"
                }
            ]
        },
        "HTTP SUPPORT": {
            "content": "In addition to reading MPEG audio streams from ordinary files and from  the  standard  input,\nmpg123 supports retrieval of MPEG audio streams or playlists via the HTTP  protocol, which is\nused  in  the  World  Wide  Web (WWW).  Such files are specified using a so-called URL, which\nstarts with http:// or https://.  When a file with that prefix is encountered,  mpg123  since\n1.30.0  will  by  default call an external helper program (either wget(1) or curl(1), see the\n--network option) to retrieve the resource. You can configure access via a proxy server using\nthe standard environment variables those programs support. The --proxy option that mpg123 be‐\nfore 1.30.0 used for its internal network code is gone in the  default  build  now  and  will\nprobably disappear for good with 1.31.1.\n\nNote that, in order to play MPEG audio files from a WWW server, it is necessary that the con‐\nnection to that server is fast enough.  For example, a 128 kbit/s MPEG file requires the net‐\nwork connection to be at least 128 kbit/s (16 kbyte/s) plus protocol overhead.  If you suffer\nfrom short network outages, you should try the -b option (buffer) to bypass such outages.  If\nyour  network  connection  is generally not fast enough to retrieve MPEG audio files in real‐\ntime, you can first download the files to your local harddisk (e.g. using wget(1))  and  then\nplay them from there.\n\nStreams  with  embedded  ICY metadata are supported, the interval being communicated via HTTP\nheaders or --icy-interval.\n",
            "subsections": []
        },
        "INTERRUPT": {
            "content": "When in terminal control mode, you can quit via pressing the q key, while any  time  you  can\nabort  mpg123 by pressing Ctrl-C. If not in terminal control mode, this will skip to the next\nfile (if any). If you want to abort playing immediately in that case, press Ctrl-C  twice  in\nshort succession (within about one second).\n\nNote that the result of quitting mpg123 pressing Ctrl-C might not be audible immediately, due\nto  audio data buffering in the audio device.  This delay is system dependent, but it is usu‐\nally not more than one or two seconds.\n\n",
            "subsections": []
        },
        "PLAYBACK STATUS LINE": {
            "content": "In verbose mode, mpg123 updates a line with various information centering around the  current\nplayback  position. On any decent terminal, the line also works as a progress bar in the cur‐\nrent file by reversing video for a fraction of the line according to the current position. An\nexample for a full line is this:\n\n> 0291+0955  00:01.68+00:28.22 [00:05.30] mix 100=085 192 kb/s   576  B  acc    18  clip\np+0.014\n\nThe information consists of, in order:\n\n>      single-character  playback  state (``>'' for playing, ``='' for pausing/looping, ``''\nfor stopped)\n",
            "subsections": [
                {
                    "name": "0291+0955",
                    "content": "current frame offset and number of remaining frames after the plus sign\n"
                },
                {
                    "name": "00:01.68+00:28.22",
                    "content": "current position from and remaining time in human terms (hours, minutes, seconds)\n"
                },
                {
                    "name": "[00:05.30]",
                    "content": "fill of the output buffer in terms of playback time, if the buffer is enabled\n\nmix    selected RVA mode (possible values: mix, alb (album), and --- (neutral, off))\n"
                },
                {
                    "name": "100=085",
                    "content": "set volume and the RVA-modified effective volume after the equal sign\n"
                },
                {
                    "name": "192 kb/s",
                    "content": "current bitrate\n\n576 B  size of current frame in bytes\n\nacc    if positions are accurate, possible values  are  ``acc''  for  accurate  positions  or\n``fuz'' for fuzzy (with guessed byte offsets using mean frame size)\n"
                },
                {
                    "name": "18 clip",
                    "content": "amount  of  clipped samples, non-zero only if decoder reports that (generic does, some\noptimized ones not)\n"
                },
                {
                    "name": "p+0.014",
                    "content": "pitch change (increased/decreased playback sampling rate on user request)\n\n"
                }
            ]
        },
        "NOTES": {
            "content": "MPEG audio decoding requires a good deal of CPU performance, especially layer-3.   To  decode\nit in realtime, you should have at least an i486DX4, Pentium, Alpha, SuperSparc or equivalent\nprocessor.   You  can  also use the -m option to decode mono only, which reduces the CPU load\nsomewhat for layer-3 streams.  See also the -2 and -4 options.\n\nIf everything else fails, have mpg123 decode to a file and then use an appropriate utility to\nplay that file with less CPU load.  Most probably you can configure mpg123 to produce a  for‐\nmat suitable for your audio device (see above about encodings and sampling rates).\n\nIf  your system is generally fast enough to decode in realtime, but there are sometimes peri‐\nods of heavy system load (such as cronjobs, users logging in remotely,  starting  of  ``big''\nprograms  etc.) causing the audio output to be interrupted, then you should use the -b option\nto use a buffer of reasonable size (at least 1000 Kbytes).\n",
            "subsections": []
        },
        "EXIT CODE": {
            "content": "Up to version 1.25.x, mpg123 always returned exit code 0 also for complete junk on the  input\nside.  Fatal errors were only considered for output. With version 1.26.0, this changed to the\nbehaviour described below.\n\nWhen not using the remote control interface (which returns input errors  as  text  messages),\nthe  process  exit  code  is zero (success) only if all tracks in a playlist had at least one\nframe parsed, even if it did not decode cleanly, or are empty, MPEG-wise (perhaps only  meta‐\ndata,  or  really an empty file).  When you decode nothing, nothing is the result and that is\nfine. When a track later aborts because of parser errors or breakdown of the network communi‐\ncation, this is treated as end of a track, but does not make the process as  such  fail.  One\nreally bad (or non-existing) stream in the playlist results in a non-zero error code, consis‐\ntent with other UNIX tools.\n\nAn error in audio output results in the process ending with a non-zero exit code immediately,\nregardless  of  how much data has been successfully played before. The forgiveness is only on\nthe input side.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Mostly MPEG-1 layer 2 and 3 are tested in real life.  Please report any  issues  and  provide\ntest files to help fixing them.\n\nNo CRC error checking is performed. But the decoder is built and tested to behave nicely with\ndamaged streams. Mostly, damaged frames will just be silent.\n\nSome  platforms lack audio hardware support; you may be able to use the -s switch to feed the\ndecoded data to a program that can play it on your audio device.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Maintainer:\nThomas Orgis <maintainer@mpg123.org>, <thomas@orgis.org>\n\nOriginal Creator:\nMichael Hipp\n\nUses code or ideas from various people, see the AUTHORS file accompanying the source code.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "mpg123 is licensed under the GNU Lesser/Library General Public License, LGPL, version 2.1 .\n",
            "subsections": []
        },
        "WEBSITE": {
            "content": "http://www.mpg123.org\nhttp://sourceforge.net/projects/mpg123\n\n11 Jul 2022                                   mpg123(1)",
            "subsections": []
        }
    },
    "summary": "mpg123 - play audio MPEG 1.0/2.0/2.5 stream (layers 1, 2 and 3)",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Console MPEG audio player.",
        "examples": [
            {
                "description": "Play the specified mp3 files",
                "command": "mpg123 {{path/to/file1.mp3 path/to/file2.mp3 ...}}"
            },
            {
                "description": "Play the mp3 from `stdin`",
                "command": "cat {{file.mp3}} | mpg123 -"
            },
            {
                "description": "Jump forward to the next song",
                "command": "<f>"
            },
            {
                "description": "Jump back to the beginning for the song",
                "command": "<b>"
            },
            {
                "description": "Stop or replay the current file",
                "command": "<s>"
            },
            {
                "description": "Fast forward",
                "command": "<.>"
            },
            {
                "description": "Quit",
                "command": "<q>"
            }
        ]
    }
}