From: tosiara <to...@gm...> - 2019-04-02 14:55:18
|
First, are you sure /axis-cgi/jpg/image.cgi is providing MJPEG? Try "ffprobe http://192.168.1.6/axis-cgi/jpg/image.cgi" and provide the output Next, try to set this "netcam_url mjpeg://192.168.1.6:80/axis-cgi/jpg/image.cgi" and provide fresh log file On Mon, Apr 1, 2019 at 11:01 PM Dougie Nisbet <do...@ka...> wrote: > > I'm not sure if this is an old camera that's end of life or a change in motion. > > Camera: Axis 2100 > > OS: Debian Stretch > > motion Version 4.2.2 > > This used to work but now it doesn't, and I'm not sure when it stopped working. > > From the logs: > > [1:ml1:garage1] [WRN] [NET] Above message repeats 1995 times > [1:ml1:garage1] [WRN] [NET] netcam_next: called with no data in buffer > [1:nc6:garage1] [ERR] [NET] netcam_read_first_header: Error sending 'connect' request: Broken pipe > [1:nc6:garage1] [ERR] [NET] Above message repeats 5000 times > > And from my config file: > > # URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// mjpg:// rtsp:// mjpeg:// or file:///) > # Must be a URL that returns single jpeg pictures or a raw mjpeg stream. A trailing slash may be required for some cameras. > # Default: Not defined > #netcam_url http://192.168.1.7/video.mjpg > netcam_url http://192.168.1.6/axis-cgi/jpg/image.cgi > > My first thought was that the camera had stopped working, but I can connect to it and see the image using the URL above. I've had a bit of a search and tried different options, such as using mjpeg instead of http and checking that the authorisation works. > > I've also just tried the default motion.conf file and changed just the netcam_url and added netcam_userpass as a rudimentary check in case I've accidentally added anything odd and it's much the same except for: > > [1:nc6] [NTC] [NET] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set. > [1:nc6] [NTC] [NET] netcam_read_first_header: Non-streaming camera (keep-alive not set) > > I've tried adding netcam_keepalive with the options off, force, and on. With 'force' or 'on' I get: > > [1:ml1] [WRN] [NET] Above message repeats 4381 times > [1:ml1] [WRN] [NET] netcam_next: called with no data in buffer > [1:nc6] [ERR] [NET] netcam_read_first_header: Error sending 'connect' request: Broken pipe > > My hunch is that the camera is end of life. Anything else I can try? > > Thanks > > Dougie > > > > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user |