mac.1 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "MAC" 1 "2021-11-25" "3.99_u4_b5_s7" "SlackBuilds.org"
  31. .SH NAME
  32. mac \- decode/encode Monkey's Audio codec files
  33. .\" RST source for mac(1) man page. Convert with:
  34. .
  35. .\" rst2man.py mac.rst > mac.1
  36. .
  37. .\" rst2man.py comes from the SBo development/docutils package.
  38. .
  39. .SH SYNOPSIS
  40. .sp
  41. \fBmac\fP [\fIinput\-file\fP] [\fIoutput\-file\fP] [ [\fB\-c\fP | \fB\-n\fP ] \fIlevel\fP ]
  42. .sp
  43. \fBmac\fP [\fIinput\-file\fP] [ \fB\-d\fP | \fB\-v\fP | \fB\-q\fP ]
  44. .SH DESCRIPTION
  45. .sp
  46. Monkey\(aqs Audio (aka APE) is a lossless audio compression format,
  47. similar to FLAC. mac is a console frontend to Monkey\(aqs Audio, able to
  48. encode and decode APE audio files.
  49. .sp
  50. If you encode a WAV file to APE, then decode it back to WAV, the
  51. audio in the decoded WAV file will be byte\-for\-byte identical to the
  52. original (although any extra data such as tags/comments in the RIFF
  53. header will not be preserved).
  54. .SH OPTIONS
  55. .sp
  56. Note: Only one of the options below can be given, and it must occur
  57. last on the command line (after the filename(s)). Spaces are not
  58. allowed between the \fB\-c\fP or \fB\-n\fP option and its \fIlevel\fP argument.
  59. .INDENT 0.0
  60. .TP
  61. .B \fB\-c[level]\fP
  62. Compress (encode). \fIinput\-file\fP must be a WAV file with 16\-bit samples.
  63. \fIoutput\-file\fP will be an APE audio file. Higher \fIlevel\fPs result
  64. in better compression, at the expense of longer encoding time. The
  65. supported levels are:
  66. .INDENT 7.0
  67. .INDENT 3.5
  68. .INDENT 0.0
  69. .TP
  70. .B 1000
  71. \fI(fast)\fP, usually around 45%\-50% compression ratio.
  72. .TP
  73. .B 2000
  74. \fI(normal)\fP, usually around 40%\-45% compression ratio.
  75. .TP
  76. .B 3000
  77. \fI(high)\fP, only slightly better than 2000 (usually by 1% or so).
  78. .TP
  79. .B 4000
  80. \fI(very high)\fP, probably the point of diminishing returns.
  81. .TP
  82. .B 5000
  83. \fI(insane)\fP, takes around 3x as long as 4000, may not compress any better.
  84. .UNINDENT
  85. .UNINDENT
  86. .UNINDENT
  87. .TP
  88. .B \fB\-n[level]\fP
  89. Convert (recompress). As \fB\-c\fP, but \fBinput\-file\fP must be an APE audio
  90. file.
  91. .TP
  92. .B \fB\-d\fP
  93. Decompress (decode). \fIinput\-file\fP must be an APE audio file.
  94. \fIoutput\-file\fP will be a WAV file.
  95. .TP
  96. .B \fB\-v\fP
  97. Verify. \fIinput\-file\fP must be an APE audio file. It will be decoded, and
  98. any errors will be displayed, but the decoded audio won\(aqt be saved.
  99. .TP
  100. .B \fB\-q\fP
  101. Quick verify. Just checks that \fIinput\-file\fP has a valid APE header.
  102. .TP
  103. .B \fB\-\-help\fP
  104. Show built\-in usage message (same as running \fBmac\fP with no arguments).
  105. .UNINDENT
  106. .SH EXAMPLES
  107. .INDENT 0.0
  108. .TP
  109. .B Compress
  110. mac "Metallica \- One.wav" "Metallica \- One.ape" \-c2000
  111. .TP
  112. .B Decompress
  113. mac "Metallica \- One.ape" "Metallica \- One.wav" \-d
  114. .TP
  115. .B Verify
  116. mac "Metallica \- One.ape" \-v
  117. .TP
  118. .B Quick verify
  119. mac "Metallica \- One.ape" \-q
  120. .UNINDENT
  121. .sp
  122. Note that filenames with spaces and punctuation should be put inside
  123. quote, as usual.
  124. .SH NOTES
  125. .sp
  126. \fBmac\fP can only handle WAV files with 8\- or 16\-bit samples, not
  127. e.g. 24\-bit or floating point. If needed, you can convert to 16\-bit
  128. with a command like:
  129. .INDENT 0.0
  130. .INDENT 3.5
  131. $ sox \-G input.wav \-b16 output.wav
  132. .UNINDENT
  133. .UNINDENT
  134. .sp
  135. WAV files must have 1 or 2 channels (mono or stereo;
  136. quad/surround/5.1/etc are not supported). Any sampling rate is
  137. supported.
  138. .sp
  139. \fBffmpeg\fP(1) can decode and convert APE files, though it cannot encode
  140. to APE.
  141. .sp
  142. \fBmplayer\fP(1) and \fBaudacious\fP(1) can play APE files.
  143. .sp
  144. \fBfile\fP(1) knows about APE files. Example:
  145. .INDENT 0.0
  146. .INDENT 3.5
  147. $ file test.ape
  148. .sp
  149. test.ape: Monkey\(aqs Audio compressed format version 3990 with normal compression, stereo, sample rate 48000
  150. .UNINDENT
  151. .UNINDENT
  152. .SH COPYRIGHT
  153. .sp
  154. See the file /usr/doc/mac\-3.99_u4_b5_s7/License.htm for license information.
  155. .SH AUTHORS
  156. .sp
  157. The original Monkey\(aqs Audio Codec was written by Matthew
  158. T. Ashland. It was ported to Linux by Frank Klemm and SuperMMX, then
  159. enhanced and bugfixed by Jason Jordan.
  160. .sp
  161. This man page written for the SlackBuilds.org project
  162. by B. Watson, and is licensed under the WTFPL.
  163. .SH SEE ALSO
  164. .sp
  165. \fBffmpeg\fP(1), \fBmplayer\fP(1), \fBaudacious\fP(1), \fBflac\fP(1), \fBshorten\fP(1), \fBsox\fP(1)
  166. .sp
  167. The Monkey\(aqs Audio Codec homepage: \fI\%http://www.monkeysaudio.com/\fP
  168. .\" Generated by docutils manpage writer.
  169. .