why gst-launch doesnot work in my Ubuntu?

Tom fb8fb8 at gmail.com
Sun Feb 20 12:04:58 PST 2011


Here is new output with -v:
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

(gst-launch-0.10:10915): GLib-WARNING **: g_set_prgname() called multiple
times
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
caps = video/mpeg, systemstream=(boolean)true, mpegversion=(int)2
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:sink:
caps = video/mpeg, systemstream=(boolean)true, mpegversion=(int)2
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:sink:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:src:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/MpegVideoParse:mpegvideoparse0.GstPad:sink:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:sink:
caps = audio/mpeg, mpegversion=(int)1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = video/x-raw-yuv,
width=(int)640, height=(int)480, framerate=(fraction)5/1
/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
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:src:
caps = audio/mpeg, mpegversion=(int)1
/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
/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
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0:
max-size-bytes = 20240
/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
/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
ERROR: from element
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0:
Internal data stream error.
Additional debug info:
gstmpegdemux.c(2734): gst_flups_demux_loop ():
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:src0: caps = NULL
/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
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:src:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:sink:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:src:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:sink:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:src:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg2dec:mpeg2dec0.GstPad:sink:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/MpegVideoParse:mpegvideoparse0.GstPad:src:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/MpegVideoParse:mpegvideoparse0.GstPad:sink:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:src:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:sink:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:audio_c0:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:video_e0:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegPSDemux:mpegpsdemux0.GstPad:sink:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
caps = NULL
Freeing pipeline ...

Thanks!!!

On Sun, Feb 20, 2011 at 1:48 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:

> On Sun, 2011-02-20 at 13:37 -0600, Tom wrote:
>
> > gst-launch 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
> >
> > and then got an error:
> > ..
> > stream stopped, reason not-negotiated
> > ..
> > I don't know why.....
>
> This usually means there's a problem with caps somewhere.
>
> My first guess would be that your input video 1.MPG does not have a
> resolution of 640x480. If you want to scale the input video to this
> resolution, put a videoscale element between decodebin and the caps
> filter.
>
> (If that's not it, maybe you could provide the output of also passing -v
> to gst-launch.)
>
>  Cheers
>  -Tim
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110220/a4f00b1f/attachment.htm>


More information about the gstreamer-devel mailing list