PyNvCodec.SeekContext¶
- class PyNvCodec.SeekContext¶
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: PyNvCodec._PyNvCodec.SeekContext, seek_frame: int) -> None
Constructor method.
- param seek_frame:
number of frame to seek for, starts from 0
__init__(self: PyNvCodec._PyNvCodec.SeekContext, seek_frame: int, mode: PyNvCodec._PyNvCodec.SeekMode) -> None
Constructor method.
- param seek_frame:
number of frame to seek for, starts from 0
- param mode:
seek to exact frame number or to closest previous key frame
__init__(self: PyNvCodec._PyNvCodec.SeekContext, seek_ts: float) -> None
Constructor method. Will initialize context for seek by frame timestamp.
- param seek_frame:
timestamp (s) of frame to seek for.
__init__(self: PyNvCodec._PyNvCodec.SeekContext, seek_ts: float, mode: PyNvCodec._PyNvCodec.SeekMode) -> None
Constructor method.
- param seek_frame:
timestamp (s) of frame to seek for.
- param mode:
seek to exact frame number or to closest previous key frame
Methods
__init__
(*args, **kwargs)Overloaded function.
Attributes
by frame number or timestamp
Number of frames, decoded if seek was done to closest previous key frame.
PTS of frame decoded after seek.
Number of frame we want to seek.
Timestamp we want to seek.
- property mode¶
by frame number or timestamp
- Type:
Seek mode
- property num_frames_decoded¶
Number of frames, decoded if seek was done to closest previous key frame.
- property out_frame_pts¶
PTS of frame decoded after seek.
- property seek_frame¶
Number of frame we want to seek.
- property seek_tssec¶
Timestamp we want to seek.