cancel
Showing results for 
Search instead for 
Did you mean: 

Wireless screen casting from an Oculus Go using a batch file

declantm
Protege
Hi, I'm trying to cast a copy of the Oculus Go screen to my PC using Scrcpy (https://github.com/Genymobile/scrcpy#windows)

I created the following batch file but it doesn't work. Does anyone have any ideas why it doesn't work? When it gets to the line with "adb devices" it doesn't show any devices are connected. It works fine if you enter the code manually into the command prompt but I'd prefer to do it using a batch file. Thanks for any replies.

rem @echo off

echo Please connect the Oculus go via the usb cable and make sure it's switched on.
pause
for /f "tokens=9" %%a in ('adb shell ip route') do (echo IP of Oculus GO: %%a&set ipaddr=%%a)

echo.
echo Changing to TCPIP port 5555
adb tcpip 5555
echo.

echo Please disconnect the usb cable and make sure the Oculus Go is switched on.
pause
adb connect %ipaddr%

echo.
adb devices
pause.
echo.

echo Starting Scrcpy
scrcpy -b 25M -c 1000:1000:110:220
pause



3 REPLIES 3

Anonymous
Not applicable
I use the following batch file to stream to VLC via wired USB connection:

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

declantm
Protege


I use the following batch file to stream to VLC via wired USB connection:

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



I tried using vlc but there is a significant amount of lag, Scrcpy has much less latency.

MesserschmidtSt
Honored Guest
@declantm do you already have any solutions for you problem.
right now i am trying to solve the same issue
maybe we can help us out?