LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

opusdec

decodes Opus audio files to WAV or raw PCM

TLDR

Decode Opus to WAV
$ opusdec [input.opus] [output.wav]
copy
Decode to raw PCM
$ opusdec --raw [input.opus] [output.pcm]
copy
Decode to stdout
$ opusdec [input.opus] - | aplay
copy
Set output sample rate
$ opusdec --rate [48000] [input.opus] [output.wav]
copy
Force stereo output
$ opusdec --force-stereo [input.opus] [output.wav]
copy

SYNOPSIS

opusdec [options] input [output]

DESCRIPTION

opusdec decodes Opus audio files to WAV or raw PCM. If no output file is specified, opusdec attempts to play the audio directly. Use `-` for stdin/stdout. Opus is a versatile audio codec designed for both speech and music, widely used in WebRTC and streaming.

PARAMETERS

--rate Hz

Output sample rate.
--raw
Output raw PCM.
--force-stereo
Force stereo output.
--float
32-bit float output.
--gain dB
Apply gain.
--no-dither
Disable dithering.
--force-wav
Force including a WAV header on output (even for non-standard rates).
--packet-loss %
Simulate packet loss percentage for testing.
--quiet
Suppress program output.
--save-range FILE
Save decoder range data to file for debugging.

EXAMPLE

$ # Decode to WAV
opusdec music.opus music.wav

# Play directly
opusdec music.opus - | aplay -f cd

# Convert with specific rate
opusdec --rate 44100 input.opus output.wav
copy

INSTALL

sudo apt install opus-tools
copy
sudo dnf install opus-tools
copy
sudo pacman -S opus-tools
copy
sudo apk add opus-tools
copy
sudo zypper install opus-tools
copy
brew install opus-tools
copy
nix profile install nixpkgs#opus-tools
copy

CAVEATS

Output defaults to same channels as input. Resampling may affect quality. Use --float for highest precision.

HISTORY

Opus was developed by the IETF Codec Working Group, standardized as RFC 6716 in 2012, combining SILK and CELT technologies.

SEE ALSO

opusenc(1), ffmpeg(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid