exelix11 / SysDVR

Stream switch games to your PC via USB or network
GNU General Public License v2.0
1.5k stars 90 forks source link

[Bug] Documentation says that there's ~1s of latency, when that's not true. #240

Closed techflashYT closed 1 year ago

techflashYT commented 1 year ago

Describe the bug The documentation states that there is about 1 second of latency at all times. It appears that this is an issue with mpv, not SysDVR. I was able to get it to near realtime, within maybe 200ms or so due to Wi-Fi.

To Reproduce

  1. Install and set up SysDVR in "Simple network mode"
  2. Some of this may not be necessary, but specifically the final option, makes the video stream near real time. I can provide evidence of this if necessary. But this is the mpv command line I used. mpv rtsp://192.168.0.29:6666 --no-correct-pts --fps=30 --rtsp-transport=udp --no-cache --keep-open --hwdec=vdpau --hwdec-codecs=all --vo=gpu --video-sync=audio --profile=low-latency

Expected behavior As per the guide, I expected there to be about a 1-2 second delay, which there is, ONLY when I do not use the low-latency profile in mpv.

Setup information

Additional context Perhaps update to documentation to list this option to decrease latency by a lot? If it can get to ~200ms with my crappy WiFi router, I'm sure that under better condtitions, like Ethernet, or USB, it could be even better. Compression is probably going to brutally murder this demonstration video (that was already shot with a crappy camera), but it should still be visible. As you can see from this demo video of the Sonic Origins intro, there is obviously still latency (particularly noticeable when it fades to white at the end), it isn't perfect, but it's MUCH less than 1 second. I would say it's about 200-300ms. This isn't actually verified, that's just a guess, but under ideal conditions I imagine it could be even faster.

https://github.com/exelix11/SysDVR/assets/72118300/481fec59-2014-4ca2-9cf9-2f5c096cc640

exelix11 commented 1 year ago

Thanks for letting me know, will update the wiki later

exelix11 commented 1 year ago

I can't find the part where it says 1 second, however i added a note about the low latency option in the simple network mode page