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

Huge latency - around 15 seconds #390

Open
kalwinskidawid opened this issue Feb 21, 2022 · 0 comments
Open

Huge latency - around 15 seconds #390

kalwinskidawid opened this issue Feb 21, 2022 · 0 comments

Comments

@kalwinskidawid
Copy link

kalwinskidawid commented Feb 21, 2022

Hey,
At the outset, I will say that I am trying to establish a connection via websocket and rtsp. I use forked node-rtsp-stream.
I have problem with huge latency about 10-15 seconds. I came to the conclusion that ffmpeg is to blame.
My observations:
When I use ffmpeg -rtsp_transport tcp -fflags discardcorrupt -f mpeg1video -i rtsp://{id-address} - at the start there is a delay of about 8-6 seconds after which the stream gently accelerates and finally the delay is on the level of 1-2sec. However with the newest version of jsmpeg I get on frontend only jsmpeg possible garbage data. skipping

When I use ffmpeg -rtsp_transport tcp -fflags discardcorrupt -i rtsp://{id-address} -f mpegts -codec:v mpeg1video -b:v 1000k -bf 0 - I have a latency of about 18-10 seconds at startup and I can't go below that even if I try to speed up the whole stream with startup arguments

What's wrong?

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