Oggenc is the official Ogg Vorbis encoder. It reads audio data in either WAV, FLAC, RAW, or AIFF format and encodes it into an Ogg Vorbis stream. Although FFmpeg can encode OGG Vorbis with the libvorbis library it fewer encoding options and can be considered broken (see: Ogg and WebM technical alert).
Install the Template:Package Official package with root permission:
# pacman -S vorbis-tools
or install a Python alternative, AUR, which additionally converts WMA.AUR, found in the