# VR Video Orchestra APK with Oculus Quest 2 Tips And Tricks XP

**URL:** <https://forums.unrealengine.com/t/vr-video-orchestra-apk-with-oculus-quest-2-tips-and-tricks-xp/1392704>\
**Category:** Mobile\
**Tags:** apk, video, oculus-vr, unreal-engine\
**Created:** [November 15, 2023, 5:24pm UTC](https://forums.unrealengine.com/t/vr-video-orchestra-apk-with-oculus-quest-2-tips-and-tricks-xp/1392704 "2023-11-15T17:24:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anodin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anodin/32/778914_2.png) [@anodin](https://forums.unrealengine.com/u/anodin)\
**Post date:** [November 15, 2023, 5:24pm UTC](https://forums.unrealengine.com/t/vr-video-orchestra-apk-with-oculus-quest-2-tips-and-tricks-xp/1392704/1 "2023-11-15T17:24:09Z")

</div>

Hi community,  
I created a VR application last year on Oculus Quest 2 with Unreal Engine 4.27.2  
It’s a serious game where you take place as a conductor, it integrate 4 larges 360 videos captured with the musician of the Montreal Symphony Orchestra.  
Here a video of the final resuly :

I'm happy with the final result, and now I'm also happy to share with the community the troubleshot by where I past through, i hope it can help some people how gonna start this aventure.

First i dev only for Oculus Quest 2, add a different headset will need to create different build for each one…  
And at the time VR was not implemented on UE5, and i can said it’s better to stay on old stable product that go on fancy new engine and get stuck forever.

1- Visual studio 2019  
Pption Game / tablet

> **[Visual Studio 2019](https://www.techspot.com/downloads/7241-visual-studio-2019.html)**
>
> Developer tools and services for any platform with any language. IDE, DevOps, code editor & more.

2- Oculus + Android Studio :  
[https://developer.oculus.com/documentation/unreal/unreal-quick-start-guide-quest/?device=QUEST](https://developer.oculus.com/documentation/unreal/unreal-quick-start-guide-quest/?device=QUEST)

> **[Download Android Studio & App Tools - Android Developers](https://developer.android.com/studio)**
>
> Android Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.

I installed Android API 31  
I got save by this video ! At the end he show how rename and rewrite a java file : d8.jar to dx.jar

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/1/671d738bf164ed63e6ffbd4dab54b928623ec1e6.jpeg "Unreal Engine - Set up SDK, NDK and JDK for VR and other Android Devices") ](https://www.youtube.com/watch?v=jMkl5FdtvP8)

Here a screeshot of my Android preference :

 ![UE4Editor_Android](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/3/0a37d74ec5b2a5de47f636f5a747cbd9a107a5fe.png)  
Yes i installed android version 31 but i write 29  
I allow large OBB file because i got large video to feed.  
But i you can try to keep you app light and package everything in the .apk, it easier to export and install.  
Important is the Build section :  
I really try all combinaison, and i try first new vulkan and at the end i have to go back to the calssic OpenGL 3 because Vulkan didn t allow my to use video inside Widget, it get black ! It was a terrible situation for me because all the Ui on the Conductor pupitre was done with Widget and discover that at the end of the projet, i had to delete all the widget and redo it with Blueprint.  
 ![partitura_partition](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/8/f380d4eea02233c15b69d4777d098a16ee55ea9d.jpeg)

 ![unreal_Android_P3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/8/c7891fb23a0a635bf546cc0903433abf043f731a.png)  
Here my Oculus VR setting  
Lot to say about colors, i didn t have the same color on the oculus plug in on my computer and since my apk exported, so you can imagine how had it was the back and forth…  
Video :  
For optimization we cut the 360 video to render only the part where was the musician move as video, the ‘room’ was render as Still image but fade each other because at the beginning and at the end, the lighting of the room change.  
 ![UE4Editor_OculusVR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/e/e6e039b5e6a0075fa079bb51b670096a1f639966.png)

So use Color rec 709 in Ae.  
In the Oculus doc they say that oculus is a Rec2020, but i used rec 709 too.  
We export a lot a time video to match Image and video colors  
A lot of coodec was used too.  
I try vp8, vp9, av1, mkv, ogg, 3gp, too much to return to only the mp4, here the command line for ffmpeg  
ffmpeg -i “input.mov” -c:v libx264 -preset slow -crf 17 -x264-params mvrange=511 -pix\_fmt yuv420p -an -movflags faststart “output.mp4”

Audio :  
Ochestra mean good audio. We thought ambisonic sound format will help us in this VR spacialisation… and noo  
Unreal Engine only supports first-order ambisonic assets = So only 4 channel = Mono + L-R (AKA mid-side stereo)  
So after this desilution the Sound Studio had to recreate all the audio source inside of Unreal and animated it depend of the choose of the user instrument selection. You can see the audio source in the screeneshot and the Sphere Mesh Cut.

 ![UE4Editor_6nZnTIeHz1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/7/ab79901d4f26817d0a1a4e69fb0a4f344ddd28c1.jpeg)  
 ![UE4Editor_odrkDwyXSP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/f/75f89c4de045dd4ba33a75d20787a9677da06faa.jpeg)

 ![UE4Editor_Audio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/3/dc317c61ff326ee6ef5a1f806632710d12ffc1a5.png)

To blend image and video, we had a nice god ray. When the user select an instrument, the partition appear over them.  
What is the most performance consuming in VR mobile app ? TRANSPARENCY.  
i just can say avoid it.

 ![UE4Editor_ImageRendering](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/4/fd485937760c32cfe03c9c224aa5a25b7fd7285c.png)

Important Foreward rendring for performance.  
AntiAliasing : MSAA

I got problem with Scene capture in mobile, we try to avoid video at the begining, for the partition just a camera animated in X axis, could have make the job. but this is an old bug report :

> [@Mobile VR - Multiview: Render to texture is black.](https://forums.unrealengine.com/t/mobile-vr-multiview-render-to-texture-is-black/464048):
>
> Hi to everybody, this is the first time I ask for help here on the community. I have a big problem in Mobile VR. Hardware requirements for the project… GearVR (on Samsung S10e). Necessary software setup: Forward render MultiView Oculus for Quest/GearVR Target: I am trying to have back mirrors in a drivable car: when I activate Multiview (to reach needed performances), the “mirror” goes black. The mirror is created via a Scenecapture 2D + rendertexture + unlit material. Issue retreavi…

A chance that it was a Unlut scene.  
For material quality don t forget to use Full Precision inside Mobile option.

I learned a lot during this projet, but i’m not ready to do it again.  
I hope it helps a bit some of you.

---

<div class="post-metadata">

**Author:** ![anodin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anodin/32/778914_2.png) [@anodin](https://forums.unrealengine.com/u/anodin)\
**Post date:** [November 20, 2023, 2:31pm UTC](https://forums.unrealengine.com/t/vr-video-orchestra-apk-with-oculus-quest-2-tips-and-tricks-xp/1392704/2 "2023-11-20T14:31:33Z")

</div>

I see that i forgot to share the video of the final product ^^

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/c/4cc94756793a035db038751c4be7baf1e9035344.jpeg "PARTITURA - OSM VR application") ](https://www.youtube.com/watch?v=35L97Yl6Hdg)

or on my instagram page =  
[https://www.instagram.com/p/CzrnciigdTd/](https://www.instagram.com/p/CzrnciigdTd/)

> **[Fred Trétout :: Interactive Motion Designer - PARTITURA](https://fredtretout.com/partitura)**
>
> Work of a passionate Interactive Motion Designer, Discover large scale projection, VFX, generative design, dome projection, mapping, 3D print stop motion, vj, illustration and programming.

Thx
