Linux command
opusdec 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Decode Opus to WAV
opusdec [input.opus] [output.wav]
Decode to raw PCM
opusdec --raw [input.opus] [output.pcm]
Decode to stdout
opusdec [input.opus] - | aplay
Set output sample rate
opusdec --rate [48000] [input.opus] [output.wav]
Force stereo output
opusdec --force-stereo [input.opus] [output.wav]
说明
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.
参数
- --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.
FAQ
What is the opusdec command used for?
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.
How do I run a basic opusdec example?
Run `opusdec [input.opus] [output.wav]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --rate _Hz_ do in opusdec?
Output sample rate.