-
-
Notifications
You must be signed in to change notification settings - Fork 781
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
[Question] Is there a way of setting a latency parameter for SRT? #1673
Comments
Hello, I don't set a latency value in the stream, the latency is the minimal necessary to produce and send frames. |
ok thanks. So any setting regarding latency might be set just as a parameter for example that we can attach to the srt:// . Would it even make sense to add a variable latency in the stream for the library as an improvement ? |
Hello, Can you explain the idea? |
Hi, I'm still trying to figure it out. So just food for thought for now.
Rtmp uses TCP , again, from what I currently understand that means that it would benefit more from a buffer. |
Hello, Let me try understand your request. Do you want drop packets of that feature if the buffering is higher than a custom value set to the library? About the RTT using latency parameter in the url. I can check it, but I'm not sure what should I do with that value. Maybe change the TSBPD? Currently it is hardcoded to 120ms because ffmpeg is using that value by default: |
Hi Pedro, Yes I think you are right, the only way to it is to set is as parameter for the URL. I've done a few tests (maybe way more than I should have) and I think the conclusions converge to what you said about the hardcoded value. |
Hello, Try to compile this branch to test it: |
Hi Pedro, Edit: I used my own version of SrtClient and your solution seems to work perfectly :D. Thanks. I'm having some trouble manually adding the dependency. I followed the guide, upgraded my grade to 8.71but I got caught in a dependency error loop. This would be the latest:
Any quick ideas on how to exit this or another way to test? |
Hello, I compiled the commit to test it: implementation 'com.github.pedroSG94.RootEncoder:library:3e5460166c' |
I saw another issue about this and I think you were saying it needs to be set on the server/streaming cloud, but I was wondering if there is a way (in the works or doable) that you know of where I can set something up app-side.
Thanks!
The text was updated successfully, but these errors were encountered: