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 lag in ProtectLivesteam #28

Closed
j4zzcat opened this issue Jul 6, 2024 · 4 comments
Closed

Video lag in ProtectLivesteam #28

j4zzcat opened this issue Jul 6, 2024 · 4 comments

Comments

@j4zzcat
Copy link

j4zzcat commented Jul 6, 2024

Describe The Problem:
I'm using the unifi-protect package to stream the video of a single camera to ffmpeg and product HLS video (this format is suitable for consuming via a web page). There's a lag of about 15 seconds in the video - is this normal?

To Reproduce:
Followed the docs for listening to the message events of ProtectLivestream. I'm feeding these directly into ffmpeg stdin (i.e., -i pipe:0) for transcoding into HLS. I'm watching the transcoded stream with VLC.

@j4zzcat
Copy link
Author

j4zzcat commented Jul 6, 2024

Mea culpa. The lag is introduced by HLS.

@j4zzcat j4zzcat closed this as completed Jul 6, 2024
@hjdhjd
Copy link
Owner

hjdhjd commented Jul 7, 2024

There is no lag. It’s used in my homebridge-unifi-protect plugin and it livestreams video with sub-second latency just fine. It’s also used by the native UniFi Protect webUI to show livestreams.

I won’t troubleshoot your FFmpeg challenges (well beyond the scope of support I provide), but your issue is there, not with the API or this library.

@hjdhjd
Copy link
Owner

hjdhjd commented Jul 7, 2024

Mea culpa. The lag is introduced by HLS.

Enjoy! Glad you tracked it down.

Copy link

github-actions bot commented Jul 9, 2024

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants