This commit is contained in:
Jade Choghari
2025-03-04 13:31:25 +03:00
committed by GitHub
parent 920079230e
commit 2295e6c45b

View File

@@ -41,7 +41,9 @@ def decode_video_frames(
Args:
video_path (Path): Path to the video file.
query_ts (list[float]): List of timestamps to extract frames.
timestamps (list[float]): List of timestamps to extract frames.
tolerance_s (float): Allowed deviation in seconds for frame retrieval.
backend (str, optional): Backend to use for decoding. Defaults to "torchcodec".
Returns:
torch.Tensor: Decoded frames.