This is my working config for dlink dsc-932LB mjpeg cameras:
camera:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
rtmp: -c:v libx264 -an -f flv
inputs:
- path: http://IP.IP.IP.IP/video/mjpg.cgi
roles:
- detect
- record
- rtmp
detect:
width: 640
height: 480
objects:
track:
- person
- car
That specific camera is not password protected but if you need that then just modify the URL path to include username and password.