why gst-launch doesnot work in my Ubuntu?

Tim-Philipp Müller t.i.m at zen.co.uk
Sun Feb 20 11:48:21 PST 2011


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




More information about the gstreamer-devel mailing list