Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to deploy Gstreamer Unity to Oculus Quest2

Discussion in 'VR' started by keli95566, Jan 6, 2022.

  1. keli95566

    keli95566

    Joined:
    Jul 23, 2021
    Posts:
    3
    Hi there! Anyone has any success getting the Gstreamer Unity Plugin (https://github.com/mrayy/mrayGStreamerUnity) to work on Quest2? I want to connect a UDP stream over the network to Quest2, but it seems that the repository only supports armv7 architecture, and even the armv7 architecture doesn't work on Quest2, as I assume that the repo doesn't work with the OpenGLES3 graphics library. The Gstreamer Unity plugin still works for Unity 2020.3 LST and Windows, but not on Quest2 :/

    It would be really great if anyone found a solution to connecting Gstreamer to Android arm64 Quest2 already. Thank you so much!!
     
  2. cemkilinc

    cemkilinc

    Joined:
    Jan 10, 2022
    Posts:
    1
    Hello! I'm having the exact same problem. Did you find any solution for this?
     
  3. keli95566

    keli95566

    Joined:
    Jul 23, 2021
    Posts:
    3
  4. James-DeCarlo

    James-DeCarlo

    Joined:
    Dec 6, 2015
    Posts:
    6
    I have used Mray library for a couple of projects now and for quick and down and dirty gets you working.

    i would recommend you look into GstSharp. They have on Nugget. Implement in C#. I would recommend using mrays example of the pipeline and use the 420 shader he has in his examples.
     
  5. palwanishan

    palwanishan

    Joined:
    Dec 3, 2021
    Posts:
    2
    Greetings,
    James-DeCarlo can you provide us more details or maybe some example project, please.
    Thank you!
     
  6. palwanishan

    palwanishan

    Joined:
    Dec 3, 2021
    Posts:
    2
    Did anyone find any solution for this?
     
  7. thelghome

    thelghome

    Joined:
    Jul 23, 2016
    Posts:
    737
    You may give it a try with below settings via FMETP STREAM.
    https://frozenmist.com/docs/apis/fmetp-stream/gstreamer-example/
    Screenshot 2022-08-08 at 7.14.41 AM.png
    Code (CSharp):
    1. // + GStreamer Commands(Example):
    2. // + Desktop Capture to Unity
    3. gst-launch-1.0 gdiscreencapsrc ! queue ! video/x-raw,framerate=60/1,width=1920, height=1080 ! jpegenc ! rndbuffersize max=65000 ! udpsink host=192.168.1.10 port=3001
    4. // + Video Stream to Unity
    5. gst-launch-1.0 filesrc location="videopath.mp4" ! queue ! decodebin ! videoconvert ! jpegenc ! rndbuffersize max=65000 ! udpsink host=192.168.1.10 port=3001
    IMG_2328.jpg
     
    Last edited: Aug 8, 2022
    steril likes this.