home *** CD-ROM | disk | FTP | other *** search
- InfoMPEG version 1.0
- --------------------
-
- InfoMPEG is a small utility to parse MPEG-1 compatible video streams,
- and return information that is easily attainable (virtually no processing
- of data beyond start codes). Even so, hopefully some will find this program
- useful. Since there is very little data processing required for the
- program's execution, it runs fairly quickly.
- InfoMPEG was written to provide a quick and convenient way of constructing
- charts containing various details on MPEG streams, allowing comparisons to
- easily be made. It can also be used simply to find out the pixel resolution
- and types of frames in a stream (can do so almost instantly).
-
-
- Installing InfoMPEG
- -------------------
-
- For UNIX, simply type 'make'.
- (If a problem arises, please email me with details of the problem.)
-
- For any non-UNIX system, use a C compiler to compile the source file
- 'infoMPEG.c' included in the archive. The code should be general enough
- to compile correctly under any compiler. However, it has only been tested
- on a PC with Borland C for MSDOS, so please do not be surprised if the
- code does not compile using something else.
- (If you encounter a problem compiling, and email me with details of
- the problem, I will try to correct it.)
-
- For PC users, an 8086/8088 binary compatible MSDOS executable has been
- included in the archive which is at your disposal. However, if you wish
- to recompile, you may do so with the source code included.
- For those using Borland C,
- Copy the file 'makefile.bc' to 'makefile', and type 'make'.
- OR
- Uncomment the line '#define BORLAND' near the beginning of the
- header file 'infoMPEG.h', and compile within the Borland editor.
-
-
- InfoMPEG Options
- ----------------
-
- Usage: InfoMPEG [-123] filename.mpg [filename.mpg ...]
-
- Option '-1' should be used when the resolution and types of frames
- in a bitstream are sufficient data. This option is
- very quick (can be used to scan through directories of
- MPEG files in seconds using the wildcard string '*.MPG')
-
- Option '-2' or Option '-3' should be used when '-1' does not return
- enough data. As with '-1', either option can be used on
- a single MPEG file or with multiple files. If more than
- one file is specified, a summary chart will be displayed
- at the end of output.
-
-
- Misc
- ----
-
- The variable 'tot_len' is defined as an unsigned long, so it can hold
- values between 0 and 2^32(approx. 4 gigs). Since this variable is
- used to hold the total number of bytes of uncompressed MPEG data, it
- is possible for it to overflow. For example, my moderately sized MPEG
- collection with about two dozen streams totals just under a gigabyte
- uncompressed. If this 4 gig limit is found to be too small, it will be
- changed.
-
- There are a few more details readily available from a MPEG bitstream
- located just after the sequence start code, such as aspect ratio,
- frame rate, and bit rate. Also, the number of macroblocks for each frame
- can easily be calculated. There were left out because I rarely want
- to know their values, and I assume others would not either.
- However, if there are a few requests they will be included in Option '-3'.
-
- For those who might want to know, the source code for InfoMPEG was
- written in two days.
-
-
- Distributing InfoMPEG
- ---------------------
-
- Permission to use, copy, modify, and distribute this software and its
- documentation for any purpose, without fee, and without written agreement
- is hereby granted, provided that the following copyright notice appears
- in all copies of this software.
-
- InfoMPEG Copyright (C) 1993 Dennis Lee
-
- I welcome any comments, suggestions, and even criticism 8).
- Send any to email address: leed@ugsparc10.eecg.toronto.edu
-