Motion-Project / motion

Motion, a software motion detector. Home page: https://motion-project.github.io/
GNU General Public License v2.0
3.66k stars 548 forks source link

Still authentication on DIGOO rtsp fails #930

Closed ghost closed 5 years ago

ghost commented 5 years ago
  1. Reviewed guide and contributing documents? (Yes/No): YES
  2. version [x.y.z, hash, other]: 4.2.2
  3. installed as a package or compiled from sources [deb, rpm, git, other]: compiled
  4. standalone or part of third party [motion, MotionEyeOS, other]: YES
  5. video stream source [V4L (card or USB), net cam (mjpeg, rtsp, other), mmal]: rtsp://
  6. hardware [x86, ARM, other]: X86
  7. operating system [16.04, Stretch, etc, FreeBSD, other]: Ubuntu 16

Still: thread1

netcam_userpass admin:dg20160404
# netcam_url rtsp://admin:dg20160404@192.168.1.148/onvif  # case1
netcam_url rtsp://192.168.1.148/onvif                                              # case2

Log file: Case 1

[1] [ALR] [NET] [Mar 14 21:19:55] netcam_start: Network Camera thread starting... for url (rtsp://admin:dg20160404@192.168.1.148/onvif)
[1] [ALR] [NET] [Mar 14 21:19:55] rtsp_connect: unable to open input(rtsp://192.168.1.148:554/onvif): -825242872 - Server returned 401 Unauthorized (authorization failed)

Case 2

[1] [ALR] [NET] [Mar 14 21:21:02] netcam_start: Network Camera thread starting... for url (rtsp://192.168.1.148/onvif)
[1] [ALR] [NET] [Mar 14 21:21:02] rtsp_connect: unable to open input(rtsp://192.168.1.148:554/onvif): -825242872 - Server returned 401 Unauthorized (authorization failed)
tosiara commented 5 years ago

Would it be possible to set up port forwarding so I could connect to your camera on RTSP port and perform few tests?

ghost commented 5 years ago

Ohh to look a the HTTP / RTSP.. AUTH headers ? . I can debug motion but I need some time. Ill let you know in the next time frame.

Mr-Dave commented 5 years ago

I'll offer one comment for @comarius and @tosiara . The log files pasted in this issue are from version 4.0 not 4.2.2 so you may want to start with resolving that.

ghost commented 5 years ago

Opps,... which motion -> /usr/local/bin/motion 4.2.2 while the init.rc/motion runs /usr/bin/motion. How I end up having 2 motions... Thank you.

Please Close