Skip to content
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

Fetch snapshot image failed from [camera name], falling back to FFmpeg #120506

Open
tomlut opened this issue Jun 26, 2024 · 5 comments
Open

Fetch snapshot image failed from [camera name], falling back to FFmpeg #120506

tomlut opened this issue Jun 26, 2024 · 5 comments
Assignees

Comments

@tomlut
Copy link

tomlut commented Jun 26, 2024

The problem

The ONVIF integration is reporting the following error:

Logger: homeassistant.components.onvif
Source: components/onvif/camera.py:147
integration: ONVIF (documentation, issues)
First occurred: 18:03:16 (37 occurrences)
Last logged: 18:16:42

Fetch snapshot image failed from Washing, falling back to FFmpeg; Unknown error: Server disconnected without sending a response.
Fetch snapshot image failed from Deck Side, falling back to FFmpeg; Unknown error: Server disconnected without sending a response.
Fetch snapshot image failed from Patio, falling back to FFmpeg; Unknown error: Server disconnected without sending a response.
Fetch snapshot image failed from Mech WS, falling back to FFmpeg; Unknown error: Server disconnected without sending a response.
Fetch snapshot image failed from Front, falling back to FFmpeg; Unknown error: Server disconnected without sending a response.

It appears that this has been a long standing issue, see stale issue here: #43376

This error occurs when visiting a dashboard with a picture entity card showing the camera or when taking snapshots via the camera.snapshot service.

What version of Home Assistant Core has the issue?

core-2024.6.4

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

ONVIF

Link to integration documentation on our website

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

Diagnostics information

config_entry-onvif-2da250132f004a58465d275e60c14192.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

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!

Code owner commands

Code owners of onvif 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 onvif Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


onvif documentation
onvif source
(message by IssueLinks)

@ausfas
Copy link

ausfas commented Jul 15, 2024

I'm having the same issue:

Logger: homeassistant.components.onvif
Source: components/onvif/camera.py:147
integration: ONVIF (documentation, issues)
First occurred: July 13, 2024 at 5:06:36 PM (8 occurrences)
Last logged: 10:49:40 AM

Fetch snapshot image failed from Dahua, falling back to FFmpeg; Unknown error:

@fnordson
Copy link

I do have the same error.
Google is quite full of it, but there are no useful solutions.
Past issues on git have been closed becuase they became stale.

@tOOmki
Copy link

tOOmki commented Oct 28, 2024

Same problem

@MyWebmasterD
Copy link

MyWebmasterD commented Nov 12, 2024

Hello,
I have the same issue. I investigated more and discovered that in my case the api try to get the the snapshot using other credentials, not the one configured in my camera.
If I manually make the call with powershell and the right credentials, I'm able to get the snapshot.
But I don't know how to force the use of the right credentials in the snapshot creation,

Fetch snapshot image failed from Camera, falling back to FFmpeg; Unknown error: Failed to authenticate to http://192.168.1.***/webcapture.jpg?command=snap&channel=0&user=***&password=***

(*** are my sensitive data)

the error is coming from components/onvif/camera.py:147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants