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

Video delay of 2 seconds #87

Open
No337 opened this issue Sep 28, 2020 · 4 comments
Open

Video delay of 2 seconds #87

No337 opened this issue Sep 28, 2020 · 4 comments

Comments

@No337
Copy link

No337 commented Sep 28, 2020

Hey, the WebEye paket works fine but I have a delay of the video signal of about 2 seconds. That means if e.g. I raise my hand I can see the raised hand in the live video 2 seconds after that. I have already found nearly the same post here two years ago but with no solution for me. Also in the vlc software I can setup a network-cache what brings me to near real time, what yould be fine. How can I setup something like this in the connection procedure?

var uri = new Uri(_urlTextBox.Text); Stream = Stream.FromUri(uri, TimeSpan.FromSeconds( 2), TimeSpan.FromMilliseconds( 100), RtspTransport.Undefined, RtspFlags.None); streamControl1.AttachStream(Stream); Stream.Start(); _statusTextBox.Text = "Connecting...";
`

Thanks Frank

@josnav
Copy link

josnav commented Nov 12, 2020

Hi to ALL!
I have the same delay 2-3 seconds.
Thanks in advanced!!!!

@jskeet
Copy link

jskeet commented Dec 4, 2020

I believe this is the RTSP buffer size. There's an option for that (buffer_size) in FFmpeg, but the code to pass those options to FFmpeg isn't exposed via the public API of WebEye. I suspect that a change here would be sufficient, but I don't have time to create a pull request for that...

@martingercke
Copy link

I have the same problem.
@jacobbo, could you expose the configuration or lower the RTSP buffer size?

@JPasterkampRotec
Copy link

Would it not be better to make a way to add any options you like for FFmpeg?
Something like passing in a string array:

Stream = Stream.FromUri(uri, TimeSpan.FromSeconds( 2), TimeSpan.FromMilliseconds( 100), RtspTransport.Undefined, RtspFlags.None, new string[] { "-fflags nobuffer", "-probesize 32", "-fflags fastseek", "-max_probe_packets 500"});

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

5 participants