VR 360 video playback in Unity app is constantly choppy, not at all smooth on Oculus Quest 2 - unity3d

I'm building a simple 360 monoscopic video player app in Unity for Oculus Quest 2. The video is 4096x2048 30fps mp4 which plays very smoothly in the Oculus TV app but inside my app, it's constantly choppy as if it were 15fps or lower. I have tried many encoding options, tried using the AVPro demo plugin but no luck.
I followed this tutorial: https://learn.unity.com/tutorial/play-360-video-with-a-skybox-in-unity
Any help is very much appreciated!

It was the mismatch between the 30 fps video and the default 72 Hz display refresh rate of the Quest 2. I set the frequency to 90 with this line of code
Unity.XR.Oculus.Performance.TrySetDisplayRefreshRate(90f);
...and now the video plays smoothly.

Related

360 video glitch on Oculus Go APK

I have published the same Unity 360 video app to Gear VR and it works perfectly and used to on Oculus Go. However, recently this glitch has appeared when loading a new scene or playing a video file via VideoPlayer on the Oculus Go. Does anyone know a way of removing this or even what it is? It doesn't appear in the Unity editor and seems localised to the Oculus Go.

Problems recording my 2d game made with Unity (laggy / stuttering)

I'm pretty new to Unity and have a problem. I programmed a small 2D game in Unity that works fine, runs smoothly and doesn't lag at 60 fps. The problem occurs when I try to record a video of my game. No matter which screen recorder I tried (on Windows 10 with Xbox recorder as well as on Android Samsung Galaxy S8 and S5 with different recorders), the video doesn't run smoothly (seems stuttering). I have already tried different quality settings, different fps and switched off vSync, but nothing helped. When I set my game below 60 FPS, the game starts to stutter itself and the FPS is not kept constant. The screen resolution is 1920 x 1080.
I am now very desperate and frustrated about this problem, because I would like to make good quality videos of the game. So if anyone has any idea or suggestions how to solve this problem I would be very thankful!
try this link
it will take you VideoCapture, a free asset made for exactly your purposes. since its free you can add it right to your packages and start using it without trouble, and it elemenates the pesky problem of third party recordings.

Unity 4k 360 Video for iOS and Android

I would like to integrate a 360 video player into an existing app for mobile.
I use the Skybox/Panoramic shader and a RenderTexture for the Video pluged in the VideoPlayer component. In 2k (2048x1024 or 2048x2048 for 3D) everything is fine but when I try to take a 4k video (4096x2048 or 4096x4096 for 3D) the app crashes instantly on an iPhone 6 Plus. I also tested it with a video clip in 3840x1920 but all I got from the debugger is:
INFO [vr/gvr/capi/src/gvr.cc:116] Initialized GVR version 1.120.0
[VRDevice] Successfully created device cardboard.
Message from debugger: Terminated due to memory issue
I thought, it has something to do with the max texture size but 4096x4096 should be OK for most devices today.
Do you guys have an idea whats going on here?
Thanks!

Recording vr motion video

I want to record a vr motion video of my house using aframe so that I can show the demo view of the the house.What are the js files need to be included?How can I do it?
I assume you just want to record 360º video — if so, a 360º camera is the place to start. See: http://thewirecutter.com/reviews/best-360-degree-camera/
You may want to test things out on your device (Gear VR, Cardboard, Vive, whatever) before investing in a camera. Video playback in A-Frame may have some issues on mobile devices particularly.
Example: https://aframe.io/examples/showcase/videosphere/
hi kumar yes you use without using 360 camera by using normal mobile phone but to place that video you have to use latest version of unity that support not only 360 video format but also plane so where you can put that video as an medium.
or if you are using unity 4.6 to unity 5.3 then use have to use some packages like easy video texture in this package you have different options for placing video
https://github.com/maazirfan/Easy-Movie-Texture-for-Unity
and use where ever you want vr/gear vr / htc vive .

GearVR play video resolution 4K,all the scene would tremble when I turn my head

I develop a app on GearVR to play video, when I play video #resolution 4K all the scene will tremble when I turn my head.I know it`s 30FPS and the multithreadRendering is on.How to resolve this.
P.S. And the multithreadRendering should be on.