natekspencer / hacs-vivint

Home Assistant integration for a Vivint home security system.
MIT License
66 stars 4 forks source link

Video Stream Errors #58

Closed kksligh closed 1 year ago

kksligh commented 2 years ago

I have been getting hundreds of errors from the video streams - it happens every time I use a camera feed of any kind. I was using the rtsp with Web RTC for some time, but that broke. I kept seeing streaming errors with the RTSP feeds into Generic Cameras, so I switch back to using the video straight from the Vivint integration. That said, all options are throwing errors constantly. See the error log and screen shot attached for reference.

Is there anything that can be done? I dont recall this happening in the past. Seems like something is wrong.

Logger: homeassistant.components.stream.stream.camera.garage_water_camera_vivint Source: components/stream/init.py:416 Integration: Stream (documentation, issues) First occurred: 9:07:42 AM (2 occurrences) Last logged: 9:33:52 AM

Error from stream worker: Error demuxing stream: [Errno 110] Operation timed out: 'rtsp://user:XXXXXXXXXXXXX/Video-28'; last error log: [NULL] missing picture in access unit with size 49 Error from stream worker: Error demuxing stream: [Errno 110] Operation timed out: 'rtsp://user:XXXXXXXXXXXXX/Video-28'

Logger: homeassistant.components.stream.stream.camera.entryway_camera_vivint Source: components/stream/init.py:416 Integration: Stream (documentation, issues) First occurred: 9:07:43 AM (3 occurrences) Last logged: 9:33:49 AM

Error from stream worker: Error demuxing stream: [Errno 110] Operation timed out: 'rtsp://user:XXXXXXXXXXXXX/Video-548' Error from stream worker: Error demuxing stream: [Errno 110] Operation timed out: 'rtsp://user:XXXXXXXXXXXXX/Video-548'; last error log: [NULL] missing picture in access unit with size 50

Logger: homeassistant.components.stream.stream.camera.outdoors_doorbell_camera_vivint Source: components/stream/init.py:416 Integration: Stream (documentation, issues) First occurred: 11:29:21 AM (2 occurrences) Last logged: 11:29:36 AM

Error from stream worker: Timestamp overflow detected: last dts = 4288184265, dts = 470789 Error from stream worker: Timestamp overflow detected: last dts = 4294472563, dts = -476733

image

natekspencer commented 2 years ago

It looks like you are receiving timeouts on the rtsp stream, which seems to indicate network issues. It also looks like your cameras are connected to your panel rather than directly to your network. That means that you have to access them via the panel instead of directly. Is your panel connected via ethernet or wifi to your network? In my experience, the panel's wifi sucks (it has two, one for devices, namely cameras, to connect directly to the panel and another to connect to your home network). If everything is connected via wifi and through the panel, you realistically can probably only view one camera at a time without issues.

kksligh commented 2 years ago

Panel is connected via WiFi.

Is it possible to connect the cameras directly to the network?

On Tue, Jul 26, 2022 at 4:28 PM Nathan Spencer @.***> wrote:

It looks like you are receiving timeouts on the rtsp stream, which seems to indicate network issues. It also looks like your cameras are connected to your panel rather than directly to your network. That means that you have to access them via the panel instead of directly. Is your panel connected via ethernet or wifi to your network? In my experience, the panel's wifi sucks (it has two, one for devices, namely cameras, to connect directly to the panel and another to connect to your home network). If everything is connected via wifi and through the panel, you realistically can probably only view one camera at a time without issues.

— Reply to this email directly, view it on GitHub https://github.com/natekspencer/hacs-vivint/issues/58#issuecomment-1196000585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT3AQU7DDE33VGDGBYTLJ2LVWBJ6FANCNFSM54S3YWTA . You are receiving this because you authored the thread.Message ID: @.***>

--

Thanks,

Kale Sligh

natekspencer commented 2 years ago

Is it possible to connect the cameras directly to the network?

Yes, they all support WPS so you should be able to add them to your own network that way. You likely have to remove them from your panel first, then add to your network, then add back to the panel

kksligh commented 2 years ago

Man, game changer! Thanks a ton! I will give it a try.

On Tue, Jul 26, 2022 at 5:02 PM Nathan Spencer @.***> wrote:

Is it possible to connect the cameras directly to the network?

Yes, they all support WPS so you should be able to add them to your own network that way. You likely have to remove them from your panel first, then add to your network, then add back to the panel

— Reply to this email directly, view it on GitHub https://github.com/natekspencer/hacs-vivint/issues/58#issuecomment-1196025377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT3AQUZF7IHI45ZLTTOX4JDVWBN5RANCNFSM54S3YWTA . You are receiving this because you authored the thread.Message ID: @.***>

--

Thanks,

Kale Sligh

kksligh commented 1 year ago

I switched all the devices to wifi directly and it caused my wifi to really bog down and caused issues. So I switched back to going through the panel. Unfortunately the errors are steadily popping now. I'm hopeful that the WebRTC gets fixed bc that allowed sound and seemed to work better. At this point though, I think I'm stuck with the errors until then.

natekspencer commented 1 year ago

That's a bummer. I think the webrtc plugin has been fixed now though. Or at least it is working for me.

kksligh commented 1 year ago

Alright - I finally figured it out and wanted to share this info for others.

So, there's a ton of confusion online with Web RTC. The reason is there's 3 pretty well used options. (1) HACS solution and (2) separate Add Ons.

I was using the HACS solution that for whatever reason started to error out all the time. It got unusable. If you look at the issues log for that project, there's a ton of similar issues happening.

What everyone needs to use its the Add Ons - these do NOT show up in the current Add On store, you have to download the repository first. Once you do, there's 2 options - "RTSPtoWeb - WEBRTC" Or "RTSPtoWebRTC"

The naming of all of this is very confusing.

You can use either add on and they work well. The developers recommend using "RTSPtoWeb - WEBRTC" bc its a newer, better api...BUT, if you use "RTSPtoWebRTC" it has audio with the video feeds. The other does not - at least it doesn't YET.

Hopefully that helps someone because I went down a deep hole last night trying to figure this out and tested all 3 solutions.