- Home /
How to fix flicker with VideoPlayer/Skybox/XR setup
I'm trying to get video playing in VR following the instructions in the docs
https://docs.unity3d.com/Manual/VideoPanoramic.html
I've done nothing but follow the directions in the docs. I'm using an Oculus Rift. Both inside (in VR) and (on the desktop) it flickers.
https://www.youtube.com/watch?v=mJnM0Jr8PY0
The video I used is here (2gig) from this article. I ran it through handbrake on the Very Fast 1080p preset, the result is 271meg 1920x1080 video file.
My project is here including a 10s segment of the video the creator was nice enough to license CC-BY-NC.
You should be able to load it up, I'm using Unity 2019.3.5f1, and then open the samplescene. You might need to click on the main camera and in the Video Player component set the URL to the video
Answer by greggman · Mar 20, 2020 at 01:55 AM
Okay so first off this seems to be a timing/sync issue. A smaller video does not flicker. Of course a large video should not flicker either so somewhere in the uinty pipeline a sync or wait is missing
Otherwise digging through the settings I turned of HDR in Project Settings->Graphics under Tier Settings. I unchecked "Use Defaults" for each of the 3 tiers and then unchecked "Use HDR" in each of the 3 tiers (don't need HDR for this project)
The flicker seems to have gone away. I suspect I'm just getting lucky in that rendering non-HDR takes less time so the sync bug is not manifesting but I'll cross my fingers.
update
Maybe I'm doing something wrong but I found the VideoPlayer's performance to be too slow and it sitll flickered. I ended up using AVPro Video
Your answer
Follow this Question
Related Questions
Is there any way to receive RTSP/RTP video stream on Windows Store build? 0 Answers
MovieTexture.duration is giving me the wrong time. 1 Answer
Youtube Video Player Plugin Screen Freeze 0 Answers
Streaming Video In and Out of Unity 0 Answers
Switching Videoclips for VideoPlayer in Unity degrades FPS drastically 0 Answers