def METHOD_NAME(self, video: torch.Tensor) -> torch.Tensor:
    """Encode video."""
    b, n, c, h, w = video.shape
    video = video.view(-1, c, h, w)
    frames_features = self.encode_image(video)
    frames_features = frames_features.view(b, n, -1)
    video_features = self.adapter(frames_features)
    return video_features