oggdec(1)
π oggdec β the girlies' guide to un-squishing your Vorbis files π
okay so welcome to oggdec(1), part of the Vorbis Tools family π this is the page where we learn how to turn Ogg Vorbis into boring-but-useful PCM audio. grab a snack, bestie, we're decoding π
β¨ 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 β¨
so basically oggdec takes your Ogg Vorbis files and decodes them into PCM-encoded ("uncompressed") audio files β either Wave or RAW format. it's giving decompression era π
for each input file, oggdec writes to a filename based on the input filename, but with the extension changed to .wav or .raw as appropriate. no cap, it just handles the naming for you π«Ά
if the input file is specified as -, then oggdec will read from stdin, and write to stdout unless an output filename is specified. likewise, an output filename of - will cause output to be to stdout. pipes? iconic. π¦
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. so likeβ¦ don't do that, bestie π it literally cannot work.
β¨ OPTIONS β¨
-Q,--quietβ suppresses program output. shhh π€« no yapping.-h,--helpβ print help message. your little built-in bestie.-V,--versionβ display version information.-b n,--bits=nβ bits per sample. valid values are8or16. that's it, that's the whole list π₯-e n,--endian=nβ set endianness for 16-bit output.0(default) is little-endian (Intel byte order).1is big-endian (sane byte order). yes the manpage really did say "sane byte order," we stan a petty legend π-R,--rawβ output in raw format. if not specified, writes Wave file (RIFF headers).-s n,--sign=nβ set signedness for output.0for 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. don't get cute with it π
β¨ EXAMPLES β¨
π decode a file enabler.ogg to enabler.wav as little-endian signed 16-bit (default options):
oggdec enabler.ogg
π decode a file enabler.ogg to enabler.raw as headerless little-endian signed 16-bit:
oggdec --raw enabler.ogg
π decode enabler.ogg to enabler.crazymonkey as unsigned 8-bit:
oggdec -b 8 -s 0 -o enabler.crazymonkey enabler.ogg
not the .crazymonkey extension π the manpage said it, not me. we respect the lore.
π 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
three whole ways to do the same thing, and every single one ate β¨
π mass decoding (foo.ogg to foo.wav, bar.ogg to bar.wav, quux.ogg to quux.wav, etc.):
oggdec *.ogg
the glob is doing all the heavy lifting and honestly? main character energy π
β¨ 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
a few million monkeys armed with keyboards β the most honest author credit in the entire Unix manual canon, periodt πβ¨οΈ
β¨ SEE ALSO β¨
ogg123(1), oggenc(1), vorbiscomment(1), flac(1), speexdec(1)
go read those too, they're all in the same friend group πΈ
okay that's the whole page bestie!! this was brought to you by the Xiph.Org Foundation, dated 2008 September 9 π mwah, go decode something, you've got this πβ¨π¦
π¦ where this page comes from
- alpine 3.24: vorbis-tools-doc 1.4.3-r2 Β· GPL-2.0-only
- arch rolling: vorbis-tools 1.4.3-1 Β· GPL2
- debian bookworm: vorbis-tools 1.4.2-1+b1
- debian trixie: vorbis-tools 1.4.3-1
- epel 10: vorbis-tools 1:1.4.2-14.el10_1 Β· GPL-2.0-only
- epel 9: vorbis-tools 1:1.4.2-10.el9 Β· GPLv2
- fedora 43: vorbis-tools 1:1.4.3-3.fc43 Β· GPL-2.0-only
- fedora 43: vorbis-tools 1:1.4.3-4.fc43 Β· GPL-2.0-only
- fedora 44: vorbis-tools 1:1.4.3-4.fc44 Β· GPL-2.0-only
- fedora 44: vorbis-tools 1:1.4.3-5.fc44 Β· GPL-2.0-only
- nixos 26.05: vorbis-tools 1.4.3
- nixpkgs unstable: vorbis-tools 1.4.3
- opensuse-leap 16.0: vorbis-tools 1.4.2-bp160.2.1 Β· GPL-2.0-only
- opensuse-leap 16.0: vorbis-tools 1.4.2-bp160.2.1 Β· GPL-2.0-only
- opensuse-leap 16.0: vorbis-tools 1.4.2-bp160.2.1 Β· GPL-2.0-only
- opensuse-leap 16.0: vorbis-tools 1.4.2-bp160.2.1 Β· GPL-2.0-only
- ubuntu jammy: vorbis-tools 1.4.2-1
- ubuntu noble: vorbis-tools 1.4.2-2
- ubuntu questing: vorbis-tools 1.4.3-1
- ubuntu resolute: vorbis-tools 1.4.3-1build1
- ubuntu stonking: vorbis-tools 1.4.3-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms