spdl.io

Implements the core I/O functionalities.

Functions

async_convert_array

async_convert_frames

async_decode_image_nvjpeg

async_decode_image_nvjpeg

[Experimental] Async version of decode_image_nvjpeg().

async_decode_packets

async_decode_packets_nvdec

async_decode_packets_nvdec

[Experimental] Async version of decode_packets_nvdec().

async_demux_audio

async_demux_audio

Async version of demux_audio().

async_demux_image

async_demux_image

Async version of demux_image().

async_demux_video

async_demux_video

Async version of demux_video().

async_encode_image

async_load_audio

async_load_audio

Async version of load_audio().

async_load_image

async_load_image

Async version of load_image().

async_load_image_batch

async_load_image_batch

Batch load images.

async_load_image_batch_nvdec

async_load_image_batch_nvdec

[Experimental] Batch load images with NVDEC.

async_load_image_batch_nvjpeg

async_load_image_batch_nvjpeg

[Experimental] Async version of load_image_batch_nvjpeg().

async_load_video

async_load_video

Async version of load_video().

async_sample_decode_video

async_sample_decode_video

Decode specified frames from the packets.

async_streaming_decode_packets

async_transfer_buffer

async_transfer_buffer_cpu

convert_array

convert_array

Convert the given array to buffer.

convert_frames

convert_frames

Convert the decoded frames to buffer.

cpu_storage

cpu_storage

Allocate a block of memory.

cuda_config

cuda_config

Sprcify the CUDA device and memory management.

decode_config

decode_config

Customize decoding behavior.

decode_image_nvjpeg

decode_image_nvjpeg

[Experimental] Decode image with nvJPEG.

decode_packets

decode_packets

Decode packets.

decode_packets_nvdec

decode_packets_nvdec

[Experimental] Decode packets with NVDEC.

demux_audio

demux_audio

Demux audio from the source.

demux_config

demux_config

Customize demuxing behavior.

demux_image

demux_image

Demux image from the source.

demux_video

demux_video

Demux video from the source.

encode_config

encode_config

Customize encoding behavior.

encode_image

encode_image

Save the given image array/tensor to file.

get_audio_filter_desc

get_audio_filter_desc

Construct FFmpeg filter expression for preprocessing audio.

get_filter_desc

get_filter_desc

Get the filter to process the given packets.

get_video_filter_desc

get_video_filter_desc

Construct FFmpeg filter expression for preprocessing video/image.

load_audio

load_audio

Load audio from source into buffer.

load_image

load_image

Load image from source into buffer.

load_image_batch_nvjpeg

load_image_batch_nvjpeg

[Experimental] Batch load images with nvJPEG.

load_video

load_video

Load video from source into buffer.

run_async

run_async

Run the given synchronous function asynchronously (in a thread).

sample_decode_video

streaming_decode_packets

streaming_decode_packets

Decode the video packets chunk by chunk.

to_jax

to_jax

Convert to JAX Array.

to_numba

to_numba

Convert to Numba DeviceNDArray or NumPy NDArray.

to_numpy

to_numpy

Convert to NumPy NDArray.

to_torch

to_torch

Convert to PyTorch Tensor.

transfer_buffer

transfer_buffer

Move the given CPU buffer to CUDA device.

transfer_buffer_cpu

transfer_buffer_cpu

Move the given CUDA buffer to CPU.

Classes

AudioFrames

AudioFrames

Audio frames.

AudioPackets

AudioPackets

Packets object containing audio samples.

CPUBuffer

CPUBuffer

Buffer implements array interface.

CPUStorage

CPUStorage

Allocate a block of CPU memory.

CUDABuffer

CUDABuffer

CUDABuffer implements CUDA array interface.

CUDAConfig

CUDAConfig

Specify the CUDA devie and memory management.

DecodeConfig

DecodeConfig

Decode configuration.

DemuxConfig

DemuxConfig

Demux configuration.

Demuxer

Demuxer

Demuxer can demux audio, video and image from the soure.

EncodeConfig

EncodeConfig

Encode configuration.

Frames

Frames

Frames object.

ImageFrames

ImageFrames

Image frames.

ImagePackets

ImagePackets

Packets object contain an image frame.

Packets

Packets

Packets object.

VideoFrames

VideoFrames

Video frames.

VideoPackets

VideoPackets

Packets object containing video frames.