Commit 46b2367b authored by Michael Smith's avatar Michael Smith
Browse files

Add manpage (contributed by Frederick Lee <>)

fix raw option.

svn path=/trunk/vorbis-tools/; revision=3514
parent f9ed06f0
......@@ -10,6 +10,9 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
bin_PROGRAMS = oggdec
mandir = @MANDIR@
man_MANS = oggdec.1
......@@ -17,6 +20,8 @@ oggdec_DEPENDENCIES = @SHARE_LIBS@
oggdec_SOURCES = oggdec.c
......@@ -24,3 +29,5 @@ debug:
.TH "oggdec" "1" "2002 July 03" "" "Vorbis Tools"
oggdec - simple decoder, Ogg Vorbis file to PCM audio file (WAV or RAW).
.B oggdec
.B -Qhv
] [
.B -b bits_per_sample
] [
.B -e endianness
] [
.B -R rawness
] [
.B -s signedness
] [
.B -o outputfile
.B file ...
.B oggdec
decodes Ogg Vorbis files into PCM-encoded ("uncompressed") audio files, either WAV or RAW format.
For each input file,
.B oggdec
writes to a filename based on the input filename, but with the extension changed to ".wav" or ".raw" as appropriate.
If the input file is specified as
.B "-"
, then
.B oggdec
will read from stdin, and write to stdout unless an output filename is specified. Likewise, an output filename of
.B -
will cause output to be to stdout.
Writing WAV format to stdout is a bad idea. WAV requires a seekable medium for the header to be rewritten after all the data is written out; stdout is not seekable.
.IP "-q, --quiet"
Suppresses program output.
.IP "-h, --help"
Print help message.
.IP "-v, --version"
Display version information.
.IP "-b n, --bits=n"
Bits per sample. Valid values are 8 or 16.
.IP "-e n, --endian=n"
Set endianness for 16-bit output. 0 (default) is little-endian (Intel byte order). 1 is big-endian (sane byte order).
.IP "-R n, --raw=n"
Output in raw format. If not specified, writes WAV file (RIFF headers).
.IP "-s n, --sign=n"
Set signedness for output. 0 for unsigned, 1 (default) for signed.
.IP "-o filename, --output=filename"
Write output to specified filename. This option is only valid if one input [file] is specified.
Decode a file
.B enabler.ogg
.B enabler.wav
as little-endian unsigned 16-bit (default options):
oggdec enabler.ogg
Decode a file
.B enabler.ogg
.B enabler.raw
as headerless little-endian unsigned 16-bit:
oggdec --raw=1 enabler.ogg
.B enabler.ogg
.B enabler.crazymonkey
as unsigned 8-bit:
oggdec -b 8 -s 0 -o enabler.crazymonkey enabler.ogg
.B enabler.ogg
.B enabler.raw
as big-endian signed 16-bit (any of the following):
oggdec -R 1 -e 1 -b 16 enabler.ogg
oggdec -R 1 -e 1 -b 16 -o enabler.raw - < enabler.ogg
oggdec -R 1 -e 1 -b 16 - < enabler.ogg > enabler.raw
Mass decoding (foo.ogg to foo.wav, bar.ogg to bar.wav, quux.ogg to quux.wav, etc.):
oggdec *.ogg
.B ogg123(1)
.SS "Program Authors"
Michael Smith <>
.SS "Manpage Authors"
Frederick Lee <>, assisted by a few million monkeys armed with keyboards in irc://
......@@ -68,7 +68,7 @@ static void parse_options(int argc, char **argv)
int option_index = 1;
int ret;
while((ret = getopt_long(argc, argv, "Qhvb:e:r:s:o:",
while((ret = getopt_long(argc, argv, "Qhvb:e:R:s:o:",
long_options, &option_index)) != -1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment