opusdec.1 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. .\" Process this file with
  2. .\" groff -man -Tascii opusdec.1
  3. .\"
  4. .TH opusdec 1 2012-08-31 "Xiph.Org Foundation" "opus-tools"
  5. .SH NAME
  6. opusdec \- decode audio in Opus format to Wave or raw PCM
  7. .SH SYNOPSIS
  8. .B opusdec
  9. [
  10. .B -hV
  11. ] [
  12. .B --quiet
  13. ] [
  14. .B --rate Hz
  15. ] [
  16. .B --force-stereo
  17. ] [
  18. .B --gain dB
  19. ] [
  20. .B --no-dither
  21. ] [
  22. .B --float
  23. ] [
  24. .B --force-wav
  25. ] [
  26. .B --packet-loss pct
  27. ] [
  28. .B --save-range file
  29. ]
  30. .B input.opus
  31. [
  32. .B output.wav
  33. ]
  34. .SH DESCRIPTION
  35. .B opusdec
  36. decodes Opus URLs or files to uncompressed Wave or raw PCM.
  37. In URLs, the
  38. .B file
  39. ,
  40. .B http
  41. , and
  42. .B https
  43. schemes are supported unless HTTP support was disabled at build time.
  44. If the input file is specified as
  45. .B "-"
  46. , then
  47. .B opusdec
  48. will read from stdin. Likewise, an output filename of
  49. .B "-"
  50. will cause output to be to stdout.
  51. If no output is specified
  52. .B opusdec
  53. will attempt to play the audio in realtime if it supports
  54. audio playback on your system.
  55. .SH "OPTIONS"
  56. .IP "-h, --help"
  57. Show help message
  58. .IP "-V, --version"
  59. Show version information
  60. .IP "--quiet"
  61. Suppresses program output
  62. .IP "--rate n"
  63. .br
  64. Force decoding at sampling rate n Hz
  65. .IP "--force-stereo"
  66. .br
  67. Force decoding to stereo
  68. .IP "--gain n"
  69. .br
  70. Adjust the output volume n dB, negative values make the signal quieter
  71. .IP "--no-dither"
  72. Do not dither 16-bit output
  73. .IP "--float"
  74. Output 32-bit floating-point samples instead of 16-bit integer samples
  75. .IP "--force-wav"
  76. Force including a Wave header on output (e.g. for non-wav extensions and stdout)
  77. .IP "--packet-loss n"
  78. Simulate n % random Opus packet loss
  79. .IP "--save-range file"
  80. Save check values for every frame to a file
  81. .SH EXAMPLES
  82. Decode a file
  83. .B input.opus
  84. to
  85. .B output.wav
  86. .RS
  87. opusdec input.opus output.wav
  88. .RE
  89. Play a file
  90. .B input.opus
  91. .RS
  92. opusdec input.opus
  93. .RE
  94. Re-encode a high bitrate Opus file to a lower rate
  95. .RS
  96. opusdec --force-wav input.opus - | opusenc --bitrate 64 - output.opus
  97. .RE
  98. Play an http stream
  99. .B http://icecast.somwhere.org:8000/stream.opus
  100. on a system with pulseaudio
  101. .br
  102. .I (press ctrl-c to quit)
  103. .RS
  104. padsp opusdec http://icecast.somwhere.org:8000/stream.opus
  105. .RE
  106. .SH AUTHORS
  107. .br
  108. Jean-Marc Valin <jmvalin@jmvalin.ca>
  109. .br
  110. Gregory Maxwell <greg@xiph.org>
  111. .SH BUGS
  112. Opusdec does not currently reject all invalid files which it should reject.
  113. It also doesn't provide very helpful output for the corrupted files it
  114. does reject. Use \fBopusinfo\fR(1) for somewhat better diagnostics.
  115. .SH SEE ALSO
  116. .BR opusenc (1),
  117. .BR opusinfo (1)