home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.72k stars 30.45k forks source link

Stream ONVIF Camera out of range for mov/mp4 format #55737

Closed kimmilde closed 2 years ago

kimmilde commented 3 years ago

The problem

After upgrading to 2021.9 my tado camera keeps dropping out and logs are saying that its out of range for mov/mp4 format + overflow detected.

What is version of Home Assistant Core has the issue?

core-2021.9.2

What was the last working version of Home Assistant Core?

2021.8.8

What type of installation are you running?

Home Assistant Container

Integration causing the issue

onvif

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294183379 / timestamp: 4294431429 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294189428 / timestamp: 4294437479 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294195477 / timestamp: 4294443529 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294201527 / timestamp: 4294449580 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294207575 / timestamp: 4294455629 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294213624 / timestamp: 4294461679 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294219673 / timestamp: 4294467729 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294225723 / timestamp: 4294473780 is out of range for mov/mp4 format
2021-09-04 20:26:01 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294231771 / timestamp: 4294479829 is out of range for mov/mp4 format
2021-09-04 20:26:02 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294237820 / timestamp: 4294485879 is out of range for mov/mp4 format
2021-09-04 20:26:02 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream: Timestamp overflow detected: last dts = 4294485879, dts = -475367
2021-09-04 20:26:14 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294185493 / timestamp: 4294354893 is out of range for mov/mp4 format
2021-09-04 20:26:15 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream: Timestamp overflow detected: last dts = 4294481946, dts = -479302
2021-09-04 20:26:38 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294187720 / timestamp: 4294393419 is out of range for mov/mp4 format
2021-09-04 20:26:38 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294193770 / timestamp: 4294399470 is out of range for mov/mp4 format
2021-09-04 20:26:38 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294199818 / timestamp: 4294405519 is out of range for mov/mp4 format
2021-09-04 20:26:38 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294205867 / timestamp: 4294411569 is out of range for mov/mp4 format
2021-09-04 20:26:38 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294211916 / timestamp: 4294417619 is out of range for mov/mp4 format
2021-09-04 20:26:38 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294217965 / timestamp: 4294423669 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294224015 / timestamp: 4294429720 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294230063 / timestamp: 4294435769 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294236112 / timestamp: 4294441819 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294242161 / timestamp: 4294447869 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294248210 / timestamp: 4294453919 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294254259 / timestamp: 4294459969 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294260308 / timestamp: 4294466019 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294266358 / timestamp: 4294472070 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294272406 / timestamp: 4294478119 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [libav.mp4] Application provided duration: 4294278455 / timestamp: 4294484169 is out of range for mov/mp4 format
2021-09-04 20:26:39 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream: Timestamp overflow detected: last dts = 4294484169, dts = -477073

Additional information

No response

probot-home-assistant[bot] commented 3 years ago

Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration (onvif) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


onvif documentation onvif source (message by IssueLinks)

bandric1 commented 3 years ago

Hi if may borrow this issue, please. Have same or similar issue both cameras are connected with onvif intergration but only one gives stream other one fails i can connect with any other program with no issues only homeassistant cant fire them both. They are the same ptz chinese cams they connect with onvif i see entities only stream doea not work for both.

Logger: homeassistant.components.onvif Source: components/onvif/camera.py:135 Integration: ONVIF (documentation, issues) First occurred: 22. september 2021 23:21:30 (86 occurrences) Last logged: 10:08:39

Fetch snapshot image failed from cam1, falling back to FFmpeg; Unknown error: All connection attempts failed Fetch snapshot image failed from cam2, falling back to FFmpeg; Unknown error: Request URL missing either an 'http://' or 'https://' protocol. Fetch snapshot image failed from cam1, falling back to FFmpeg; Unknown error:

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.