<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Grabbing Stills and Making FLV Movies from Axis IP Cameras</title>
	<atom:link href="http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/</link>
	<description>A partial repository of whatever comes to mind</description>
	<lastBuildDate>Sat, 21 Nov 2009 07:51:49 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Edwin D</title>
		<link>http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/comment-page-1/#comment-19561</link>
		<dc:creator>Edwin D</dc:creator>
		<pubDate>Thu, 06 Aug 2009 00:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/#comment-19561</guid>
		<description>In case it helps anyone, I have sample code of how to do time lapse video off an IP camera on blog http://pcgrind.blogspot.com/  near the bottom.

This is PC Based, but if you can do a little scripting it can run on any platform.   I am basically doing a loop and using wget to obtain images.   My video server is currently getting a few FPS per IP camera.

So step one is to have a scheduled task or cron job in startup doing wget to get your images.

Step two is to convert these into a video.   I use mencoder to do this.  This is available form any platform too.   So there is a daily job which moves the JPGs into working directories for each camera, then use mencoder to combine the images into a video as described here;  http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html

I have been doing this for several years with many cameras.   Depending on how you configure the settings on the camera/wget/mencoder you can end up with:  time lapse video a frame a minute real high quality, low size that looks nice;  live video captured at several FPS depending on your bandwidth and CPU at whatever quality you want taking about a GB per day; and anything in between.

Some cameras will output gray scale images by night and color by day.  mencoder will choke on those and stop encoding on the first image that is different.   mencoder requires all images to be the same.   If this is an issue you need to either normalize the images with something like my Irfanview sample, or setup the camera to always output the same image type.   If your camera doesn&#039;t do this, skip that step as it is very time consuming.</description>
		<content:encoded><![CDATA[<p>In case it helps anyone, I have sample code of how to do time lapse video off an IP camera on blog <a href="http://pcgrind.blogspot.com/" rel="nofollow">http://pcgrind.blogspot.com/</a>  near the bottom.</p>
<p>This is PC Based, but if you can do a little scripting it can run on any platform.   I am basically doing a loop and using wget to obtain images.   My video server is currently getting a few FPS per IP camera.</p>
<p>So step one is to have a scheduled task or cron job in startup doing wget to get your images.</p>
<p>Step two is to convert these into a video.   I use mencoder to do this.  This is available form any platform too.   So there is a daily job which moves the JPGs into working directories for each camera, then use mencoder to combine the images into a video as described here;  <a href="http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html" rel="nofollow">http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html</a></p>
<p>I have been doing this for several years with many cameras.   Depending on how you configure the settings on the camera/wget/mencoder you can end up with:  time lapse video a frame a minute real high quality, low size that looks nice;  live video captured at several FPS depending on your bandwidth and CPU at whatever quality you want taking about a GB per day; and anything in between.</p>
<p>Some cameras will output gray scale images by night and color by day.  mencoder will choke on those and stop encoding on the first image that is different.   mencoder requires all images to be the same.   If this is an issue you need to either normalize the images with something like my Irfanview sample, or setup the camera to always output the same image type.   If your camera doesn&#8217;t do this, skip that step as it is very time consuming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/comment-page-1/#comment-17329</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Tue, 23 Jun 2009 10:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/#comment-17329</guid>
		<description>Hi Mike,
I Just want to say a BIG thanks for the post, I&#039;ve been trying to get something very similar to work (without success) for a few days now using various different server side encoding tools and found your post to be a very helpful.
Thanks
Adam</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
I Just want to say a BIG thanks for the post, I&#8217;ve been trying to get something very similar to work (without success) for a few days now using various different server side encoding tools and found your post to be a very helpful.<br />
Thanks<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Renfro</title>
		<link>http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/comment-page-1/#comment-5739</link>
		<dc:creator>Mike Renfro</dc:creator>
		<pubDate>Thu, 16 Oct 2008 04:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/#comment-5739</guid>
		<description>This setup may or may not be usable with your server setup. So, some questions to help narrow that down:

1. Is your web server a Windows, Mac, or Linux/Unix system? If Windows, then the axisgrab.py script would be able to grab the images from the camera, but might have trouble running mencoder to convert the images into a Flash video. If it&#039;s a Mac or Linux/Unix system, then it&#039;s a matter of getting PHP, Python, and mencoder installed on it.

2. Is this a cheap shared-hosting plan, or do you have a dedicated server? If the former, you may not have the ability to run the axisgrab.py script on a recurring basis. Ask your hosting provider if they support you running &#039;cron&#039; jobs, assuming they&#039;re not a Windows server shop. If they say no, then it&#039;ll be difficult to get the images off the camera automatically.

As far as how to get it running, the best thing I can say is &quot;one step at a time&quot;. First, get axisgrab.py to grab an image off your camera and save it. Next, get axisgrab.py to encode the day&#039;s images into an FLV. If both of those work ok, then it&#039;s fairly simple to get JW Media Player set up to play a hand-typed playlist of FLV files (that you encoded with axisgrab.py). Finally, get index.php to create a playlist for JW Media Player from all the FLV files in your folder.

Each step has to be working properly before you go to the next step. I&#039;m not really in a position to do side work, but you (or whoever you&#039;re working with at your web host) can email me if needed (addresses on my &quot;About Me&quot; page).</description>
		<content:encoded><![CDATA[<p>This setup may or may not be usable with your server setup. So, some questions to help narrow that down:</p>
<p>1. Is your web server a Windows, Mac, or Linux/Unix system? If Windows, then the axisgrab.py script would be able to grab the images from the camera, but might have trouble running mencoder to convert the images into a Flash video. If it&#8217;s a Mac or Linux/Unix system, then it&#8217;s a matter of getting PHP, Python, and mencoder installed on it.</p>
<p>2. Is this a cheap shared-hosting plan, or do you have a dedicated server? If the former, you may not have the ability to run the axisgrab.py script on a recurring basis. Ask your hosting provider if they support you running &#8216;cron&#8217; jobs, assuming they&#8217;re not a Windows server shop. If they say no, then it&#8217;ll be difficult to get the images off the camera automatically.</p>
<p>As far as how to get it running, the best thing I can say is &#8220;one step at a time&#8221;. First, get axisgrab.py to grab an image off your camera and save it. Next, get axisgrab.py to encode the day&#8217;s images into an FLV. If both of those work ok, then it&#8217;s fairly simple to get JW Media Player set up to play a hand-typed playlist of FLV files (that you encoded with axisgrab.py). Finally, get index.php to create a playlist for JW Media Player from all the FLV files in your folder.</p>
<p>Each step has to be working properly before you go to the next step. I&#8217;m not really in a position to do side work, but you (or whoever you&#8217;re working with at your web host) can email me if needed (addresses on my &#8220;About Me&#8221; page).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Beckler</title>
		<link>http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/comment-page-1/#comment-5733</link>
		<dc:creator>Mike Beckler</dc:creator>
		<pubDate>Wed, 15 Oct 2008 23:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/#comment-5733</guid>
		<description>Hi Mike,
I found your blog while searching for a way to archive images from an IP camera.  I am trying to create a website to monitor a construction project I am going to be superintendent  on.  Time lapse video of the construction progress was also on my wish list.  Unfortunately I am no very little about programming.  I have managed to get a basic site going, and found templates that create archived images, but I have seen websites where you can click on the day in a calendar and the archived images from that day will be available.  The archive system I have creates pages of thumbnails and there is no way to jump to a specific day.  
I guess I&#039;m getting a little off subject.  What I was hoping is you could explain in simple terms what I need to do to get your code to accomplish archiving the images and creating a time lapse video on my website.  I would be willing to pay for your services if within my meager budget.
Thanks,
Mike</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
I found your blog while searching for a way to archive images from an IP camera.  I am trying to create a website to monitor a construction project I am going to be superintendent  on.  Time lapse video of the construction progress was also on my wish list.  Unfortunately I am no very little about programming.  I have managed to get a basic site going, and found templates that create archived images, but I have seen websites where you can click on the day in a calendar and the archived images from that day will be available.  The archive system I have creates pages of thumbnails and there is no way to jump to a specific day.<br />
I guess I&#8217;m getting a little off subject.  What I was hoping is you could explain in simple terms what I need to do to get your code to accomplish archiving the images and creating a time lapse video on my website.  I would be willing to pay for your services if within my meager budget.<br />
Thanks,<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Renfro</title>
		<link>http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/comment-page-1/#comment-3252</link>
		<dc:creator>Mike Renfro</dc:creator>
		<pubDate>Sat, 05 Jul 2008 18:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/#comment-3252</guid>
		<description>Sure could. I just have a mental disconnect regarding using PHP for anything other than webpages on demand. Python tends to be my default tool for anything related to systems administration that isn&#039;t a very quick and easy shell script.

And this definitely isn&#039;t for people who have a shared host at some random web hosting service. For me, getting mencoder was a matter of adding a Debian-multimedia package source and installing it.</description>
		<content:encoded><![CDATA[<p>Sure could. I just have a mental disconnect regarding using PHP for anything other than webpages on demand. Python tends to be my default tool for anything related to systems administration that isn&#8217;t a very quick and easy shell script.</p>
<p>And this definitely isn&#8217;t for people who have a shared host at some random web hosting service. For me, getting mencoder was a matter of adding a Debian-multimedia package source and installing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Behrens</title>
		<link>http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/comment-page-1/#comment-3224</link>
		<dc:creator>John Behrens</dc:creator>
		<pubDate>Fri, 04 Jul 2008 12:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.cae.tntech.edu/mwr/2007/11/07/grabbing-stills-and-making-flv-movies-from-axis-ip-cameras/#comment-3224</guid>
		<description>Well that sounds very nice,
i think the python part could be done in PHP aswell even if i never wrote python its quite easy to understand. But i think the bigger issue would be to get mencoder running on my server.</description>
		<content:encoded><![CDATA[<p>Well that sounds very nice,<br />
i think the python part could be done in PHP aswell even if i never wrote python its quite easy to understand. But i think the bigger issue would be to get mencoder running on my server.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
