Forums

gst pipeline error"streaming task paused, reason not-negotiated (-4)"

  • hi,

    i test gstreamer pipeline of HOST PC in https://www.ridgerun.com/developer/wiki/index.php/LeopardBoard_365_GStreamer_Pipelines_-_SDK_2011Q2.

    i run

    gst-launch  udpsrc port=5000 ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\,aO48sA\=\=", payload=(int)96, ssrc=(uint)974675750, clock-base=(uint)4028785573, seqnum-base=(uint)25113' ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false

    the caps 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\,aO48sA\=\=", payload=(int)96, ssrc=(uint)974675750, clock-base=(uint)4028785573, seqnum-base=(uint)25113'  come from udpsink debug info of pipeline on Leopard board

    i get


    WARNING: erroneous pipeline: could not parse caps "application/x-rtp\ media=(string)video\ clock-rate=(int)90000\ encoding-name=(string)H264\ sprop-parameter-sets=(string)"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\,aO48sA\=\="\ payload=(int)96\ ssrc=(uint)974675750\ clock-base=(uint)4028785573\ seqnum-base=(uint)25113"

    and stop

    if i remove " ssrc=(uint)3223104127\ clock-base=(uint)1993617712\ seqnum-base=(uint)14942" or i change (unit) to (gunit), the pipeline can run ,but

    i get another error when i run leopard board pipeline and PC host pipelinw .the error is

    dsp@dsp-desktop:~$ gst-launch udpsrc port=5000 ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\,aO48sA\=\=", payload=(int)96, ssrc=(guint)974675750, clock-base=(guint)4028785573, seqnum-base=(guint)25113' ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\\,aO48sA\\=\\=\", payload=(int)96, ssrc=(guint)974675750, clock-base=(guint)4028785573, seqnum-base=(guint)25113
    /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264
    /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\\,aO48sA\\=\\=\", payload=(int)96, ssrc=(guint)974675750, clock-base=(guint)4028785573, seqnum-base=(guint)25113
    /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps = video/x-h264
    /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)25/1, format=(fourcc)I420, interlaced=(boolean)false
    ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data flow error.
    Additional debug info:
    gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
    streaming task paused, reason not-negotiated (-4)

    Execution ended after 310527079 ns.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps = NULL
    /GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps = NULL
    /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = NULL
    /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps = NULL
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL
    Setting pipeline to NULL ...
    Freeing pipeline ...

    and  PC host pipeline stop.

    what's wrong?Anyone can comment ?

    thanks for any light!

     

  • That webpage was updated, i just tested video streaming at:

    www.ridgerun.com/.../LeopardBoard_365_GStreamer_Pipelines_-_SDK_2011Q2

    Look for: H264 video streaming pipelines LeopardBoard DM365

    Carlos Aguero
    Embedded Software Engineer
    RidgeRun

  • hi,carlos

    thank you for your kind reply.

    i try in your new post in www.ridgerun.com/.../LeopardBoard_365_GStreamer_Pipelines_-_SDK_2011Q2

    i get same error

    in LB365 i run

    gst-launch v4l2src always-copy=FALSE chain-ipipe=true ! video/x-raw-yuv,form

    at=\(fourcc\)NV12, width=1280, height=720, framerate=\(fraction\)23/1 ! queue !

    dmaienc_h264 encodingpreset=2 ratecontrol=2 intraframeinterval=23 idrinterval=46

    targetbitrate=3000000 ! rtph264pay !udpsink port=2000 host=192.168.1.200 sync=f

    alse enable-last-buffer=false&                                                  

    / # Setting pipeline to PAUSED ...                                              

    davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124                        

    vpfe-capture vpfe-capture: IPIPE Chained                                        

    vpfe-capture vpfe-capture: Resizer present                                      

    vpfe-capture vpfe-capture: standard not supported                              

    Pipeline is live and does not need PREROLL ...                                  

    WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to set.

    Additional debug info:                                                          

    ../../../src/sys/v4l2/v4l2_calls.c(743): gst_v4l2_set_norm (): /GstPipeline:pip:

    system error: Invalid argument                                                  

    WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video input d.

    Additional debug info:                                                          

    ../../../src/sys/v4l2/v4l2src_calls.c(342): gst_v4l2src_set_capture (): /GstPip:

    system error: Invalid argument                                                  

    Setting pipeline to PLAYING ...                                                

    New clock: GstSystemClock

    in Ubuntu10.04 ,i run

    desktop:~$ gst-launch udpsrc port=2000 ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)640028, sprop-parameter-sets=(string)"J2QAKK2IDkOYIOEMKQpEByHMEHCGFIUiA5DmCDhDCkKQwEIYwhxmMhCGAhDGEOMxkIQwEIYwhxmMhCICEZjOI8KfEfiP4j8R8R4ziMREQoEIjEcR4j5PxH8n5PiPEcRkiLQCgC3I\,KO48sA\=\=", payload=(int)96, ssrc=(guint)1646914791, clock-base=(guint)4182448954, seqnum-base=(guint)19314' ! rtph264depay ! queue ! ffdec_h264 ! xvimagesink sync=false

    Setting pipeline to PAUSED ...

    Pipeline is live and does not need PREROLL ...

    Setting pipeline to PLAYING ...

    New clock: GstSystemClock

    ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data flow error.

    Additional debug info:

    gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:

    streaming task paused, reason not-negotiated (-4)

    Execution ended after 482072082 ns.

    Setting pipeline to PAUSED ...

    Setting pipeline to READY ...

    Setting pipeline to NULL ...

    Freeing pipeline ...

    what 's wrong in my Ubuntu10.04?

  • Hi,

    I used the same pipes and no problem at all, it appears a problem in your pc. could you try the same pipe but instead of using xvimagesink, use ximagesink?

    Carlos Aguero
    Embedded Software Engineer
    RidgeRun

  • hi

    thank you for your light.i have tried ximagesink,but same error.

    i have same idea about the error with you.but i don't know where is the error in my pc.

  • I was having the same problem I just found this thread

    gstreamer-devel.966125.n4.nabble.com/rtp-transmit-occur-an-error-of-gstreamer-td3033142.html

    which suggested putting ffmpegcolorspace ! videoscale between the decoder and ximagesink and low and behold things worked.

    I still don't understand why and I'd love an explanation.