why gst-launch doesnot work in my Ubuntu?

Tom fb8fb8 at gmail.com
Sun Feb 20 14:41:17 PST 2011


This one works good without changing the framerate:
gst-launch filesrc "location=1.MPG" ! decodebin ! video/x-raw-yuv,
width=640,height=480,framerate=25/1 ! ffmpegcolorspace ! jpegenc !
multipartmux ! tcpserversink host=192.168.2.1 port=5006

But I want to change the framerate so I added "!videoscale!" between
decodebin and cap (please notice that I changed framerate to 15):
gst-launch filesrc "location=1.MPG" ! decodebin ! videoscale !
video/x-raw-yuv, width=640,height=480,framerate=15/1 ! ffmpegcolorspace !
jpegenc ! multipartmux ! tcpserversink host=192.168.2.1 port=5006

But this one does not work.The error is:
(gst-launch-0.10:11600): 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:queue1.GstPad:sink:
caps = audio/mpeg, mpegversion=(int)1
/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:src:
caps = audio/mpeg, mpegversion=(int)1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:sink:
caps = audio/mpeg, mpegversion=(int)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/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
/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
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/FluMp3Dec:flump3dec0.GstPad:sink:
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.GstGhostPad:src1: caps =
audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16,
depth=(int)16, rate=(int)44100, channels=(int)2
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/FluMp3Dec:flump3dec0.GstPad:src:
caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true,
width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)2
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:src1: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:src0: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/FluMp3Dec:flump3dec0.GstPad:src:
caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/FluMp3Dec:flump3dec0.GstPad:sink:
caps = NULL
/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

I also tried:
gst-launch -v filesrc location=1.MPG ! decodebin ! videoscale !
video/x-raw-yuv, width=640,height=480,framerate=15/1 ! ffmpegcolorspace !
xvimagesink !
But still not working.




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

> Hi,
>
> > 1.MPG is 640X480, and framerate is 25.
>
> > > gst-launch filesrc "location=1.MPG" ! decodebin ! video/x-raw-yuv,
> > >     width=640,height=480,framerate=5/1 ! ...
>
> There you go then. The framerate doesn't match the one in your
> capsfilter. Add a videorate element between decodebin and your
> capsfilter.
>
> 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/541449a2/attachment.html>


More information about the gstreamer-devel mailing list