Search Unity

VideoPlayer using URL on Oculus Quest - nothing but green

Discussion in 'Android' started by rlogan, Dec 20, 2019.

  1. rlogan

    rlogan

    Joined:
    Oct 2, 2013
    Posts:
    13
    I am creating an app for the Oculus Quest that will let a user navigate through a hierarchy of various 360 videos. I initially started by bundling the videos in the apk but that gets out of hand quickly and causes memory issues with the builds. I switched to the URL method and I am now loading videos off the local drive.

    Unfortunately, now the screen only renders green. It should not be a codec issue as the same video worked fine when set directly in Unity and bundled with the apk. I see the following error with logcat:

    AndroidVideoMedia::SetSecPosition could not complete seek to frame 63. Codec appears to be stalled at frame -1.

    The frame # continues to increment but error just repeats. I am not attempting any seek, this is a just a Prepare() followed by a Play();

    Permissions appear to be set properly because prior to that, I only saw a black screen and a had relevant permission errors in logcat.

    Anyone seen something similar?
     
  2. rlogan

    rlogan

    Joined:
    Oct 2, 2013
    Posts:
    13
    No one?
     
  3. Brad-Newman

    Brad-Newman

    Joined:
    Feb 7, 2013
    Posts:
    141
    Getting the same error and see the same green (on a Pico 4K VR headset). Perplexing, since the non-working video seems to have the same codec and format as working videos (H264 - MPEG-4 AVC (part 10) (avc 1).

    Unity
    - 2019.2.17f1
    - Minimum API Level: Android 7.0
    - Target API: Automatic (highest installed)
    - Asset Bundles are uncompressed.

    Android Device: Pico 4K VR Headset
    - Running Android 8.1.0
     
  4. Brad-Newman

    Brad-Newman

    Joined:
    Feb 7, 2013
    Posts:
    141
    Solved my problem by re-encoding the video as H.265. Don't think my device supports 4096 x 4096 H.264.
     
  5. rlogan

    rlogan

    Joined:
    Oct 2, 2013
    Posts:
    13
    We tried several codecs and ended up just going back to 360 mono (4096x2048) and it is working fine for now. I will likely revisit in the near future though.

    The initial video was (4096x4096 H.265) and it played fine on the Quest if it was loaded as part of the apk. However, if loaded via URL method, just green. It also played fine in the Quest video player so I don't think it's a codec issue but who knows. A lot of variables in play.

    I'm on Unity 2019.2.15f1
     
  6. paulksi

    paulksi

    Joined:
    Nov 9, 2015
    Posts:
    7
    Hello, i`m having the same issue on galaxy S5e trying to play 680mb file
     
unityunity