shithub: opus-tools

ref: 160c844345af8ab981add14e857d123937f958c9
dir: /man/opusdec.1/

View raw version
.\" Process this file with
.\" groff -man -Tascii opusdec.1
.\"
.TH opusdec 1 2012-08-31 "Xiph.Org Foundation" "opus-tools"

.SH NAME
opusdec \- decode audio in Opus format to Wave or raw PCM

.SH SYNOPSIS
.B opusdec
[
.B -hV
] [
.B --quiet
] [
.B --rate Hz
] [
.B --force-stereo
] [
.B --gain dB
] [
.B --no-dither
] [
.B --float
] [
.B --force-wav
] [
.B --packet-loss pct
] [
.B --save-range file
]
.B input.opus
[
.B output.wav
]

.SH DESCRIPTION

.B opusdec
decodes Opus URLs or files to uncompressed Wave or raw PCM.

In URLs, the
.B file
,
.B http
, and
.B https
schemes are supported unless HTTP support was disabled at build time.

If the input file is specified as
.B "-"
, then
.B opusdec
will read from stdin. Likewise, an output filename of
.B "-"
will cause output to be to stdout.

If no output is specified
.B opusdec
will attempt to play the audio in realtime if it supports
audio playback on your system.

.SH "OPTIONS"
.IP "-h, --help"
Show help message
.IP "-V, --version"
Show version information
.IP "--quiet"
Suppresses program output
.IP "--rate n"
.br
Force decoding at sampling rate n Hz
.IP "--force-stereo"
.br
Force decoding to stereo
.IP "--gain n"
.br
Adjust the output volume n dB, negative values make the signal quieter
.IP "--no-dither"
Do not dither 16-bit output
.IP "--float"
Output 32-bit floating-point samples instead of 16-bit integer samples
.IP "--force-wav"
Force including a Wave header on output (e.g. for non-wav extensions and stdout)
.IP "--packet-loss n"
Simulate n % random Opus packet loss
.IP "--save-range file"
Save check values for every frame to a file

.SH EXAMPLES
Decode a file
.B input.opus
to
.B output.wav
.RS
opusdec input.opus output.wav
.RE

Play a file
.B input.opus
.RS
opusdec input.opus
.RE

Re-encode a high bitrate Opus file to a lower rate
.RS
opusdec --force-wav input.opus - | opusenc --bitrate 64 - output.opus
.RE

Play an http stream
.B http://icecast.somwhere.org:8000/stream.opus
on a system with pulseaudio
.br
.I (press ctrl-c to quit)
.RS
padsp opusdec http://icecast.somwhere.org:8000/stream.opus
.RE

.SH AUTHORS
.br
Jean-Marc Valin <jmvalin@jmvalin.ca>
.br
Gregory Maxwell <greg@xiph.org>

.SH BUGS

Opusdec does not currently reject all invalid files which it should reject.
It also doesn't provide very helpful output for the corrupted files it
does reject. Use \fBopusinfo\fR(1) for somewhat better diagnostics.

.SH SEE ALSO
.BR opusenc (1),
.BR opusinfo (1)