core: Fetch snapshot failing to FFmpeg

The problem

The snapshot fetch is failing, and thus, falling back to FFmpeg.

This was working before, I’m not sure when this was broken. Versions 0.117.6 and 0.118.0 have the problem.

Environment

  • Home Assistant Core release with the issue: 0.118.0
  • Last working Home Assistant Core release (if known): Not too sure, I think 0.116.x was working.
  • Operating environment (OS/Container/Supervised/Core): OS
  • Integration causing this issue: ONVIF
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/onvif/

Problem-relevant configuration.yaml

None.

Traceback/Error logs

2020-11-19 08:26:20 ERROR (MainThread) [homeassistant.components.onvif] Fetch snapshot image failed from Cámara pasillo, falling back to FFmpeg; Unknown error: peer closed connection without sending complete message body (received 99 bytes, expected 973)

Additional information

None.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 29 (6 by maintainers)

Most upvoted comments

Possibly related to #42020. Could you test by editing .storage/config_entries and changing snapshot_auth for the camera to either basic or digest (the opposite of whatever it is currently set to) and restarting HA?

Hi there. FWIW, I’m using a Reolink RLC-423, and I was having this “bug” with the snapshot service not working. After changing snapshot_auth for the camera to basicin .storage/config_entries, AND using a password with only letters and numbers (no special characters, otherwise it does not work), I am now able to get a snapshot.

Tried chaning my username and password using only letters/numbers as mentioned above, changed from “digest” to “basic” and restarted. No luck.

Using a Reolink E1 Pro, on HAOS 2023.3.6

This is wasting an absurd amount of log space, and makes it really difficult to find other things in the log…even a suggestion to suppress the entries would be welcome as a workaround.

Or is there a way to just tell HA not to fetch the snapshot?

Problem still present on 2023.3.5

same error today

I’m running Home Assistant Core version 2020.12.2 and I’m having the exact same issue with my two ONVIF cameras (Hikvision). I tried changing the auth more from digest to basic but the issue persists. Any other ideas?

Also, how can I see the snapshot URL that HA is trying to fetch?