UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

[Android][Oculus] OES shaders do not work in Release builds with "Low Overhead Mode (GLES)" enabled

Open Anton111111 opened this issue 1 year ago • 15 comments

Describe the issue When I enable Low Overhead Mode (GLES) OES shader (AVProVideo\Runtime\Shaders\AVProVideo-VR-InsideSphere-Transparent-AndroidOES.shader) stop working. I don't see video (black screen). Only audio works.

Your Setup (please complete the following information): Unity version: 2023.1.20f1 AVPro Video version (number and edition (trial/core/ultra/enterprise)): 3.0.6-ultra build 2407050949

Operating system version: Android Device model: Quest2

Logs odh_logs_2024-07-08 13.21.53.309.txt

I've alreade emailed invite to the project to [email protected] . I've you need invite again ley me know.

Anton111111 avatar Jul 08 '24 13:07 Anton111111

Are you sending a new one, or is this the same link as 26th June?

Chris-RH avatar Jul 08 '24 14:07 Chris-RH

Are you sending a new one, or is this the same link as 26th June?

The same link as 26th June.

Anton111111 avatar Jul 08 '24 14:07 Anton111111

@Chris-RH , Do you see my invite ? How i see invite still pending.

Anton111111 avatar Jul 10 '24 06:07 Anton111111

From the log you provided I can see your video exceeds the reported capabilities of the codec:

Format exceeds selected codec's capabilities [id=1, mimeType=video/hevc, codecs=hvc1.1.6.H183.90, res=8192x4096, color=BT709/Limited range/SDR SMPTE 170M, fps=59.93932, OMX.qcom.video.decoder.hevc]

Closing this as this is the same issue as #1935, please follow there for updates.

MorrisRH avatar Jul 10 '24 16:07 MorrisRH

@MorrisRH , In project that i provided you (i don't know why you team ignore it) for showing issue you can change video to Cones-360Stereo-2K30-H264.mp4. Result the same. OES Shader doesn't work with enable Low Overhead Mode (GLES). Resolution of Cones-360Stereo-2K30-H264.mp4 is 2880x2880.

Here is logs with Cones-360Stereo-2K30-H264.mp4 odh_logs_2024-07-10 16.27.29.964.txt

Anton111111 avatar Jul 10 '24 16:07 Anton111111

@MorrisRH , But why this video works in AVPro v2 in all conditions? And why this video works in AVPro v3 if i disable Low Overhead Mode (GLES) ? I see problem with this video only if i use OES shader.

We had to rewrite substantial parts of the plugin in order to support both OpenGLES3 and Vulkan. As part of this we introduced extra safety checking to make sure the underlying codecs can handle decoding the video in order to prevent crashing. Unfortunately on the Quest2&3 the codec reports a maximum of 8K@60 even though it is able to handle 8192x4096. We're currently looking at how we can handle this and hope to have a fix in the next release.

MorrisRH avatar Jul 10 '24 16:07 MorrisRH

@MorrisRH , please look on my last comment (looks like you wrote answer for me when i'm was writing it ;). Video 2880x2880 also doesn't works. I'm sure if i start video with very low resolution result will be the same.

Anton111111 avatar Jul 10 '24 16:07 Anton111111

@MorrisRH , @Chris-RH , @RichRH , Can you say anything about it? Please, look on my a new log with low resolution video from comment https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1934#issuecomment-2220978108 ?

I don't think this problem is related to "Format exceeds selected codec's capabilities". Because the video is not displayed regardless of resolution if Low Overhead Mode is enabled.

Anton111111 avatar Jul 11 '24 14:07 Anton111111

Hey @Anton111111 Low Overhead Mode is the proverbial gift that keeps on giving. I've reproduced this issue (and it is separate to #1935 so reopening this). Unfortunately the issue seems to be with Unity. I'm going to investigate further but for now it looks like we cannot support Low Overhead Mode.

MorrisRH avatar Jul 11 '24 15:07 MorrisRH

I've submitted a bug report to Unity... will wait to see what they say.

MorrisRH avatar Jul 12 '24 09:07 MorrisRH

@MorrisRH , Any news?

Anton111111 avatar Aug 27 '24 10:08 Anton111111

@MorrisRH , Any news?

Nothing back from Unity yet

MorrisRH avatar Aug 27 '24 11:08 MorrisRH

@MorrisRH , can you share link to bug report in Unity? I want to add it to watchlist.

Anton111111 avatar Sep 09 '24 14:09 Anton111111

@Anton111111 Unfortunately there is no public facing link to the issue (at this time).

We reported it on 12th July 2024, Unity changed the status to 'In Review' on 22nd August 2024. There are no other details.

Given the slow pace of change, we suspect this is an issue they do not view as important and so may never be addressed. Should there be any change, we will report it here as soon as we are notified.

Ste-RH avatar Oct 03 '24 09:10 Ste-RH

And it is now confirmed. Issue tracker link is here

MorrisRH avatar Oct 03 '24 16:10 MorrisRH

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 01:04 stale[bot]

you can fell free to close it. I've moved to openxr and don't use low overhead mode at all.

Anton111111 avatar Apr 28 '25 08:04 Anton111111

Yeah, it looks like Unity are still "considering" it. Thanks for letting us know :)

Chris-RH avatar Apr 28 '25 09:04 Chris-RH

Unity have marked the issue as "won't fix" but as OculusXR has now been deprecated this won't surprise anyone.

MorrisRH avatar Oct 22 '25 08:10 MorrisRH