vllm.multimodal.video_decoders
¶
Modules:
-
base– -
deepstream– -
opencv– -
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.
-
incompatible_backend_options–Option names accepted by
old_backendbut not bynew_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
incompatible_backend_options(old_backend, new_backend)
¶
Option names accepted by old_backend but not by new_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.