Dahua H.264 camera
Hi,
I have been using MotionEye in combination with a few MJPEG cameras for a while and it works great. I now purchased two Dahua camera (IPC-HFW1320s) but I can't seem to get them working in MotionEye. I already installed motion-mrdave but I still get an error: rtsp netcam returned erroneous response: RTSP/1.0 401 . I'm not sure if I added it the right way (just the url as rtsp://192.168.3.36:554/live) either so if someone could point me in the right direction that would be great.
I think this has to do with other issues referring to RTSP authentication. In VLC the stream works fine.
I got it working. I manually created the file thread-8.conf in /etc/motioneye with the following content: ffmpeg_output_movies on netcam_userpass admin:admin stream_quality 85 threshold 1999 quality 85 noise_level 31 pre_capture 1 noise_tune on stream_maxrate 5 output_pictures off stream_localhost on ffmpeg_variable_bitrate 0 ffmpeg_video_codec msmpeg4 text_changes off movie_filename %Y-%m-%d/%H-%M-%S auto_brightness off stream_port 8081 rotate 0 stream_auth_method 0 lightswitch 0 framerate 2 emulate_motion off snapshot_filename snapshot_interval 0 minimum_motion_frames 20 stream_motion off target_dir /home/Recordings text_double on post_capture 1 stream_authentication user: on_picture_save /usr/bin/python /usr/local/lib/python2.7/dist-packages/motioneye/meyectl.pyc relayevent -c /etc/motioneye/motioneye.conf -l picture_save %t %f on_movie_end /usr/bin/python /usr/local/lib/python2.7/dist-packages/motioneye/meyectl.pyc relayevent -c /etc/motioneye/motioneye.conf -l movie_end %t %f text_left Dahua picture_filename locate_motion_style redbox locate_motion_mode off netcam_keepalive on max_movie_time 0 on_event_end /usr/bin/python /usr/local/lib/python2.7/dist-packages/motioneye/meyectl.pyc relayevent -c /etc/motioneye/motioneye.conf -l stop %t text_right %Y-%m-%d\n%T on_event_start /usr/bin/python /usr/local/lib/python2.7/dist-packages/motioneye/meyectl.pyc relayevent -c /etc/motioneye/motioneye.conf -l start %t ffmpeg_bps 43008 event_gap 30 netcam_tolerant_check on
netcam_url rtsp://192.168.3.36/live width 640 # Required, otherwise motioneye crashes height 480 #
Then included it in motion.conf and it shows in MotionEye :). It looks quite laggy but that could be due to wrong settings or a slow pc, but atleast it works. The width and height had to be added otherwise motioneye wouldn't work.