vllm.multimodal.video_decoders ¶
Modules:
-
base– -
deepstream– -
opencv– -
pyav– -
pynvvideocodec– -
torchcodec–
Classes:
-
VideoSourceMetadata–Metadata describing the encoded video source.
-
VideoTargetMetadata–Metadata describing the requested video sample.
Functions:
-
check_frame_pixel_limit–Reject video frames exceeding
VLLM_MAX_IMAGE_PIXELS. -
decode_video–Decode a sampled video, importing only the selected backend.
-
resolve_video_backend_kwargs–Split frame-sampling kwargs from options owned by a decoder backend.
VideoSourceMetadata ¶
VideoTargetMetadata ¶
check_frame_pixel_limit(width, height) ¶
Reject video frames exceeding VLLM_MAX_IMAGE_PIXELS.
Source code in vllm/multimodal/video_decoders/base.py
decode_video(backend, loader_cls, data, target, sampling_kwargs, backend_kwargs, *, frame_recovery) ¶
Decode a sampled video, importing only the selected backend.
Source code in vllm/multimodal/video_decoders/__init__.py
resolve_video_backend_kwargs(backend, kwargs) ¶
Split frame-sampling kwargs from options owned by a decoder backend.