Below is command option of mpg123. FYI.
Quote:
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.6.2; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
usage: .. [option(s)] [file(s) | URL(s) | -]
input options
-k <n> --skip <n> skip n frames at beginning
-n --frames <n> play only <n> frames of every stream
--fuzzy Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC)
-y --no-resync DISABLES resync on error (--resync is deprecated)
-p <f> --proxy <f> set WWW proxy
-u --auth set auth values for HTTP access
--ignore-mime ignore HTTP MIME types (content-type)
-@ <f> --list <f> play songs in playlist <f> (plain list, m3u, pls (shoutcast))
-l <n> --listentry <n> play nth title in playlist; show whole playlist for n < 0
--loop <n> loop track(s) <n> times, < 0 means infinite loop (not with --random!)
--keep-open (--remote mode only) keep loaded file open after reaching end
--timeout <n> Timeout in seconds before declaring a stream dead (if <= 0, wait forever)
-z --shuffle shuffle song-list before playing
-Z --random full random play
--no-icy-meta Do not accept ICY meta data
-i --index index / scan through the track before playback
--index-size change size of frame index
--resync-limit <n> Set number of bytes to search for valid MPEG data; <0 means search whole stream.
output/processing options
-o <o> --output <o> select audio output module
--list-modules list the available modules
-a <d> --audiodevice <d> select audio device
-s --stdout write raw audio to stdout (host native format)
-S --STDOUT play AND output stream (not implemented yet)
-w <f> --wav <f> write samples as WAV file in <f> (- is stdout)
--au <f> write samples as Sun AU file in <f> (- is stdout)
--cdr <f> write samples as raw CD audio file in <f> (- is stdout)
--reopen force close/open on audiodevice
-g --gain set audio hardware output gain
-f <n> --scale <n> scale output samples (soft gain, default=32768)
--rva-mix,
--rva-radio use RVA2/ReplayGain values for mix/radio mode
--rva-album,
--rva-audiophile use RVA2/ReplayGain values for album/audiophile mode
-0 --left --single0 play only left channel
-1 --right --single1 play only right channel
-m --mono --mix mix stereo to mono
--stereo duplicate mono channel
-r --rate force a specific audio output rate
-2 --2to1 2:1 downsampling
-4 --4to1 4:1 downsampling
--pitch <value> set hardware pitch (speedup/down, 0 is neutral; 0.05 is 5%)
--8bit force 8 bit output
-d n --doublespeed n play only every nth frame
-h n --halfspeed n play every frame n times
--equalizer exp.: scales freq. bands acrd. to 'equalizer.dat'
--gapless remove padding/junk on mp3s (best with Lame tag)
This is on by default when libmpg123 supports it.
--no-gapless disable gapless mode, not remove padding/junk
-D n --delay n insert a delay of n seconds before each track
-o h --headphones (aix/hp/sun) output on headphones
-o s --speaker (aix/hp/sun) output on speaker
-o l --lineout (aix/hp/sun) output to lineout
-b <n> --buffer <n> set play buffer ("output cache")
--smooth keep buffer over track boundaries
misc options
-t --test only decode, no output (benchmark)
-c --check count and display clipped samples
-v[*] --verbose increase verboselevel
-q --quiet quiet mode
-C --control enable terminal control keys
--title set xterm/rxvt title to filename
--long-tag spacy id3 display with every item on a separate line
--utf8 Regardless of environment, print metadata in UTF-8.
-R --remote generic remote interface
--remote-err force use of stderr for generic remote interface
--aggressive tries to get higher priority (nice)
-T --realtime tries to get realtime priority
-? --help give compact help
--longhelp give this long help listing
--version give name / version string
See the manpage ..(1) for more information.
|
As to the "Generic Control Interface", here is some hint:
use "mpg123 -R" to start, and tranfer command through pipe.