cancel
Showing results for 
Search instead for 
Did you mean: 

How to prepare 360 VR videos for later playback.

Kloster_Hude
Level 2

We are developing a VR app for the oculus go.  The videos we're using are prerendert from a 3d Software, 4096x4096px, 360 degrees, stereo (top/bottom) h265 encoded. Actualy im using the Unity standart video player, render2tetxure and display on a large sphere.

 

At every end of a video we stand on a crossing and blend in multiple arrows for the user to choose the next path.

That all works well. But now i got 2 questions.

 

1) Is it possible to start a video from a given frame ? (lets say frame 100)

   When im setting video.frame and call play(). The video always start from the first frame.

 

2) Can the videos that the user possibly can choose at a crossing, be prepared when reaching the end of the current video. How can this be done ? Can this be done in background while still playing the last frames of the current video? There is a maximum of 4 possible videos per crossing.

 

At last some screenshots for you to get an idea what it will look like.

 

frame-0046.jpg 

 

Screenshot 1.jpg

2 REPLIES 2

baroquedub
Level 4

Last I looked the built in Video Player had awful memory management. imho you'd be way better off using AVPro Video as a more solid playback solution.

 

It has startTime (which you can convert to/from frame number knowing your framerate) as well as caching (which you'd want for your branching)

public virtual void AddMediaToCache(string url, string headers, MediaCachingOptions options)

https://www.renderheads.com/content/docs/AVProVideo/api/RenderHeads.Media.AVProVideo.BaseMediaPlayer...

 

and for checking, Enum CachedMediaStatus:

NameDescription
CachedThe media is cached.
CachingThe media is being cached.
FailedThe media is not cached, something went wrong - check the log.
NotCachedThe media has not been cached.

https://www.renderheads.com/content/docs/AVProVideo/api/RenderHeads.Media.AVProVideo.CachedMediaStat...

It's not cheap although it comes in different flavours (Core, Android only, Ultra etc.) and it has a fully working watermarked trial version so you can properly evaluate it before purchasing.

https://assetstore.unity.com/packages/tools/video/avpro-video-core-edition-181844?aid=1100lMeW

Kloster_Hude
Level 2

Thanks for the answere, we will have a look at that.