question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fetch snapshot failing to FFmpeg

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:25 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
hunterjmcommented, Nov 19, 2020

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?

1reaction
iliyangcommented, Dec 30, 2020

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error within Camera-FFmpeg plugin, shows snapshots but can ...
Error within Camera-FFmpeg plugin, shows snapshots but can't stream video. I got Camera-FFmpeg set up and it seems to be mostly working, but...
Read more >
Use ffmpeg to take snapshot - Home Assistant Community
I want to use it to take a snapshot whenever someone rings my doorbell, so that I can send it to my phone....
Read more >
ffmpeg fails to generate screenshots - Super User
When you don't get an output file, ffmpeg probably cannot seek to that position, or there is no video information at that position....
Read more >
How to debug ffmpeg reliability for long running rtsp streams
Update I got some trace logs. The ffmpeg seems to fail silently at some point and stop taking snapshots. After about 3 million...
Read more >
Adding SecuritySpy Cameras To HomeKit Using Homebridge
Step 3: Install the Homebridge Camera FFmpeg plugin ... cameras set up fine, but I get an error when trying to get a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found