Rate this Page

encode_video#

torchrl.render.video.encode_video(frames: Sequence[ndarray], path: str | Path, fps: float, *, video_codec: str | None = None) Path[source]#

Encodes RGB frames as an MP4 using TorchRL’s torchcodec writer.