1oggdec(1) Vorbis Tools oggdec(1)
2
3
4
6 oggdec - simple decoder, Ogg Vorbis file to PCM audio file (WAV or
7 RAW).
8
9
11 oggdec [ -Qhv ] [ -b bits_per_sample ] [ -e endianness ] [ -R ] [ -s
12 signedness ] [ -o outputfile ] file ...
13
14
16 oggdec decodes Ogg Vorbis files into PCM-encoded ("uncompressed") audio
17 files, either WAV or RAW format.
18
19 For each input file, oggdec writes to a filename based on the input
20 filename, but with the extension changed to ".wav" or ".raw" as appro‐
21 priate.
22
23 If the input file is specified as - , then oggdec will read from stdin,
24 and write to stdout unless an output filename is specified. Likewise,
25 an output filename of - will cause output to be to stdout.
26
27 Writing WAV format to stdout is a bad idea. WAV requires a seekable
28 medium for the header to be rewritten after all the data is written
29 out; stdout is not seekable.
30
31
33 -Q, --quiet
34 Suppresses program output.
35
36 -h, --help
37 Print help message.
38
39 -v, --version
40 Display version information.
41
42 -b n, --bits=n
43 Bits per sample. Valid values are 8 or 16.
44
45 -e n, --endian=n
46 Set endianness for 16-bit output. 0 (default) is little-endian
47 (Intel byte order). 1 is big-endian (sane byte order).
48
49 -R, --raw
50 Output in raw format. If not specified, writes WAV file (RIFF
51 headers).
52
53 -s n, --sign=n
54 Set signedness for output. 0 for unsigned, 1 (default) for
55 signed.
56
57 -o filename, --output=filename
58 Write output to specified filename. This option is only valid
59 if one input [file] is specified, or if raw mode is used.
60
61
63 Decode a file enabler.ogg to enabler.wav
64 as little-endian unsigned 16-bit (default options):
65 oggdec enabler.ogg
66
67 Decode a file enabler.ogg to enabler.raw as headerless little-endian
68 unsigned 16-bit:
69 oggdec --raw=1 enabler.ogg
70
71 Decode enabler.ogg to enabler.crazymonkey as unsigned 8-bit:
72 oggdec -b 8 -s 0 -o enabler.crazymonkey enabler.ogg
73
74 Decode enabler.ogg to enabler.raw as big-endian signed 16-bit (any of
75 the following):
76 oggdec -R -e 1 -b 16 enabler.ogg
77 oggdec -R -e 1 -b 16 -o enabler.raw - < enabler.ogg
78 oggdec -R -e 1 -b 16 - < enabler.ogg > enabler.raw
79
80 Mass decoding (foo.ogg to foo.wav, bar.ogg to bar.wav, quux.ogg to
81 quux.wav, etc.):
82 oggdec *.ogg
83
84
86 Program Authors
87 Michael Smith <msmith@xiph.org>
88
89 Manpage Authors
90 Frederick Lee <phaethon@linux.ucla.edu>, assisted by a few million mon‐
91 keys armed with keyboards in irc://irc.openprojects.net/#vorbis
92
93
95 ogg123(1), oggenc(1), vorbiscomment(1), flac(1), speexdec(1)
96
97
98
99 2002 July 03 oggdec(1)