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.98k stars 30.53k forks source link

Error from stream worker: Error opening stream (ERRORTYPE_5, I/O error) rtmp #103495

Closed bcutter closed 8 months ago

bcutter commented 11 months ago

The problem

Once I switched from the custom reolink to the official reolink integration as of HA Core 2023.4, my camera streams don't show up anymore. Using the same URL in VLC media player works without any issue. So it must be something within HA itself obviously (again: the custom integration was working fine too before).

Similar to (unsolved)

What version of Home Assistant Core has the issue?

core-2023.4.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Stream

Link to integration documentation on our website

https://www.home-assistant.io/integrations/stream/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.stream.stream.camera.name_one
Source: components/stream/__init__.py:434
Integration: Stream (documentation, issues)
First occurred: 5. November 2023 um 04:13:52 (405 occurrences)
Last logged: 11:46:04

Error from stream worker: Error opening stream (ERRORTYPE_5, I/O error) rtmp://xxx.xxx.xxx.xxx:1935/bcs/channel0_sub.bcs?channel=0&stream=1&user=****&password=****
Error from stream worker: Error opening stream (EOF, End of file) https://xxx.xxx.xxx.xxx:443/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=****&password=****
Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtmp://xxx.xxx.xxx.xxx:1935/bcs/channel0_sub.bcs?channel=0&stream=1&user=****&password=****


### Additional information

_No response_
home-assistant[bot] commented 11 months ago

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

Code owner commands Code owners of `stream` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign stream` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


stream documentation stream source (message by IssueLinks)

bcutter commented 11 months ago

Note: after switching the protocol from rtmp (which always worked great) to rtsp (and also from sub to main which makes no difference regarding this issue), the stream is showing up again. After a HA restart, no more log entries in HA log. Until that restart the very same log entries were constantly logged, even with an old stream type (sub, while switched to main already).

So while the issue using rtmp still persists, it doesn't bother me currently as using rtsp now instead. Anyway, the stream integration has clearly still some issues with rtmp streams as also the other (unsolved) issues proof.

issue-triage-workflows[bot] commented 8 months 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.

sezlony commented 8 months ago

until 2024.1.5 for me it was working fine, now 2.3 broke it. integration is configured to RTSP.

Error from stream worker: Error opening stream (ERRORTYPE_5, I/O error) rtmp://IP:PORT/vod/file.mp4?channel=0&stream=1&user=****&password=****