vllm.multimodal.video_decoders.torchcodec
¶
Classes:
-
TorchCodecVideoBackendMixin–TorchCodec (FFmpeg-backed, PyTorch-native) codec utilities.
TorchCodecVideoBackendMixin
¶
TorchCodec (FFmpeg-backed, PyTorch-native) codec utilities.
Builds a VideoDecoder over the in-memory
bytes and extracts the sampled indices with a single batched
get_frames_at call, while releasing the GIL during decode.
Methods:
-
decode_torchcodec_frames–Decode the requested indices in one batched, index-exact call.
decode_torchcodec_frames(decoder, frame_indices, *, device='cpu')
staticmethod
¶
Decode the requested indices in one batched, index-exact call.