<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Convert Axis webcam stream to Flash (.swf/.flv)</title>
	<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/</link>
	<description>My thoughts, projects and documentation... So I can find them again...</description>
	<pubDate>Fri, 18 May 2012 20:58:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Daantje</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-205688</link>
		<author>Daantje</author>
		<pubDate>Thu, 10 Sep 2009 12:00:35 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-205688</guid>
		<description>I had the same problem, got an other version of ffmpeg and it worked. Do not know why.</description>
		<content:encoded><![CDATA[<p>I had the same problem, got an other version of ffmpeg and it worked. Do not know why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasanthi</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-205686</link>
		<author>Vasanthi</author>
		<pubDate>Thu, 10 Sep 2009 11:49:20 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-205686</guid>
		<description>Hi,

On following this , I get the test.swf to be blank and also I am getting the error as Could not find codec parameters (Video: mjpeg) on running the start.sh What could be the issue</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>On following this , I get the test.swf to be blank and also I am getting the error as Could not find codec parameters (Video: mjpeg) on running the start.sh What could be the issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Blaauw</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-203298</link>
		<author>Hans Blaauw</author>
		<pubDate>Fri, 07 Aug 2009 08:01:25 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-203298</guid>
		<description>Hmm.. I fact it wasn't the pipes what causes the bad performance, but the MJPEG. I tested some more and find out the MJPEG was becoming slower and slower (1 second took 10 real seconds). By using the RTSP stream it looses some frames, but it's much faster. It only takes 4% cpu load on a slow machine, instead of 20 to 40 for MJPEG.</description>
		<content:encoded><![CDATA[<p>Hmm.. I fact it wasn&#8217;t the pipes what causes the bad performance, but the MJPEG. I tested some more and find out the MJPEG was becoming slower and slower (1 second took 10 real seconds). By using the RTSP stream it looses some frames, but it&#8217;s much faster. It only takes 4% cpu load on a slow machine, instead of 20 to 40 for MJPEG.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Blaauw</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-203295</link>
		<author>Hans Blaauw</author>
		<pubDate>Fri, 07 Aug 2009 07:38:59 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-203295</guid>
		<description>Great scripts!
Like mentioned before, I also feed the input directly to ffmpeg instead of piping it with wget/curl. It improves the performance a lot.

stream.sh:

#!/bin/bash
while [ 1 ]
do
        ffmpeg -er 4 -y -r 5 -f mjpeg -i http://192.168.1.165/axis-cgi/mjpg/video.cgi?resolution=704x576 http://127.0.0.1:8090/feed1.ffm
done


You can also try to grab the RTSP stream (if your cam supports it) by replacing the ffmpeg line with this one:

ffmpeg -er 4 -y -r 5 -f rtsp -i rtsp://192.168.1.165:554/mpeg4/media.amp http://127.0.0.1:8090/feed1.ffm

I think the mjpeg gives a better quality, but the rtsp seems to be a little faster.</description>
		<content:encoded><![CDATA[<p>Great scripts!<br />
Like mentioned before, I also feed the input directly to ffmpeg instead of piping it with wget/curl. It improves the performance a lot.</p>
<p>stream.sh:</p>
<p>#!/bin/bash<br />
while [ 1 ]<br />
do<br />
        ffmpeg -er 4 -y -r 5 -f mjpeg -i <a href="http://192.168.1.165/axis-cgi/mjpg/video.cgi?resolution=704x576" rel="nofollow">http://192.168.1.165/axis-cgi/mjpg/video.cgi?resolution=704&#215;576</a> <a href="http://127.0.0.1:8090/feed1.ffm" rel="nofollow">http://127.0.0.1:8090/feed1.ffm</a><br />
done</p>
<p>You can also try to grab the RTSP stream (if your cam supports it) by replacing the ffmpeg line with this one:</p>
<p>ffmpeg -er 4 -y -r 5 -f rtsp -i <a href="rtsp://192.168.1.165:554/mpeg4/media.amp" rel="nofollow">rtsp://192.168.1.165:554/mpeg4/media.amp</a> <a href="http://127.0.0.1:8090/feed1.ffm" rel="nofollow">http://127.0.0.1:8090/feed1.ffm</a></p>
<p>I think the mjpeg gives a better quality, but the rtsp seems to be a little faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-202725</link>
		<author>Phil</author>
		<pubDate>Mon, 27 Jul 2009 17:50:14 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-202725</guid>
		<description>I used:
http://blog.ryanparman.com/2008/06/28/installing-ffmpeg-php-fedora-amazon-aws/

on slackware to install ff. This worked 1st time out of the gate on a linksys PVC2300.

One thing to note is this cam has user auth on it so you have to make sure its in the url

ffmpeg -s qvga -er 4 -y -an -f mjpeg -i http://admin:admin@192.168.1.130/img/video.mjpeg http://localhost:8090/feed1.ffm

I also used Matija script above. worked 1st time. Thanks!!!!</description>
		<content:encoded><![CDATA[<p>I used:<br />
<a href="http://blog.ryanparman.com/2008/06/28/installing-ffmpeg-php-fedora-amazon-aws/" rel="nofollow">http://blog.ryanparman.com/2008/06/28/installing-ffmpeg-php-fedora-amazon-aws/</a></p>
<p>on slackware to install ff. This worked 1st time out of the gate on a linksys PVC2300.</p>
<p>One thing to note is this cam has user auth on it so you have to make sure its in the url</p>
<p>ffmpeg -s qvga -er 4 -y -an -f mjpeg -i <a href="http://admin:admin@192.168.1.130/img/video.mjpeg" rel="nofollow">http://admin:admin@192.168.1.130/img/video.mjpeg</a> <a href="http://localhost:8090/feed1.ffm" rel="nofollow">http://localhost:8090/feed1.ffm</a></p>
<p>I also used Matija script above. worked 1st time. Thanks!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivor</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-196764</link>
		<author>Ivor</author>
		<pubDate>Tue, 28 Apr 2009 12:54:33 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-196764</guid>
		<description>Daantje, thanks for this! It also worked on a crappy Marmitek robocam.</description>
		<content:encoded><![CDATA[<p>Daantje, thanks for this! It also worked on a crappy Marmitek robocam.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daantje</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-181686</link>
		<author>Daantje</author>
		<pubDate>Sun, 22 Mar 2009 13:47:50 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-181686</guid>
		<description>I would like the answer on this too! I've looked for it, but couldn't find it.</description>
		<content:encoded><![CDATA[<p>I would like the answer on this too! I&#8217;ve looked for it, but couldn&#8217;t find it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sjors</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-181617</link>
		<author>Sjors</author>
		<pubDate>Sun, 22 Mar 2009 11:19:33 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-181617</guid>
		<description>Nice, this solution is running great! We`d like to non commercial stream events with a axis 207 camera. 

But it would be nice i`ve we could include audio in this. Has anyone looked into this? Or could tell me a possible solution to get it working.</description>
		<content:encoded><![CDATA[<p>Nice, this solution is running great! We`d like to non commercial stream events with a axis 207 camera. </p>
<p>But it would be nice i`ve we could include audio in this. Has anyone looked into this? Or could tell me a possible solution to get it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danelle</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-176000</link>
		<author>Danelle</author>
		<pubDate>Tue, 10 Mar 2009 21:52:13 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-176000</guid>
		<description>Cool. This worked perfectly for me. Thanks for posting this !</description>
		<content:encoded><![CDATA[<p>Cool. This worked perfectly for me. Thanks for posting this !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matija</title>
		<link>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-175854</link>
		<author>Matija</author>
		<pubDate>Tue, 10 Mar 2009 11:33:23 +0000</pubDate>
		<guid>http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/#comment-175854</guid>
		<description>This is my script: echos are in my slovenian language, in comments you can see it translated :)

while [ 1 ]
do
sleep 4
#start ffserver
ffserver -f /home/matija/start/ffserver.conf &#38; 
sleep 2
#ffserver started
echo "zagnan ffserver"
#start stream no.1
nohup /home/matija/start/bernardin.sh &#62; /dev/null &#38;
sleep 2
#stream no.1 started
echo " zagnan bernardin"
nohup /home/matija/start/novistart.sh &#62;/dev/null &#38;
#stream no2 started
echo " zagnan pirat"
sleep 1000
#kill ffserver
killall -9 ffserver
#kill stream no.1 (usually it says that its not active,but not allways)
killall -9 ./bernardin.sh
#kill stream no.2 (same as first point)
killall -9 ./novistart.sh
#ok, i`ve killed everything
echo " ubil sem vseskupaj, hehe"
#delete feeds
rm /tmp/*
echo " pobrisal sem feede!"
done

and that`s it. In bernardin.sh is just 
ffmpeg -s qvga -er 4 -y -an -f mjpeg -i http://xx.xx.xx.xx/mjpg/video.mjpg http://localhost:8090/feed2.ffm 

you can see the result in http://www.sailingcircuit.com
bernardin web cam and pirat webcam, now I have to fix the marina webcam(IQEYE711).It wont stream under vlc or ffmpeg and this is making me angry :). If you have any question i will gladly answer it.</description>
		<content:encoded><![CDATA[<p>This is my script: echos are in my slovenian language, in comments you can see it translated :)</p>
<p>while [ 1 ]<br />
do<br />
sleep 4<br />
#start ffserver<br />
ffserver -f /home/matija/start/ffserver.conf &amp;<br />
sleep 2<br />
#ffserver started<br />
echo &#8220;zagnan ffserver&#8221;<br />
#start stream no.1<br />
nohup /home/matija/start/bernardin.sh &gt; /dev/null &amp;<br />
sleep 2<br />
#stream no.1 started<br />
echo &#8221; zagnan bernardin&#8221;<br />
nohup /home/matija/start/novistart.sh &gt;/dev/null &amp;<br />
#stream no2 started<br />
echo &#8221; zagnan pirat&#8221;<br />
sleep 1000<br />
#kill ffserver<br />
killall -9 ffserver<br />
#kill stream no.1 (usually it says that its not active,but not allways)<br />
killall -9 ./bernardin.sh<br />
#kill stream no.2 (same as first point)<br />
killall -9 ./novistart.sh<br />
#ok, i`ve killed everything<br />
echo &#8221; ubil sem vseskupaj, hehe&#8221;<br />
#delete feeds<br />
rm /tmp/*<br />
echo &#8221; pobrisal sem feede!&#8221;<br />
done</p>
<p>and that`s it. In bernardin.sh is just<br />
ffmpeg -s qvga -er 4 -y -an -f mjpeg -i <a href="http://xx.xx.xx.xx/mjpg/video.mjpg" rel="nofollow">http://xx.xx.xx.xx/mjpg/video.mjpg</a> <a href="http://localhost:8090/feed2.ffm" rel="nofollow">http://localhost:8090/feed2.ffm</a> </p>
<p>you can see the result in <a href="http://www.sailingcircuit.com" rel="nofollow">http://www.sailingcircuit.com</a><br />
bernardin web cam and pirat webcam, now I have to fix the marina webcam(IQEYE711).It wont stream under vlc or ffmpeg and this is making me angry :). If you have any question i will gladly answer it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

