-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Snapshot timeout on ffmpeg camera #51073
Comments
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. |
Ping |
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. |
Ping |
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. |
core-2022.2.9 - nothing changed |
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. |
Ping |
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. |
Ping |
I also have the same problem. In 2021 it used to work... I'll try to adapt the workaround provided by slydiman |
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. |
Ping |
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. |
Ping |
I ran into something similar. I had a shell command that takes around 2 minutes stop working on me. I found the shell command now has a hardcoded 60 second timeout. See this other related issue : #45393 |
No, 2-3 seconds. It depends on the key (IDR) frame interval. Usually it can be configured on the camera/DVR. |
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. |
Still happening |
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. |
Still an issue |
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. |
still happens. |
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. |
ping |
I recommend to use the go2rtc integration and this solution https://github.com/AlexxIT/go2rtc/wiki/Snapshot-to-Telegram |
I have updated the ffmpeg command to work with latest ffmpeg 2024+: |
The problem
Ffmpeg camera cannot take a snapshot because of a timeout without any reason.
I'm using
shell_command
for callingffmpeg -rtsp_transport tcp -i "$1" -an -frames:v 1 -update 1 -f image2 -y "$2"
as a workaround for now and it works just fine (less than 1 sec). Note I have configured the encoding of RTSP stream with very small IDR frames interval.What is version of Home Assistant Core has the issue?
core-2021.5.5
What was the last working version of Home Assistant Core?
It worked at least few months ago.
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
FFmpeg Camera
Link to integration documentation on our website
https://www.home-assistant.io/integrations/camera.ffmpeg/
Example YAML snippet
Anything in the logs that might be useful for us?
I tried to enable logs for
haffmpeg.tools
, but the log does not contain any useful information, just a timeout.Additional information
/config/snapshot.sh:
The text was updated successfully, but these errors were encountered: