I was looking for it now and found that torchvision allows you to write a tensor as a video. I suppose it wasn’t available a year ago, otherwise it would have been mentioned here for sure. Here’s the link https://pytorch.org/docs/stable/torchvision/io.html#torchvision.io.write_video 173