GstVideo.VideoVBIEncoder¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
Details¶
- class GstVideo.VideoVBIEncoder¶
An encoder for writing ancillary data to the Vertical Blanking Interval lines of component signals.
New in version 1.16.
- classmethod new(format, pixel_width)[source]¶
- Parameters:
format (
GstVideo.VideoFormat
) – aGstVideo.VideoFormat
pixel_width (
int
) – The width in pixel to use
- Returns:
The new
GstVideo.VideoVBIEncoder
orNone
if the format and/or pixel_width is not supported.- Return type:
Create a new
GstVideo.VideoVBIEncoder
for the specified format and pixel_width.New in version 1.16.
- add_ancillary(composite, DID, SDID_block_number, data)[source]¶
- Parameters:
composite (
bool
) –True
if composite ADF should be created, component otherwiseDID (
int
) – The Data IdentifierSDID_block_number (
int
) – The Secondary Data Identifier (if type 2) or the Data Block Number (if type 1)data (
bytes
) – The user data content of the Ancillary packet. Does not contain the ADF, DID, SDID nor CS.
- Returns:
True
if enough space was left in the current line,False
otherwise.- Return type:
Stores Video Ancillary data, according to SMPTE-291M specification.
Note that the contents of the data are always read as 8bit data (i.e. do not contain the parity check bits).
New in version 1.16.