spdl.io.load_video¶
-
load_video(
src: str | bytes,
timestamp: tuple[float, float] | None = None,
*,
demux_config: DemuxConfig | None = None,
decode_config: DecodeConfig | None = None,
filter_desc: str | None = _FILTER_DESC_DEFAULT,
device_config: None = None,
**kwargs
) CPUBuffer [source]¶ -
load_video(
src: str | bytes,
timestamp: tuple[float, float] | None = None,
*,
demux_config: DemuxConfig | None = None,
decode_config: DecodeConfig | None = None,
filter_desc: str | None = _FILTER_DESC_DEFAULT,
device_config: CUDAConfig,
**kwargs
) CUDABuffer Load video from source into buffer.
This function combines
demux_video()
,decode_packets()
,convert_frames()
, and optionally,transfer_buffer()
, to produce buffer object from source in one step.- Parameters:
src – See
demux_video()
.timestamp – See
demux_video()
.demux_config – See
demux_video()
.decode_config – See
decode_packets()
.filter_desc – See
decode_packets()
.device_config – See
transfer_buffer()
. Providing this argument will move the buffer to CUDA device.
- Returns:
Buffer object.