1.MPG is 640X480, and framerate is 25.<br><br><div class="gmail_quote">On Sun, Feb 20, 2011 at 1:48 PM, Tim-Philipp Müller <span dir="ltr">&lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On Sun, 2011-02-20 at 13:37 -0600, Tom wrote:<br>
<br>
&gt; gst-launch filesrc &quot;location=1.MPG&quot; ! decodebin ! video/x-raw-yuv,<br>
&gt; width=640,height=480,framerate=5/1 ! ffmpegcolorspace ! jpegenc !<br>
&gt; multipartmux ! tcpserversink host=192.168.2.1 port=5000<br>
&gt;<br>
&gt; and then got an error:<br>
</div>&gt; ..<br>
<div class="im">&gt; stream stopped, reason not-negotiated<br>
</div><div class="im">&gt; ..<br>
&gt; I don&#39;t know why.....<br>
<br>
</div>This usually means there&#39;s a problem with caps somewhere.<br>
<br>
My first guess would be that your input video 1.MPG does not have a<br>
resolution of 640x480. If you want to scale the input video to this<br>
resolution, put a videoscale element between decodebin and the caps<br>
filter.<br>
<br>
(If that&#39;s not it, maybe you could provide the output of also passing -v<br>
to gst-launch.)<br>
<br>
 Cheers<br>
  -Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>