opusdec.1 2.4 KB

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