koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
4.15k stars 247 forks source link

Dahua motion events not working anymore #1417

Closed JBosecker closed 6 months ago

JBosecker commented 6 months ago

Describe the bug Since 6fd66db896b30def12633a9fda403c2baefea698 the motion events are not working anymore. I think the handling of the "ignore" start of the stream is not correct (at least for my setup). The message I see in the console is preparing event listener http://REDACTED/cgi-bin/eventManager.cgi?action=attach&codes=[All] expected boundary but found HTTP/1.1 200 OK listen loop closed, restarting listener. So the HTTP header is leading to be an unexpected value and the stream is destroyed because of the exception is thrown.

To Reproduce

  1. Install Dahua camera
  2. Add the Amcrest plugin in Scrypted
  3. Add device with the correct configuration
  4. Try to trigger motion event

Expected behavior Motion is detected correctly.

Actual behavior Motion isn't detected.

Server:

Hardware Model:

Additional context Add any other context about the problem here.

koush commented 6 months ago

thanks, can you join discord. I need someone to share a camera with me to fix this.

koush commented 6 months ago

fixed