polygraphene / ALVR

ALVR is an open source remote VR display for Gear VR and Oculus Go. With it, you can play SteamVR games in your standalone headset.
MIT License
1.82k stars 248 forks source link

Server connected, SteamVR Ready, Head tracking working, but GearVR stuck waiting for stream #241

Closed Interpause closed 2 years ago

Interpause commented 5 years ago

helpmebug1 bughelpme2 As 2nd picture implies, my gearVR headset is indeed upside down, showing that head-tracking is working. However, client app on the gear VR is stuck at "Connected! Streaming will begin soon!". Client app is responsive and does not show any signs of having crashed. I am using an AMD R9 285X, using the H.264 experimental codec at 30MBps. My intuition as a programmer myself thinks it might be related to video decoding on the client app. I have already tried the solution specified at #20 , but am unable to get a ping from my device. Please help. Thanks!

Interpause commented 5 years ago

Tried lowering bitrate and resolution. It worked. I bet it was taking too long to send a single frame? But still it should have showed it frame by frame. I blame my wifi. Trying to enable USB tethering... but sadly that isnt something i can do while in gear VR.

Interpause commented 5 years ago

Found that bitrate has no effect on whether gearVR gets stuck at "Connected!" page, rather, that at the recommended resolution, it gets stuck. Works smoothly at the lower resolution however.

pupphelper commented 5 years ago

I found that the GearVR will almost always get stuck if I remove the headset and let the screen time-out. sometimes its stuck so badly that holding the backbutton won't let me exit the app. When i put it back on the screen is stuck but the headtracking works if you watch the steamvr mirror. The way I've worked around it is, before i remove the headset, i press and hold the back button back to gearvr home, and then either resume or re-launch when i put the headset back on. This way its never timing out from not seeing a face in the visor.

TrumX commented 5 years ago

Hi!

So today I set up my oculus go with ALVR. after some work on ports etc it worked after changing codec to 264 since Im using an AMD R290oc.

Im doing it via 5ghz wlan, ethernet to box etc.

I am stuck in that screen too... Interestingly, it also works with lowering the resolution to 1024x512 and 1536x768, but to be honest, the quality is underwhelming then.

even on 2880x1440 i have no packet loss, sound gets delivered to my headset and tracking works etc since if I mirror my screen to desktop i can browse through the steam store. headtracking included working. Can confirm OPs testing that bitrate doesnt change a thing, only resolution does.

but still in that fricking "streaming will begin soon" stream.

any ideas?

the thing is I can download/upload via wifi with about 70mbit, so I highly question this is a pure "frame size" problem due to resolution. At least I cant imagine that

Edit: yah I can play 1536x768 instantly. Like it's not even attempting to load 2048x1024. I doubt this is a connection speed issue.

its there a way to force ALVR to try to send/get higher resolution images?

soul666reaver commented 5 years ago

Is it possible its related to the max resolution your monitor can handle? I'm having the same issue. I know the phone can handle that resolution. For example my phone can handle it but my tv (monitor) only has max res of 1080p. This weekend I'll try on the 4k tv in the house. Or super sampling higher res to my 1080p monitor and post results.

soul666reaver commented 5 years ago

Ok confirmed it is not related to native resolution of monitor. Tried on a newer pc at the house with a 1080p monitor and it works perfectly at any resolution. The card in that computer is a amd rx560 which supports h265 encoding which works as well with ALVR. The PC I'm having issues with does not support h265 encoding. I tried super sampling as the PC with the rx560 had that enabled already. On my PC it was not enabled but it made no difference. I think it just might be a graphics card related issue. Going to upgrade mine in the coming days to test.