Linux Commands Examples

A great documentation place for Linux commands


Print information about streams in OGG/OGM files

see also : ogmmerge - ogmsplit - ogmdemux - ogmcat - dvdxchap


ogminfo [options] inname

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!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


This program lists all streams contained in an OGM including information about the codecs used.


Use ’inname’ as the source.

-v, --verbose

Be verbose and show each OGG packet. See the section ’VERBOSITY LEVELS’ for details.

-s, --summary

Will print a short summary for each stream including the total size in bytes, the bitrate, the number of packets/frames and the length in seconds. This requires the parsing of the complete file.

-h, --help

Show usage information.

-V, --version

Show version information.


What works:


OGM with Vorbis audio, ’normal’ video (like DivX etc.), audio streams (PCM, MP3 etc.), text streams (subtitles).

What not works:


Headers created by older OggDS (DirectShow) filter versions are not supported (and probably never will be).

verbosity levels

The -v option can be used to increase ogminfo’s verbosity level and print more information about the current file.
level 0

will print only the streams it finds and their types.

level 1

will also print each stream’s header and comment packets’ contents. These two modes will not process the whole file (as opposed to all other modes) if the comment packets are placed correctly.

level 2

will print a line for each OGG packet it encounters containing the stream the packet belongs to, the payload size, the packet’s granulepos, the packet’s number, its start time, its end time and several flags. The flags may include ’sync_ok’ or ’OUT_OF_SYNC’ which indicates whether the packet’s placement in the file is correct according to its granulepos. Other flags are ’IS_SYNCPOINT’ or ’EOS’.
level 2 and above automatically imply --summary.

level 3

also prints a line whenever a new OGG page was read completely along with the page’s exact position in the file it was read from.

level 4

will dump the complete stream_header structure found in the header packet for any non-Vorbis stream.

The levels 3 and 4 are intended for debugging purposes only.


The newest version can always be found at <> (

see also

ogmmerge , ogmsplit , ogmdemux , ogmcat , dvdxchap


ogminfo was written by Moritz Bunkus <moritz[:at:]bunkus[:dot:]org>.

How can this site be more helpful to YOU ?

give  feedback