Unity 4k 360 Video for iOS and Android - unity3d

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!

Related

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

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.

How to reduce drawcalls in unity?

I'm a beginner developer in Unity 3D and I'm working on a mobile game (Android). Everything works fine when I test my game on the editor (150 FPS) and on my latest phone (One plus 5, 60 FPS), but when I try it on my old phone (LG optimus G5 with android 6.0) I have only 15 FPS.
I try to test an empty scene with only a 3D cube and I can reach 25 FPS. I used the profiler to inspect my game and I see that I have more than 1300 draw calls on my home scene (which I use about 40 differents sprites and 30 differents meshes). I try to put some materials in static batching, enabled GPU instancing, reduce most of the quality settings, but nothing solves my issue. I also tried to disabled every GameObjects of the scene (except the camera) but it doesn't increase FPS (or only 5 FPS).
Here's my profiler on the empty scene (on the LG G5) :
I developped another game with only UI elements and it works fine on this mobile LG G5.
Do i make a mystake in settings ? Or is my phone just too old for my game ? (I try to download crossy road which was made with unity and it works really nice on my old phone..)
How can i improve the graphics performances ?
I'm using universal render pipeline and unity 2019.3.5f.
Thanks in advance ! And please apologize my english isn't perfect.

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.

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 .

Flash Bitmap quality issue with iPhone

So I am using AIR to make a mobile version of a flash game. All the game graphics is transformed into Bitmaps, with the purpose of having high Frame Rates. Everything is fine, except for the iOS version of the game, specifically the iPhone version. On every iPhone I tested, the bitmaps have bad quality. If I play the game on any android device the quality of the game is perfect, same goes if I play on iPad.
I am open to any suggestion.