opusdec(1) opus-tools opusdec(1)NAME
opusdec - decode audio from Opus format to WAV (or simple audio output)
SYNOPSIS
opusdec [ -hv ] [ --mono ] [ --stereo ] [ --rate Hz ] [ --no-dither ] [ --packet-loss pct ] [ --save-range file ] input.opus [ output.wav ]
DESCRIPTION
opusdec decodes Opus files into PCM Wave (uncompressed) files.
If the input file is specified as - , then opusdec will read from stdin. Likewise, an output filename of - will cause output to be to std-
out.
If no output is specified opusdec will attempt to play the audio in realtime if it supports audio playback on your system.
OPTIONS -h, --help
Print help message
-v, --version
Display version information
--quiet
Suppresses program output
--mono
Force decoding in mono
--stereo
Force decoding in stereo
--rate
Force decoding at sampling rate n Hz
--no-dither
Do not dither 16-bit output
--packet-loss
Simulate n % random Opus packet loss
--save-range
Saves check values for every frame to a file
EXAMPLES
Decode a file input.opus to output.wav
opusdec input.opus output.wav
Play a file input.opus and force output at 48000 regardless of the original sampling rate
(48kHz output may be faster, due to avoiding resampling and some sound hardware produces higher quality output when run at 48kHz)
opusdec --rate 48000 input.opus
Re-encode a high bitrate Opus file to a lower rate
opusdec input.opus - | opusenc --bitrate 64 - output.opus
Play an http stream http://icecast.somwhere.org:8000/stream.opus with the help of curl on a system with pulseaudio
(press ctrl-c to quit)
curl http://icecast.somwhere.org:8000/stream.opus | padsp opusdec -
AUTHORS
Jean-Marc Valin <jmvalin@jmvalin.ca>
Gregory Maxwell <greg@xiph.org>
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 opusinfo(1) for somewhat better diagnostics.
SEE ALSO opusenc(1), opusinfo(1)Xiph.Org Foundation 2012-05-28 opusdec(1)
Check Out this Related Man Page
oggdec(1) Vorbis Tools oggdec(1)NAME
oggdec - simple decoder, Ogg Vorbis file to PCM audio file (Wave or RAW).
SYNOPSIS
oggdec [ -Qhv ] [ -b bits_per_sample ] [ -e endianness ] [ -R ] [ -s signedness ] [ -o outputfile ] file ...
DESCRIPTION
oggdec decodes Ogg Vorbis files into PCM-encoded ("uncompressed") audio files, either Wave or RAW format.
For each input file, oggdec writes to a filename based on the input filename, but with the extension changed to ".wav" or ".raw" as appro-
priate.
If the input file is specified as - , then oggdec will read from stdin, and write to stdout unless an output filename is specified. Like-
wise, an output filename of - will cause output to be to stdout.
Writing Wave format to stdout is a bad idea. Wave requires a seekable medium for the header to be rewritten after all the data is written
out; stdout is not seekable.
OPTIONS -Q, --quiet
Suppresses program output.
-h, --help
Print help message.
-V, --version
Display version information.
-b n, --bits=n
Bits per sample. Valid values are 8 or 16.
-e n, --endian=n
Set endianness for 16-bit output. 0 (default) is little-endian (Intel byte order). 1 is big-endian (sane byte order).
-R, --raw
Output in raw format. If not specified, writes Wave file (RIFF headers).
-s n, --sign=n
Set signedness for output. 0 for unsigned, 1 (default) for signed.
-o filename, --output=filename
Write output to specified filename. This option is only valid if one input [file] is specified, or if raw mode is used.
EXAMPLES
Decode a file enabler.ogg to enabler.wav
as little-endian unsigned 16-bit (default options):
oggdec enabler.ogg
Decode a file enabler.ogg to enabler.raw as headerless little-endian unsigned 16-bit:
oggdec --raw=1 enabler.ogg
Decode enabler.ogg to enabler.crazymonkey as unsigned 8-bit:
oggdec -b 8 -s 0 -o enabler.crazymonkey enabler.ogg
Decode enabler.ogg to enabler.raw as big-endian signed 16-bit (any of the following):
oggdec -R -e 1 -b 16 enabler.ogg
oggdec -R -e 1 -b 16 -o enabler.raw - < enabler.ogg
oggdec -R -e 1 -b 16 - < enabler.ogg > enabler.raw
Mass decoding (foo.ogg to foo.wav, bar.ogg to bar.wav, quux.ogg to quux.wav, etc.):
oggdec *.ogg
AUTHORS
Program Authors
Michael Smith <msmith@xiph.org>
Manpage Authors
Frederick Lee <phaethon@linux.ucla.edu>, assisted by a few million monkeys armed with keyboards in irc://irc.openprojects.net/#vorbis
SEE ALSO ogg123(1), oggenc(1), vorbiscomment(1), flac(1), speexdec(1)Xiph.Org Foundation 2008 September 9 oggdec(1)