Cin is the number of channels in the image/frame (I assume 1 if they are grayscaled), D is the frame dimension (this dimension considers relationship among the frames in the input).
So your input should have the shape (N, 1, 30, 224, 224).