Here is new output with -v:<br><span style="color: rgb(0, 153, 0);">gst-launch -v filesrc location=1.MPG ! decodebin ! video/x-raw-yuv, width=640,height=480,framerate=5/1 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=192.168.2.1 port=5000</span><br style="color: rgb(0, 153, 0);">
<br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">(gst-launch-0.10:10915): GLib-WARNING **: g_set_prgname() called multiple times</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Setting pipeline to PAUSED ...</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = video/mpeg, systemstream=(boolean)true, mpegversion=(int)2</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">Pipeline is PREROLLING ...</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:sink: caps = video/mpeg, systemstream=(boolean)true, mpegversion=(int)2</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:src: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/MpegVideoParse:mpegvideoparse0.GstPad:sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = video/x-raw-yuv, width=(int)640, height=(int)480, framerate=(fraction)5/1</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/MpegVideoParse:mpegvideoparse0.GstPad:src: caps = video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)2, width=(int)640, height=(int)480, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false, codec_data=(buffer)000001b32801e013ffffe090000001b5148a00010000</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:src: caps = audio/mpeg, mpegversion=(int)1</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps = video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)2, width=(int)640, height=(int)480, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false, codec_data=(buffer)000001b32801e013ffffe090000001b5148a00010000</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps = video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)2, width=(int)640, height=(int)480, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false, codec_data=(buffer)000001b32801e013ffffe090000001b5148a00010000</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0: max-size-bytes = 20240</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:src0: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)25/1, interlaced=(boolean)false</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)25/1, interlaced=(boolean)false</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0: Internal data stream error.</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Additional debug info:</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">gstmpegdemux.c(2734): gst_flups_demux_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0:</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">stream stopped, reason not-negotiated</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">ERROR: pipeline doesn't want to preroll.</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">Setting pipeline to NULL ...</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:src0: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:src: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:sink: caps = NULL</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:src: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:sink: caps = NULL</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:src: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:sink: caps = NULL</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/MpegVideoParse:mpegvideoparse0.GstPad:src: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/MpegVideoParse:mpegvideoparse0.GstPad:sink: caps = NULL</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:src: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:sink: caps = NULL</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:audio_c0: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:video_e0: caps = NULL</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:sink: caps = NULL</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = NULL</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);">Freeing pipeline ...</span><br><br>Thanks!!!<br><br><div class="gmail_quote">On Sun, Feb 20, 2011 at 1:48 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>></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>
> gst-launch filesrc "location=1.MPG" ! decodebin ! video/x-raw-yuv,<br>
> width=640,height=480,framerate=5/1 ! ffmpegcolorspace ! jpegenc !<br>
> multipartmux ! tcpserversink host=192.168.2.1 port=5000<br>
><br>
> and then got an error:<br>
</div>> ..<br>
<div class="im">> stream stopped, reason not-negotiated<br>
</div><div class="im">> ..<br>
> I don't know why.....<br>
<br>
</div>This usually means there'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'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>