3 mp3dec, mp3enc, oggdec, oggenc, flacdec, sundec, wavdec, pcmconv, mixfs \- decode and encode audio files
41 .I "long or silly options"
68 These programs decode and encode various audio formats from and to
69 16-bit stereo PCM (little endian). The decoders read the compressed
70 audio data from standard input and produce PCM on standard output at
71 a sampling frequency of 44.1KHz.
74 decodes MPEG audio (layer 1, 2 and 3). The
76 option enables debug output to standard error.
84 but decode OGG Vorbis, FLAC lossless audio, Sun audio and RIFF wave.
86 The encoders read PCM on standard input and produce compressed audio
92 produce OGG Vorbis and MP3 audio. For
94 the MP3 file will use `constant bit-rate' (CBR) encoding by default,
95 but that can be changed via
97 (average bitrate desired, ABR)
100 (variable bitrate, VBR).
103 accepts raw PCM in the same byte order as
115 in Kb/s for VBR, default 32Kb/s.
117 set the exact bitrate in Kb/s, which defaults to 128Kb/s.
122 in Kb/s for VBR, default 256Kb/s.
138 forces mid/side stereo on all frames.
141 add CRC error protection (adds an additional 16 bits per frame to the stream).
142 This seems to break playback.
145 sets output quality to
154 set sampling frequency of input file (in KHz) to
159 use variable bitrate (VBR) encoding
162 set quality setting for VBR to
167 0 produces highest-quality and largest files, and
168 9 produces lowest-quality and smallest files.
170 .TF "\fB--resample sfreq \fP"
175 desired in Kb/s, instead of setting quality,
176 and generates ABR encoding.
178 .BI --resample " sfreq"
179 set sampling frequency of output file (in KHz) to
181 default is input sfreq.
183 .BI --mp3input " input"
195 mark as non-original (i.e. do not set the original bit)
201 disable sfb=21 cutoff
208 allow channels to have different blocktypes
211 disable Xing VBR informational tag
214 autoconvert from stereo to mono file for mono encoding
217 force byte-swapping of input (see
222 don't print progress report, VBR histograms
225 only use the ATH for masking
228 disable VBR histogram display
231 experimental voice mode
234 is a helper program used to convert various PCM sample formats. The
238 options specify the input and output format
242 is a concatenated string of the following parts:
245 sample format is little-endian signed integer where
247 specifies the number of bits
250 unsigned little-endian integer format
253 singed big-endian integer format
256 unsigned big-endian integer format
259 floating point format where
261 has to be 32 or 64 for single- or double-precision
270 specifies the number of channels
273 gives the samplerate in Hz
275 The program reads samples from standard
276 input converting the data and writes the result to standard output
277 until it reached end of file or, if
279 was given, a number of
281 bytes have been consumed from input.
284 is a fileserver serving a single
286 file which allows simultaneous playback of audio streams. When
289 and mixes the audio samples that are written to it.
292 can be given with the
294 option which gets posted to
304 A alternative mountpoint
306 can be specified with the
313 debug messages to be written to file-descriptor 2.
319 audio/mp3dec <foo.mp3 >/dev/audio
324 file as highest-quality MP3.
327 audio/mp3enc -q 0 -b 320 <foo.wav >foo.mp3
330 Create a fixed 128Kb/s MP3 file from a
335 audio/mp3enc -h <foo.wav >foo.mp3
338 Streaming from stereo 44.1KHz raw PCM data, encoding mono at 16KHz
343 dd -conv swab | audio/mp3enc -a -r -m m --resample 16 -b 24
346 .B /sys/src/cmd/audio
352 .B http://www.underbit.com/products/mad/
354 .B http://xiph.org/doc/
356 .B http://flac.sourceforge.net/documentation.html
359 first appeared in 9front (December, 2012).
361 first appeared in 9front (December, 2013).