Page 1 of 1

Unacceptable latency

Posted: Mon Jul 20, 2020 11:49 am
by jimhawkins2
After many tests I have reluctantly come to the conclusion that RVMedia is not adequate for a professional environment. We have found it impossible to get latency below about 4 seconds in LAN or WAN tests. IN my area - interpreting - latency must be as low as possible. Below one second would be acceptable provided it worked with a multiple-client server model.

Can we expect an update that will focus on streaming efficiency in a reasonable time-frame?

Re: Unacceptable latency

Posted: Mon Jul 20, 2020 8:17 pm
by Sergey Tkachenko
I recently investigated the reasons of this latency, and found that it is because of the sender's buffering (if it receives frames faster than it can send them, it accumulates frames to send).
I'll try to fix it in the next update (but no guaranties, sorry).

Re: Unacceptable latency

Posted: Tue Jul 21, 2020 9:55 am
by jimhawkins2
Thanks, Sergey. Really video should drop frames if overloaded. Audio should be a higher priority, surely?

Re: Unacceptable latency

Posted: Fri Jul 31, 2020 7:18 pm
by Sergey Tkachenko
Some intermediate results...

The sender buffering does not add too much time to the total latency, as well as the receiver buffering (except for a fixed delay added by TRVCamReceiver.VideoLatency).

The main delay is caused by TRVCamera.Latency.
This property has a different effect than other latency properties, so probably it will be renamed.
It allows accumulates frames if they are received faster than they can be processed. It can make sense if the source of video is a network, and frames may be received sometimes faster, sometimes slower. Only frames that are older than the specified Latency (default = 1 second) are discarded.
Assign Latency = 0 to disable this feature.
Also, TRVCamera draw accumulated frames using the same speed as they were received. I think a good idea to draw them faster.

Another good news, low-level sending and receiving procedure can be made faster by sending and receiving using larger chunks of data.

Re: Unacceptable latency

Posted: Wed Aug 12, 2020 12:14 pm
by Sergey Tkachenko
Please test RVMedia 7.5
And assign RVCamera.Latency = 0.

Re: Unacceptable latency

Posted: Fri Aug 14, 2020 10:07 pm
by jimhawkins2
I would love to test it, but I can't locate it anywhere!

Re: Unacceptable latency

Posted: Sat Aug 15, 2020 11:46 am
by Sergey Tkachenko
I restored access to protected RVMedia forums for your account. You can find the links in the protected "RVMedia" forum.
Also, you can always re-run the old Setup, it can check for updates and download them.

Re: Unacceptable latency

Posted: Sat Aug 15, 2020 12:01 pm
by jimhawkins2
Thank you - Got installers and will test!

Jim

Re: Unacceptable latency

Posted: Tue Aug 25, 2020 3:47 pm
by jimhawkins2
It's much improved. Client/Server is about 1.5 seconds latency, which is acceptable for chat.

Well done, Sergey!