opusdec(1)
β¨ opusdec π
okay bestie, sit DOWN, because we're about to talk about opusdec(1) from opus-tools and honestly? she's iconic. this is the girl who takes your Opus audio and turns it into Wave or raw PCM. that's the whole job. no cap. π
πΈ NAME πΈ
opusdec β decode audio in Opus format to Wave or raw PCM π¦
π«Ά SYNOPSIS π«Ά
opusdec [ -hV ] [ --quiet ] [ --rate Hz ] [ --force-stereo ] [ --gain dB
] [ --no-dither ] [ --float ] [ --force-wav ] [ --packet-loss pct ] [
--save-range file ] input.opus [ output.wav ]
like, that's the whole vibe check right there. look at her go. β¨
π DESCRIPTION π
opusdec decodes Opus URLs or files to uncompressed Wave or raw PCM. that's the main character mission statement fr fr.
In URLs, the file, http, and https schemes are supported β unless HTTP support was disabled at build time, in which case, sorry bestie, that door is closed. π
If the input file is specified as -, then opusdec will read from stdin. Likewise, an output filename of - will cause output to be to stdout. yes queen, the classic dash pipeline situation. so versatile, so flexible, obsessed. π
If no output is specified opusdec will attempt to play the audio in realtime if it supports audio playback on your system. living in the moment. realtime. periodt. π₯
π OPTIONS π
-h,--helpβ Show help message. ask and she shall answer π-V,--versionβ Show version information. the receipts, the credentials, the lore β--quietβ Suppresses program output. shhh. silence. a moment of peace π§--rate nβ Force decoding at sampling rate n Hz. you pick the number, she respects it π--force-stereoβ Force decoding to stereo. both ears get the tea π§--gain nβ Adjust the output volume n dB, negative values make the signal quieter. yes, negative = quieter, read it again bestie π--no-ditherβ Do not dither 16-bit output. no dithering. none. zero. zilch πΈ--floatβ Output 32-bit floating-point samples instead of 16-bit integer samples. glow-up for your samples β¨--force-wavβ Force including a Wave header on output (e.g. for non-wav extensions and stdout). sometimes you just gotta label the vibes π·οΈ--packet-loss nβ Simulate n % random Opus packet loss. chaos simulator, but make it science π--save-range fileβ Save check values for every frame to a file. for the record-keepers π
π EXAMPLES π
these are copy-paste-able, do NOT come for me if you retype them wrong
Decode a file input.opus to output.wav
opusdec input.opus output.wav
Play a file input.opus
opusdec input.opus
Re-encode a high bitrate Opus file to a lower rate
opusdec --force-wav input.opus - | opusenc --bitrate 64 - output.opus
Play an http stream http://icecast.somwhere.org:8000/stream.opus on a system with pulseaudio (press ctrl-c to quit)
padsp opusdec http://icecast.somwhere.org:8000/stream.opus
that pipe example in the middle? she's giving pipeline royalty. π
π AUTHORS π
- Jean-Marc Valin
<jmvalin@jmvalin.ca> - Gregory Maxwell
<greg@xiph.org>
the founders. the architects. the ones who did it first. π«Ά
π 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.
okay so she's a little too trusting, she lets some sketchy files through, and when she does catch a bad one she's kinda vague about it. not a red flag, just a yellow one. use opusinfo(1) if you need the actual detective work. π
β SEE ALSO β
and that's the whole page bestie, thanks for coming to my ted talk π
Xiph.Org Foundation Β· 2012-08-31 Β· from the opus-tools era, and she still ate. mwah. π β¨π¦
π¦ where this page comes from
- alpine 3.24: opus-tools-doc 0.2-r2 Β· BSD-2-Clause
- arch rolling: opus-tools 0.2-7 Β· BSD
- debian bookworm: opus-tools 0.2-1+b1 Β· BSD-2-Clause
- debian trixie: opus-tools 0.2-1+b3 Β· BSD-2-Clause
- fedora 43: opus-tools 0.2-19.fc43 Β· LicenseRef-Callaway-BSD AND GPL-2.0-only
- fedora 44: opus-tools 0.2-20.fc44 Β· LicenseRef-Callaway-BSD AND GPL-2.0-only
- nixos 26.05: opus-tools 0.2
- nixpkgs unstable: opus-tools 0.2
- ubuntu noble: opus-tools 0.2-1build3 Β· BSD-2-Clause
- ubuntu questing: opus-tools 0.2-1build4
- ubuntu resolute: opus-tools 0.2-1build5 Β· BSD-2-Clause
- ubuntu stonking: opus-tools 0.2-1build5 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms