PyNvCodec.SeekContext

class PyNvCodec.SeekContext
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: PyNvCodec._PyNvCodec.SeekContext, seek_frame: int) -> None

    Constructor method.

    param seek_frame:

    number of frame to seek for, starts from 0

  2. __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

  3. __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.

  4. __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

mode

by frame number or timestamp

num_frames_decoded

Number of frames, decoded if seek was done to closest previous key frame.

out_frame_pts

PTS of frame decoded after seek.

seek_frame

Number of frame we want to seek.

seek_tssec

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.