How to create DALI batch of combination of two different videos together

I have two different videos as input for the DALI pipeline, I would like to form the batch from a combination of these two videos together.
example:
suppose V1.mp4 & V2.mp4 are the two videos and if the batch size is 2, then the batch output will be expecting like;
batch=[frame1V1, frame1V2]
The next batch would be; batch=[frame2V1,frame2V2] and so on…
So, the batch should be a combination of frames from both videos at a time.
Can anyone share some examples of this!

Hi,

Hope following repos may help you.

Thank you.