Convert image from IP camera
Posted: 2013-10-28T20:22:31-07:00
I have an IP camera, where a snapshot image is available from the URL [url]http://userid:@ip-number:port/snapshot.cgi[/url] (I have a real ip and port number of course). This works fine from a browser. I'd like to grab that image and add a timestamp to it using IM. The command line (or script) I've been tying is This doesn't want to work. This is the error message I get.
I have another ip camera, where the snapshot url is similar, but doesn't have authentication (the "guest:" part) and ends "snapshot.jpg" instead of a cgi extension, and that works fine with convert.
Any ideas??
Code: Select all
convert "http://guest:@ip-number:port/snapshot.cgi" -pointsize 18 -fill white -gravity SouthEast -annotate +0+5 "`date`" CamPic.jpg
Code: Select all
sh: 1: html2ps: not found
convert: delegate failed `"html2ps" -U -o "%o" "%i"' @ error/delegate.c/InvokeDelegate/1058.
convert: unable to open image `/tmp/magick-TJIy7e2T': @ error/blob.c/OpenBlob/2587.
convert: unable to open file `/tmp/magick-TJIy7e2T': @ error/constitute.c/ReadImage/571.
convert: no data returned `http://guest:@ip-number:port/snapshot.cgi' @ error/url.c/ReadURLImage/231.
convert: missing an image filename `CamPic.jpg' @ error/convert.c/ConvertImageCommand/3011.
Any ideas??