mp3dec, mp3enc, oggdec, oggenc, flacdec, sundec, wavdec, pcmconv,
mixfs – decode and encode audio files|
audio/mp3dec [ –d ]|
audio/pcmconv [ –i fmt ] [ –o fmt ] [ –l length ]
audio/mixfs [ –D ] [ –s srvname ] [ –m mtpt ]
These programs decode and encode various audio formats from and
to 16–bit stereo PCM (little endian). The decoders read the compressed
audio data from standard input and produce PCM on standard output
at a sampling frequency of 44.1KHz. |
Mp3dec decodes MPEG audio (layer 1, 2 and 3). The –d option enables debug output to standard error. Oggdec, flacdec, sunwdec and wavdec are like mp3dec but decode OGG Vorbis, FLAC lossless audio, Sun audio and RIFF wave.
The encoders read PCM on standard input and produce compressed audio on standard output.
Oggenc and mp3enc produce OGG Vorbis and MP3 audio. For mp3enc, the MP3 file will use `constant bit–rate' (CBR) encoding by default, but that can be changed via ––abr (average bitrate desired, ABR) or –v (variable bitrate, VBR).
Oggenc accepts raw PCM in the same byte order as /dev/audio (little–endian),
t mp3enc –r expects big–endian.
The program reads samples from standard input converting the data and writes the result to standard output until it reached end of file or, if –l was given, a number of length bytes have been consumed from input.
Mixfs is a fileserver serving a single audio file which allows
simultaneous playback of audio streams. When run, it binds over
/dev/audio and mixes the audio samples that are written to it.
A service name srvname can be given with the –s option which gets
posted to /srv. By default, mixfs mounts itself on
/mnt/mix and then binds /mnt/mix/audio over /dev. A alternative
mountpoint mtpt can be specified with the –m option. The –D option
causes 9p debug messages to be written to file–descriptor 2.
Play back an .mp3|
play(1), juke(7), playlistfs(7)|
Pcmconv first appeared in 9front (December, 2012). Mixfs first
appeared in 9front (December, 2013).|