Linux Commands Examples

A great documentation place for Linux commands


gives information about Ogg files, and does extensive validity checking

see also : vorbiscomment - ogg123 - oggdec - oggenc


ogginfo [ -q ] [ -v ] [ -h ] file1.ogg ... fileN.ogg

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


WAV=`echo "$1" | sed s/\.ogg$/.wav/g`
ALBUM=`ogginfo "$1" | grep ALBUM= | sed s/.*=//`
ARTIST=`ogginfo "$1" | grep ARTIST= | sed s/.*=//`
ARTIST=`ogginfo "$1" | grep ARTIST= | sed s/.*=//`
DATE=`ogginfo "$1" | grep DATE= | sed s/.*=//`
for prog in mplayer curl file bitter bc ogginfo pkg-config
command -v "$prog" >/dev/null || {


ogginfo reads one or more Ogg files and prints information about stream contents (including chained and/or multiplexed streams) to standard output. It will detect (but not correct) a wide range of common defects, with many additional checks specifically for Ogg Vorbis streams.

For all stream types ogginfo will print the filename being processed, the stream serial numbers, and various common error conditions.

For Vorbis streams, information including the version used for encoding, the sample rate and number of channels, the bitrate and playback length, and the contents of the comment header are printed.

Similarly, for Theora streams, basic information about the video is provided, including frame rate, aspect ratio, bitrate, length, and the comment header.



Show a help and usage message.


Quiet mode. This may be specified multiple times. Doing so once will remove the detailed informative messages, twice will remove warnings as well.


Verbose mode. At the current time, this does not do anything.

see also

vorbiscomment , ogg123 , oggdec , oggenc


Michael Smith <msmith[:at:]xiph[:dot:]org>

How can this site be more helpful to YOU ?

give  feedback