4. MPEG Video Bitstream
- Public domain tool
mpeg_stat
and mpeg_bits
will analyze a bitstream.
- Sequence Information
- Video Params include width, height, aspect ratio of pixels, picture rate.
- Bitstream Params are bit rate, buffer size, and constrained parameters flag (means bitstream can be decoded by most hardware)
- Two types of QTs: one for intra-coded blocks (I-frames) and one for inter-coded blocks (P-frames).
- Group of Pictures (GOP) information
- Time code: bit field with SMPTE time code (hours, minutes, seconds, frame).
- GOP Params are bits describing structure of GOP. Is GOP closed? Does it have a dangling pointer broken?
- Picture Information
- Type: I, P, or B-frame?
- Buffer Params indicate how full decoder's buffer should be before starting decode.
- Encode Params indicate whether half pixel motion vectors are used.
- Slice information
- Vert Pos: what line does this slice start on?
- QScale: How is the quantization table scaled in this slice?
- Macroblock information
- Addr Incr: number of MBs to skip.
- Type: Does this MB use a motion vector? What type?
- QScale: How is the quantization table scaled in this MB?
- Coded Block Pattern (CBP): bitmap indicating which blocks are coded.