How can I play multiple video chunks one after the other without any glitching \ frame drop?

Hi,

I’m having a full movie which is 70GB which is too big for my to play.
I have split the above to 70 X 1GB video files in a format: video_.mp4
I would like to play one file in the Video Player and once it’s ended play the next one without any UI glitches or video frame drops.

I have tried 2 different technics but I got a small glitch when implementing both of them:
*The video if a 360 one.

  1. Working with two “Video Players”
    Playing the first one chunk 1 , and running .Prepare(); chunk 2 on the second VideoPlayer.
    Register to the “loopPointReached” event and then pre loading chunk 3, and starting the other Video Player.
    This is working with a 0.5-1 sec glitch between the chunks.

  2. Working with two “Video Players” + two render texture + two materials.
    Same as above but when also changing the skybox to the new loaded material when I’m starting to play the next chunks using:

RenderSettings.skybox = videoPlayerMeterials[videoPlayerToWarmUp];

This is working with a 0.5-1 sec glitch between the chunks.

Both gave ± the same performance.

What would be the right and best practice to play such videos without any UI glitches?

I’ll appreciate any response and help suggestion:)

I don’t even think most codecs can do this seamlessly, or at least I’ve never seen it done. Even ffmpeg will flicker between chunks. Youtube does it with their chapter slices but they control the full shape and context of the data, so they could do really anything.

Paper it over with a “And now for Part 2!” loading screen, move on. :slight_smile:

1 Like

Well I can’t do it with the “and now for part …”
The video is about 60 minutes long ± 60GB => 1m per chunk which is 1GB.
So I’ll have lots of loading screens, and it should be 1 video :\

could try other video player(s) from asset store, that streams data from that 70gb file?
(if unity video player dies on that big file)

I don’t think it’s a limit of unity rather then a device limitation.
Playing the video on Oculus Quest 2.
Are you familiar with a specific better player?