try using playbin2, or <br>gst-launch souphttpsrc ! decodebin ! xvimagesink  ?<br><br>best luck<br>-kapil<br><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 1:01 AM, Kulecz, Walter (JSC-SK)[WYLE INTEG. SCI. &amp; ENG.] <span dir="ltr">&lt;<a href="mailto:walter.kulecz-1@nasa.gov">walter.kulecz-1@nasa.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What is the proper source to use for a &quot;netcam&quot; that produces an MJPEG stream?<br>

<br>
<a href="http://x.y.z.n/video.cgi" target="_blank">http://x.y.z.n/video.cgi</a> delivers a MJPEG image stream.<br>
<br>
This works in Firefox with NoScript blocking x.y.z.n by default, so its not<br>
using any client side code in the browser.<br>
<br>
<br>
I&#39;ve tried the following:<br>
<br>
gst-launch giosrc location=<a href="http://192.168.1.100/video.cgi" target="_blank">http://192.168.1.100/video.cgi</a> ! xvimagesink<br>
<br>
Which gives:<br>
<br>
(gst-launch-0.10:3359): GLib-WARNING **: g_set_prgname() called multiple times<br>
Setting pipeline to PAUSED ...<br>
Pipeline is PREROLLING ...<br>
Pipeline is PREROLLED ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
Got EOS from element &quot;pipeline0&quot;.<br>
Execution ended after 227460 ns.<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
<br>
<br>
AND:<br>
gst-launch playbin2 uri=<a href="http://192.168.1.100/video.cgi" target="_blank">http://192.168.1.100/video.cgi</a> ! queue ! jpegdec ! xvimagesink<br>
<br>
Which gives:<br>
<br>
(gst-launch-0.10:3375): GLib-WARNING **: g_set_prgname() called multiple times<br>
WARNING: erroneous pipeline: could not link playbin20 to queue0<br>
Ubuntu910:~/gst-learn$ gst-launch playbin2 uri=<a href="http://192.168.1.100/video.cgi" target="_blank">http://192.168.1.100/video.cgi</a> ! xvimagesink<br>
(gst-launch-0.10:3395): GLib-WARNING **: g_set_prgname() called multiple times<br>
WARNING: erroneous pipeline: could not link playbin20 to xvimagesink0<br>
<br>
<br>
<br>
Ubuntu 9.10 uses gstreamer-0.10.25.<br>
This is a low priority for me, but if I knew it worked it could be useful for me as<br>
a video source to experiment with gstreamer on Windows XP.<br>
<br>
________________________________________<br>
From: Tim-Philipp Müller [<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>]<br>
Sent: Tuesday, April 20, 2010 4:54 AM<br>
To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
Subject: Re: [gst-devel] Could not close resource error when using gnomevfssrc with ftp<br>
----------------- stuff deleted ------------------------------------------<br>
<br>
&gt; But if i take the queue element out:<br>
&gt; gst-launch -v gnomevfssrc<br>
&gt; location=<a href="ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3" target="_blank">ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3</a> !<br>
&gt; decodebin ! fakesink<br>
&gt;<br>
&gt; the pipe stays blocked for ever (on both cases)... is this behavior<br>
&gt; expected? have anyone faced something like that? is a good policy to<br>
&gt; always put a queue after a gnomevfssrc?<br>
<br>
If there&#39;s no queue between the source and the decoder/parser, then<br>
gnomevfssrc may be activated in pull mode if gnomevfssrc thinks it can<br>
seek in the resource it opened. I don&#39;t think this ever worked<br>
particularly well. &quot;ftp&quot; should probably be in the blacklist of<br>
protocols that shouldn&#39;t operate in pull mode, like http is already.<br>
<br>
But in any case, you should really use giosrc instead. gnomevfs and<br>
hence gnomevfssrc are deprecated.<br>
<br>
Cheers<br>
 -Tim<br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>