title: How to load a video as a 4 dimensional tensor in tensorflow to train a 3D-CNN?
body: <p>I have a binary classification task at hand. I have created two folder of videos corresponding to the two classes. I have also created an annotation CSV which contains the path of the file and the class.</p>
  <p>I am not able to find a way to create a generator which could load the MP4 video as a 4-D tensor using Tensorflow. I did it in PyTorch quite easily using torchvision.io.read_video function and extending the Dataset class. Is there any equivalent in Tensorflow?</p>
  <p>I want to use it to train  video classifier 3D-CNN and want to feed it a 5D tensor of (batch_size, frames, height, width, channel)</p>
  <p>PS: I don't want to save individual frames on disk.</p>