Open charlespick opened 3 months ago
Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
synology_dsm documentation synology_dsm source (message by IssueLinks)
the stream of your doorbell camera seems to be not compatible with the stream
integration - please provide more details about this camera and how exactly did you integrate it into the surveillance station, thx :+1:
@mib1185 the doorbell is not online yet. Could that be causing the problem you are seeing? I can bring it back online and collect logs again if needed.
I'm a bit confused - as per your provided diagnostics data you've two cameras connected to the Surveillance Station Portercam
and Doorbell
, while Doorbell
is disconnected. How exactly do you start these streams? And which one?
Further please enable debug logging, restart the integration and download and provide the log file after the issue occur again.
Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.
thx 👍
@mib1185 just ignore the doorbell for now. I had it wired up to a power brick for a moment to configure the wifi but it is having other issues so I haven't mounted it on my house yet.
Would it be possible to share the log privately somewhere? When enabling debug logging the log grows to over 1000 lines in minutes. I can't go through it all to make sure it is free of secrets and there is encoded information that I can't even tell how it's encoded to know if it is a secret.
Hi @charlespick feel free to contact me on discord (mib1185
) 👍
@mib1185 sent you a message
It seems to be an incompatibility between the video stream of the camera (Portercam) and the stream
integration which is responsible to show the stream in HA.
Maybe you can adjust some settings in the SurveillanceStation for this camera, but the synology_dsm integration itself does only pass-through the rtsp url (provided by the SurveillanceStation) to the stream
integration - maybe this note in the stream docs can help?
The only codec selected anywhere in Surveillance Station is H.264. H.265 is nowhere to be seen. I changed Stream 1 in Surveillance Station to constant bitrate and it appears to have helped in getting the stream started more often but it is still failing maybe 10% of the time I try starting the stream as opposed to 90% before. Similar errors [mp4] dimensions not set
and Uncaught thread exception
showing in my logs when that happens.
please also provide the further logs about the stream component, which you showed me on discord, thx 👍
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!
(message by CodeOwnersMention)
stream documentation stream source (message by IssueLinks)
What I said yesterday about it appearing to be more reliable I think was a one off. It is back to never starting the stream.
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.
I'll need a few days to update to the latest version since one just came out. I'll test again and report here in a few days.
After upgrading to 2024.10.1 the error is still posting when trying to load the stream, viewing the stream is still very unreliable/extremely slow (3+ minutes) to start:
2024-10-05 11:44:43.180 2024-10-05 18:44:43.081 WARNING (MainThread) [homeassistant.components.media_player] Error retrieving proxied image from http://10.3.5.96:1400
2024-10-05 11:44:50.698 2024-10-05 18:44:50.551 ERROR (stream_worker) [root] Uncaught thread exception
2024-10-05 11:44:50.698 Traceback (most recent call last):
2024-10-05 11:44:50.698 File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
2024-10-05 11:44:50.698 self.run()
2024-10-05 11:44:50.698 File "/srv/homeassistant_2024_10_1/lib/python3.12/site-packages/sentry_sdk/integrations/threading.py", line 101, in run
2024-10-05 11:44:50.698 return _run_old_run_func()
2024-10-05 11:44:50.698 ^^^^^^^^^^^^^^^^^^^
2024-10-05 11:44:50.698 File "/srv/homeassistant_2024_10_1/lib/python3.12/site-packages/sentry_sdk/integrations/threading.py", line 96, in _run_old_run_func
2024-10-05 11:44:50.698 reraise(*_capture_exception())
2024-10-05 11:44:50.698 File "/srv/homeassistant_2024_10_1/lib/python3.12/site-packages/sentry_sdk/utils.py", line 1715, in reraise
2024-10-05 11:44:50.698 raise value
2024-10-05 11:44:50.698 File "/srv/homeassistant_2024_10_1/lib/python3.12/site-packages/sentry_sdk/integrations/threading.py", line 94, in _run_old_run_func
2024-10-05 11:44:50.698 return old_run_func(self, *a, **kw)
2024-10-05 11:44:50.698 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-05 11:44:50.698 File "/usr/lib/python3.12/threading.py", line 1010, in run
2024-10-05 11:44:50.698 self._target(*self._args, **self._kwargs)
2024-10-05 11:44:50.698 File "/srv/homeassistant_2024_10_1/lib/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 438, in _run_worker
2024-10-05 11:44:50.698 stream_worker(
2024-10-05 11:44:50.698 File "/srv/homeassistant_2024_10_1/lib/python3.12/site-packages/homeassistant/components/stream/worker.py", line 618, in stream_worker
2024-10-05 11:44:50.698 muxer.mux_packet(first_keyframe)
2024-10-05 11:44:50.698 File "/srv/homeassistant_2024_10_1/lib/python3.12/site-packages/homeassistant/components/stream/worker.py", line 271, in mux_packet
2024-10-05 11:44:50.698 self._av_output.mux(packet)
2024-10-05 11:44:50.698 File "av/container/output.pyx", line 218, in av.container.output.OutputContainer.mux
2024-10-05 11:44:50.698 File "av/container/output.pyx", line 224, in av.container.output.OutputContainer.mux_one
2024-10-05 11:44:50.698 File "av/container/output.pyx", line 190, in av.container.output.OutputContainer.start_encoding
2024-10-05 11:44:50.698 File "av/container/core.pyx", line 290, in av.container.core.Container.err_check
2024-10-05 11:44:50.698 File "av/error.pyx", line 336, in av.error.err_check
2024-10-05 11:44:50.698 av.error.ValueError: [Errno 22] Invalid argument: '<none>'; last error log: [mp4] dimensions not set
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.
I'm still having this issue on the latest version 👍
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.
Still having the issue with 2024.10.1
The problem
Camera streams from Synology Surveillance Station integration will not start, or take over 60 seconds to start. In the Home Assistant Log, the error "Invalid argument: ''; last error log: [mp4] dimensions not set" posts every time you try to view a camera in the frontend.
What version of Home Assistant Core has the issue?
2024.7.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Synology DSM
Link to integration documentation on our website
https://www.home-assistant.io/integrations/synology_dsm/
Diagnostics information
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Tested viewing stream on iOS HA App, Firefox on Windows Tested 1 Amcrest and 1 Reolink camera, both record reliably and smoothly to DSM/SS (Doorbell was intentionally offline while the above diagnostics were captured) NAS was just setup with the latest DSM a couple weeks ago I did find a possibly related issue that wasn't solved #46184