auconv.1 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .Dd Jun 12, 2017
  2. .Dt AUCONV 1
  3. .Os
  4. .Sh NAME
  5. .Nm auconv
  6. .Nd preform audio format conversion
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Op Fl b Ar buffer-size
  10. .Op Fl c Ar channels
  11. .Op Fl i Ar input-encoding
  12. .Op Fl j Ar skip
  13. .Op Fl o Ar output-encoding
  14. .Op Fl r Ar rate
  15. .Op Fl s Ar size
  16. .Sh DESCRIPTION
  17. Reads Au formatted, or raw, audio files from the standard input and
  18. write a converted Au formatted audio file to the standard output.
  19. .Pp
  20. The options are as follows:
  21. .Bl -tag -width Ds
  22. .It Fl b Ar buffer-size
  23. Override the default buffer size.
  24. .It Fl c Ar channels
  25. Set the number of channels in the raw input (normally 2).
  26. .It Fl i Ar input-encoding
  27. Set the encoding of the input (normally 16-bit PCM).
  28. .br
  29. This option implies a raw input encoding.
  30. .Pp
  31. .Bl -tag -width Ds
  32. .It "The encoding-string can start with a" Qq raw indicator
  33. .Qq r
  34. or
  35. .Qq raw
  36. .It And can end with an endianness specifier:
  37. .Qq eb ,
  38. .Qq be ,
  39. or simply
  40. .Qq b
  41. .El
  42. .Pp
  43. The encoding string is case-insensitive.
  44. .Pp
  45. The
  46. .Qq raw
  47. indicator is implied by endianness specifiers.
  48. .It Fl j Ar skip
  49. Start reading the raw input after
  50. .Ar skip
  51. bytes.
  52. .It Fl o Ar output-encoding
  53. Set the output encoding (normally 16-bit PCM).
  54. .Pp
  55. See above for the encoding-string format.
  56. .It Fl r Ar rate
  57. Set the sample-rate of the raw input (normally 48000).
  58. .It Fl s Ar size
  59. Read
  60. .Ar size
  61. bytes as raw audio data before resuming normal operation.
  62. .El
  63. .Sh EXAMPLES
  64. Convert raw little-endian PCM-16 input to an Au formatted stream:
  65. .Dl ... | auconv -ipcm16l | ...
  66. .Pp
  67. Create an Au formatted noise file:
  68. .Dl auconv -c1 < /dev/random | head -c96000 > noise-1s.au
  69. .Pp
  70. Create an empty Au formatted audio file:
  71. .Dl auconv -s0 < /dev/null > empty.au
  72. .Sh EXIT STATUS
  73. .Ex -std
  74. .Sh SEE ALSO
  75. .Xr au 7
  76. .Xr auresample 1
  77. .Xr audioconvert 1