Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to get/calculate/implement latency metric #447

Open
VasylKhmil opened this issue Apr 17, 2022 · 5 comments
Open

No way to get/calculate/implement latency metric #447

VasylKhmil opened this issue Apr 17, 2022 · 5 comments
Labels
feature-request New feature or request

Comments

@VasylKhmil
Copy link

Unfortunately there are no ways to get latency metrics for chime session.

In our application we are trying to build a low latency synchronised process that require to know latency parameter.

Unfortunately Chime SDK do not provide such parameter in metrics our of the box.

Every VideoFrame have property timestampNs, but this property differs per device and do not allow to calculate latency at any scenario.

Also I were trying to implement it myself by applying metadata into CVPixelBuffer. But AWS Chime is overriding this params and receiver do not get it.

So there are no ways to implement latency calculation. Maybe somebody know some scenarios how to achieve that?

@VasylKhmil VasylKhmil added the feature-request New feature or request label Apr 17, 2022
@hokyungh
Copy link
Contributor

We currently expose videoSendRttMs, would that be enough for your use case or is there specific thing you are expecting?

@VasylKhmil
Copy link
Author

Hey. Unfortunately RTT is near 120-150 ms, while real latency is 400-600 ms. So I assume RTT is a value that tell how long will take to send data message, but not video frame latency. So unfortunately this is not helping.

@VasylKhmil
Copy link
Author

I have counted real latency by putting two devices in front of third one with timer and making the screenshot on one of them. The difference on pictures is the exact latency, as one tile is local one directly from camera, and another - remote from another device.

@VasylKhmil
Copy link
Author

I would love to help, for example to persist frame metadata, or implement latency calculation, or to implement audio filters. But all this is under Media SDK that's closed.

@dylonChime
Copy link
Contributor

Thanks for your interest @VasylKhmil. I'll leave this as a feature request for 2 things.

  1. Real Video Frame Latency Metrics.
  2. An open source media layer so developers like yourself can contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants