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

improve latency #2

Open
slugalisk opened this issue Mar 6, 2019 · 0 comments
Open

improve latency #2

slugalisk opened this issue Mar 6, 2019 · 0 comments

Comments

@slugalisk
Copy link
Owner

it's not clear what is contributing the most to this. latency varies from 10 to 20 seconds for peers connected directly to the stream source...

suspects...

  • ffmpeg/obs
    • probably negligible?
    • are there encoder settings to optimize for this?
  • nginx-rtmp module
    • this currently splits on keyframes... could we generate smaller chunks and flush more frequently if we ignore keyframes? the chunks are given as a continuous stream to mux.js anyway...
    • is mpeg ts the right format for this? does something like rtmp/rtsp make more sense?
  • chokadir
    • is a 1 second stabilityThreshold overly conservative?
  • chunked read/write stream
    • should we zero pad the input chunks to align with the injector chunk size?
    • does the spec provide an efficient way to encode empty space?
  • injector
    • there are several settings here that could be adjusted...
  • scheduler
    • the first available/needed chunk to pass a random roll with a 5% chance is currently picked... this strategy probably results in waiting too long to prioritize lagging chunks. the spec describes a priority and reputation based system for assigning requests for urgently needed chunks. this should be implemented.
  • player
    • could we be flushing the transmuxer more frequently?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant