| 1 |
.TH "oggdec" "1" "2008 September 9" "Xiph.Org Foundation" "Vorbis Tools" |
| 2 |
|
| 3 |
.SH "NAME" |
| 4 |
oggdec - simple decoder, Ogg Vorbis file to PCM audio file (Wave or RAW). |
| 5 |
|
| 6 |
.SH "SYNOPSIS" |
| 7 |
.B oggdec |
| 8 |
[ |
| 9 |
.B -Qhv |
| 10 |
] [ |
| 11 |
.B -b bits_per_sample |
| 12 |
] [ |
| 13 |
.B -e endianness |
| 14 |
] [ |
| 15 |
.B -R |
| 16 |
] [ |
| 17 |
.B -s signedness |
| 18 |
] [ |
| 19 |
.B -o outputfile |
| 20 |
] |
| 21 |
.B file ... |
| 22 |
|
| 23 |
.SH "DESCRIPTION" |
| 24 |
|
| 25 |
.B oggdec |
| 26 |
decodes Ogg Vorbis files into PCM-encoded ("uncompressed") audio files, either Wave or RAW format. |
| 27 |
|
| 28 |
For each input file, |
| 29 |
.B oggdec |
| 30 |
writes to a filename based on the input filename, but with the extension changed to ".wav" or ".raw" as appropriate. |
| 31 |
|
| 32 |
If the input file is specified as |
| 33 |
.B "-" |
| 34 |
, then |
| 35 |
.B oggdec |
| 36 |
will read from stdin, and write to stdout unless an output filename is specified. Likewise, an output filename of |
| 37 |
.B - |
| 38 |
will cause output to be to stdout. |
| 39 |
|
| 40 |
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. |
| 41 |
|
| 42 |
.SH "OPTIONS" |
| 43 |
.IP "-Q, --quiet" |
| 44 |
Suppresses program output. |
| 45 |
.IP "-h, --help" |
| 46 |
Print help message. |
| 47 |
.IP "-V, --version" |
| 48 |
Display version information. |
| 49 |
.IP "-b n, --bits=n" |
| 50 |
Bits per sample. Valid values are 8 or 16. |
| 51 |
.IP "-e n, --endian=n" |
| 52 |
Set endianness for 16-bit output. 0 (default) is little-endian (Intel byte order). 1 is big-endian (sane byte order). |
| 53 |
.IP "-R, --raw" |
| 54 |
Output in raw format. If not specified, writes Wave file (RIFF headers). |
| 55 |
.IP "-s n, --sign=n" |
| 56 |
Set signedness for output. 0 for unsigned, 1 (default) for signed. |
| 57 |
.IP "-o filename, --output=filename" |
| 58 |
Write output to specified filename. This option is only valid if one input [file] is specified, or if raw mode is used. |
| 59 |
|
| 60 |
.SH "EXAMPLES" |
| 61 |
Decode a file |
| 62 |
.B enabler.ogg |
| 63 |
to |
| 64 |
.B enabler.wav |
| 65 |
as little-endian signed 16-bit (default options): |
| 66 |
.RS |
| 67 |
oggdec enabler.ogg |
| 68 |
.RE |
| 69 |
|
| 70 |
Decode a file |
| 71 |
.B enabler.ogg |
| 72 |
to |
| 73 |
.B enabler.raw |
| 74 |
as headerless little-endian signed 16-bit: |
| 75 |
.RS |
| 76 |
oggdec --raw enabler.ogg |
| 77 |
.RE |
| 78 |
|
| 79 |
Decode |
| 80 |
.B enabler.ogg |
| 81 |
to |
| 82 |
.B enabler.crazymonkey |
| 83 |
as unsigned 8-bit: |
| 84 |
.RS |
| 85 |
oggdec -b 8 -s 0 -o enabler.crazymonkey enabler.ogg |
| 86 |
.RE |
| 87 |
|
| 88 |
Decode |
| 89 |
.B enabler.ogg |
| 90 |
to |
| 91 |
.B enabler.raw |
| 92 |
as big-endian signed 16-bit (any of the following): |
| 93 |
.RS |
| 94 |
oggdec -R -e 1 -b 16 enabler.ogg |
| 95 |
.RE |
| 96 |
.RS |
| 97 |
oggdec -R -e 1 -b 16 -o enabler.raw - < enabler.ogg |
| 98 |
.RE |
| 99 |
.RS |
| 100 |
oggdec -R -e 1 -b 16 - < enabler.ogg > enabler.raw |
| 101 |
.RE |
| 102 |
|
| 103 |
Mass decoding (foo.ogg to foo.wav, bar.ogg to bar.wav, quux.ogg to quux.wav, etc.): |
| 104 |
.RS |
| 105 |
oggdec *.ogg |
| 106 |
.RE |
| 107 |
|
| 108 |
.SH "AUTHORS" |
| 109 |
.SS "Program Authors" |
| 110 |
Michael Smith <[email protected]> |
| 111 |
.SS "Manpage Authors" |
| 112 |
|
| 113 |
.br |
| 114 |
|
| 115 |
Frederick Lee <[email protected]>, assisted by a few million monkeys armed with keyboards in irc://irc.openprojects.net/#vorbis |
| 116 |
|
| 117 |
.SH "SEE ALSO" |
| 118 |
|
| 119 |
.PP |
| 120 |
\fBogg123\fR(1), \fBoggenc\fR(1), \fBvorbiscomment\fR(1), \fBflac\fR(1), \fBspeexdec\fR(1) |