Wouldn’t it be great if you could show someone on a computer screen what you are seeing inside of a Oculus Go VR headset?  YOU CAN.

screensharing oculus go zoomed out

In this post, we’ll show you step by step how to mirror the display of an Oculus Go, complete with UI and interactions, on a Mac or Windows laptop/desktop screen.  This workflow is incredibly useful for demonstrating VR to others, and can be recorded as videos that you can post/share.

Software You’ll Need

Install Android Debug Bridge (adb) to your Computer

This can be installed with Android SDK Platform tools, which you’ll find here.

Download and Install VLC Media Player

Click here for the VLC download page.

Put your Oculus Go in Developer Mode

Your Oculus Go will need to be in Developer Mode, to do this:

  1. Enable Developer Mode in your Oculus account. Click here for instructions on how to do this.
  2. Open the Oculus app on your mobile device (that’s the helper app that you installed on iOS or Android when you set up your Oculus Go).
  3. In the Settings menu, select the Oculus Go headset you will be using (if you have multiple Go headsets associated with your phone).
  4. Select “More Settings”, and toggle Developer Mode ON (pictured below).
  5. Connect your Oculus Go to your mac/pc using the USB-to-OculusGo cable provided with the Go.  Any USB port on your computer will work.  This fixed connection will be the path from the Go to the PC to get the video signal of what the Go is displaying/doing.

developer mode oculus go instructions

Mirror your Oculus Go Screen to your Mac/Windows Machine

The technique we’ll use to get the Oculus Go screen over to the PC is setting up a ADB command that sends the output stream to the VLC media player. The screen record feature has a time limit of 3 minutes, but this command runs it in a loop so it wont stop.  The ADB command will need to know the location of VLC on your computer, which is noted in RED below.

The important parameters are:

  • ––bit-rate: The value is in Mbps, where higher values result in better quality video. However, if you experience high delay, choose lower values which align with what your particular computer can keep up with.
  • path-to-VLC: this is the path to where VLC is installed on your computer. The commands below have default locations in place, however if VLC is saved somewhere different on your computer, you will have to replace the default with the path to VLC on your computer in command prompt/terminal.
    • The default location we’ve entered for Windows is: “C:\Program Files(x86)\VideoLAN\VLC\vlc.exe“, and for Mac, the default location is: “/Applications/VLC.app/Contents/MacOS/VLC

To screen-mirror your Oculus GO, you will need to be inside of the ADB working directory in either command prompt or terminal.

On Windows

Open command prompt in Admin Mode (right-click on the desktop icon and  select “Run as Administrator”)  and enter the following command:

adb exec-out "while true; do screenrecord --bit-rate=8m --output-format=h264 --time-limit 180 -; done" | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --demux h264 --h264-fps=60 --clock-jitter=0 --network-caching=100 --sout-mux-caching=100 -

On a Mac

Enter the following command into Terminal:

./adb exec-out "while true; do screenrecord --bit-rate=8m --output-format=h264 --time-limit 180 -; done" | "/Applications/VLC.app/Contents/MacOS/VLC" --demux h264 --h264-fps=60 --clock-jitter=0 --network-caching=100 --sout-mux-caching=100 -

Screen-Mirror on a Wireless Connection

For the above instructions, your Oculus Go must be connected to your computer using your USB-to-OculusGo cable. If you want to screen-mirror your Go without using this cable, you need to follow a few extra steps.

First, you’ll need to connect your headset to your computer over WiFi. To do this, first make sure that your headset and your computer are on the same WiFi network. You’ll also need to start out with your Go connected to your PC/mac with the USB cable. Finally, before running these commands, make sure you are in the ADB working directory

Note: If you are on a Mac, you will need to add ./ before all of these commands when entering them into terminal.

  1. Find the WiFi IP Address of your Oculus GO. In Command Prompt/Terminal, run the following command (adb shell ip route). In the resulting code, tagged with src, is the wireless IP address for your Go.
  2. Enter this command (adb tcpip 5555)
  3. Disconnect your Oculus Go from the USB cable
  4. Run this command, substituting in the IP address you received from step 1 (adb connect "the ip address from step 1")

Now you’ll need to enter the following command for screen-mirroring. Again, if VLC is saved in a different location on your computer, you will need to enter the path to that location in place of the default in terminal/command prompt.

On Windows

Open command prompt in Admin Mode (right-click on the desktop icon and  select “Run as Administrator”)  and enter the following command:

adb exec-out "while true; do screenrecord --bit-rate=2m --output-format=h264 --time-limit 180 -; done" | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --demux h264 --h264-fps=60 --clock-jitter=0 -

On a Mac

Enter the following command into Terminal:

./adb exec-out "while true; do screenrecord --bit-rate=2m --output-format=h264 --time-limit 180 -; done" | "/Applications/VLC.app/Contents/MacOS/VLC" --demux h264 --h264-fps=60 --clock-jitter=0 -

These commands are slightly different than the one’s for screen-mirroring over a cabled connection. The most important difference here is the bit-rate parameter, which needs to be adjusted for your WiFi speed. The above commands have the bit-rate set to 2 mbps, but you can try different values and see what works best on your network. (the lower the bit-rate, the lower the quality of the video)

Zooming for a Closer View

You’ll start off seeing something like this in VLC:

screensharing oculus go zoomed out

If you want to “zoom in” to get a closer view, follow these steps to enable VLC’s Interactive Zoom:

Windows Users — go to Tools > Adjustments and Effects > Video effects, and click Interactive Zoom

Mac Users — go to Windows > Video Effects > Geometry, and click Magnification / Zoom

By using the control window at the top-left corner of the screen you should now be able to adjust your viewing window and change your view look something like this:

screensharing oculus go zoomed in

To exit the streaming session, press Ctrl + C.

Throw it up on a large monitor, or record to disk!

Now that you have a VLC video coming into your PC you can use other PC capabilities (such as connecting the window to a large monitor or presentation monitor in a conference room) or recording the stream to disk as a video file that you can later edit or post to social media.

women screen-mirroring oculus go onto television

screensharing oculus go screen manolin

 

Filed Under: