GstCodecParsers.MpegVideoPacket

Fields

Name

Type

Access

Description

data

int

r/w

the data containing the packet starting at offset

offset

int

r/w

the offset of the packet start in bytes from data. This is the start of the packet itself without the sync code

size

int

r/w

The size in bytes of the packet or -1 if the end wasn’t found. This is the size of the packet itself without the sync code

type

int

r/w

the type of the packet that start at offset, as a GstCodecParsers.MpegVideoPacketTypeCode

Methods

parse_gop ()

parse_picture_extension ()

parse_picture_header ()

parse_quant_matrix_extension ()

parse_sequence_display_extension ()

parse_sequence_extension ()

parse_sequence_header ()

parse_sequence_scalable_extension ()

parse_slice_header (seq_hdr, seqscaleext)

Details

class GstCodecParsers.MpegVideoPacket

A structure that contains the type of a packet, its offset and its size

parse_gop()
Returns:

True if the gop could be parsed correctly, False otherwise.

gop:

The GstCodecParsers.MpegVideoGop structure to fill

Return type:

(bool, gop: GstCodecParsers.MpegVideoGop)

Parses the gop MPEG Video Group of Picture structure members from video self

New in version 1.2.

parse_picture_extension()
Returns:

True if the picture extension could be parsed correctly, False otherwise.

picext:

The GstCodecParsers.MpegVideoPictureExt structure to fill

Return type:

(bool, picext: GstCodecParsers.MpegVideoPictureExt)

Parse the ext MPEG Video Picture Extension structure members from video self

New in version 1.2.

parse_picture_header()
Returns:

True if the picture sequence could be parsed correctly, False otherwise.

pichdr:

The GstCodecParsers.MpegVideoPictureHdr structure to fill

Return type:

(bool, pichdr: GstCodecParsers.MpegVideoPictureHdr)

Parsers the pichdr MPEG Video Picture Header structure members from video self

New in version 1.2.

parse_quant_matrix_extension()
Returns:

True if the quant matrix extension could be parsed correctly, False otherwise.

quant:

The GstCodecParsers.MpegVideoQuantMatrixExt structure to fill

Return type:

(bool, quant: GstCodecParsers.MpegVideoQuantMatrixExt)

Parses the quant MPEG Video Quantization Matrix Extension structure members from video self

New in version 1.2.

parse_sequence_display_extension()
Returns:

True if the seqext could be parsed correctly, False otherwise.

seqdisplayext:

The GstCodecParsers.MpegVideoSequenceDisplayExt structure to fill

Return type:

(bool, seqdisplayext: GstCodecParsers.MpegVideoSequenceDisplayExt)

Parses the seqext MPEG Video Sequence Display Extension structure members from video self

New in version 1.2.

parse_sequence_extension()
Returns:

True if the seqext could be parsed correctly, False otherwise.

seqext:

The GstCodecParsers.MpegVideoSequenceExt structure to fill

Return type:

(bool, seqext: GstCodecParsers.MpegVideoSequenceExt)

Parses the seqext MPEG Video Sequence Extension structure members from video self

New in version 1.2.

parse_sequence_header()
Returns:

True if the seqhdr could be parsed correctly, False otherwise.

seqhdr:

The GstCodecParsers.MpegVideoSequenceHdr structure to fill

Return type:

(bool, seqhdr: GstCodecParsers.MpegVideoSequenceHdr)

Parses the seqhdr MPEG Video Sequence Header structure members from video self

New in version 1.2.

parse_sequence_scalable_extension()
Returns:

True if the seqext could be parsed correctly, False otherwise.

seqscaleext:

The GstCodecParsers.MpegVideoSequenceScalableExt structure to fill

Return type:

(bool, seqscaleext: GstCodecParsers.MpegVideoSequenceScalableExt)

Parses the seqscaleext MPEG Video Sequence Scalable Extension structure members from video self

New in version 1.2.

parse_slice_header(seq_hdr, seqscaleext)
Parameters:
Returns:

True if the slice could be parsed correctly, False otherwise.

slice_hdr:

The GstCodecParsers.MpegVideoSliceHdr structure to fill

Return type:

(bool, slice_hdr: GstCodecParsers.MpegVideoSliceHdr)

Parses the GstMpegVideoSliceHdr structure members from data

New in version 1.2.