Notes:please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Oggenc#)

Oggenc - encode audio into the Ogg Vorbis format

Oggenc reads audio data in either WAV, FLAC, RAW, or AIFF format and encodes it into an Ogg Vorbis stream. If the input file "-" is specified, audio data is read from stdin and the Vorbis stream is written to stdout unless the -o option is used to redirect the output. By default, disk files are output to Ogg Vorbis files of the same name, with the extension changed to ".ogg". This naming convention can be overridden by the -o option (in the case of one file) or the -n option (in the case of several files). Finally, if none of these are available, the output filename will be the input filename with the extension (that part after the final dot) replaced with ogg, so file.wav will become file.ogg

Set bitrate management mode. This turns off the normal VBR encoding, but allows hard or soft bitrate constraints to be enforced by the encoder. This mode is much slower, and may also be lower quality. It is primarily useful for creating files for streaming.

--managed

Sets encoding quality to n, between -1 (low) and 10 (high). This is the default mode of operation, with a default quality level of 3. Fractional quality levels such as 2.5 are permitted. Normal quality range is 0 - 10.

-q n, --quality=n

Resample input to the given sample rate (in Hz) before encoding. Primarily useful for downsampling for lower-bitrate encoding.

--resample n

Downmix input from stereo to mono (has no effect on non-stereo streams). Useful for lower-bitrate encoding.

--downmix

Sets an advanced option. See the Advanced Options section for details.

--advanced-encode-option optionname=value

Forces a specific serial number in the output stream. This is primarily useful for testing.

-s, --serial

Write the Ogg Vorbis stream to output_file (only valid if a single input file is specified)

Add the string comment as an extra comment. This may be used multiple times, and all instances will be added to each of the input files specified.

-c comment, --comment comment

Set the artist comment field in the comments to artist.

-a artist, --artist artist

Set the genre comment field in the comments to genre.

-G genre, --genre genre

Sets the date comment field to the given value. This should be the date of recording.

-d date, --date date

Sets the track number comment field to the given value.

-N n, --tracknum n

Set the track title comment field to title.

-t title, --title title

Set the album comment field to album.

-l album, --album album

Note that the -a, -t, and -l options can be given multiple times. They will be applied, one to each file, in the order given. If there are fewer album, title, or artist comments given than there are input files, oggenc will reuse the final one for the remaining files, and issue a warning in the case of repeated titles.

ADVANCED ENCODER OPTIONS:

Oggenc allows you to set a number of advanced encoder options using the --advanced-encoder-option option. These are intended for very advanced users only, and should be approached with caution. They may significantly degrade audio quality if misused. Not all these options are currently documented.

Set the managed bitrate window to NN seconds. The bitrate will be forced to the specified average over a floating window of this length. May be fractional (e.g. 3.5)

oggenc somefile.wav -t "The track title" -a "artist who performed this" -l "name of album" -c "OTHERFIELD=contents of some other field not explictly supported"

This encodes the three files, each with the same artist/album tag, but with different title tags on each one. The string given as an argument to -n is used to generate filenames, as shown in the section above. This example gives filenames like "The Tea Party - Touch.ogg":