I would first test if at all my server is sending data.<br>For that just run <br>gst-launch udpsrc caps=&quot;application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998&quot; port=5000 ! fakesink -v<br>
<br>if it prints data logs at fakesink then you getting data, can you verify same ?<br><br>Regards<br>Kapil<br><br><div class="gmail_quote">On Sat, Jun 11, 2011 at 9:46 PM, Peter Xu <span dir="ltr">&lt;<a href="mailto:xzpeter@gmail.com">xzpeter@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi, all,<br>
<br>
I am trying to encode some raw data with h264, and sent via network in rtp. I found some example pipelines here:<br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-gstrtpbin.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-gstrtpbin.html</a><br>

<br>
I used this code to establish a server(nearly the same as mentioned in the doc above, just change v4l2src to videotestsrc):<br>
gst-launch gstrtpbin name=rtpbin \<br>
    videotestsrc ! ffmpegcolorspace ! ffenc_h263 ! rtph263ppay ! rtpbin.send_rtp_sink_0 \<br>
    rtpbin.send_rtp_src_0 ! udpsink port=5000                            \<br>
    rtpbin.send_rtcp_src_0 ! udpsink port=5001 sync=false async=false    \<br>
    udpsrc port=5005 ! rtpbin.recv_rtcp_sink_0                           \<br>
    audiotestsrc ! amrnbenc ! rtpamrpay ! rtpbin.send_rtp_sink_1                   \<br>
    rtpbin.send_rtp_src_1 ! udpsink port=5002                            \<br>
    rtpbin.send_rtcp_src_1 ! udpsink port=5003 sync=false async=false    \<br>
    udpsrc port=5007 ! rtpbin.recv_rtcp_sink_1<br>
<br>
and use this to run the client:<br>
gst-launch -v gstrtpbin name=rtpbin                                          \<br>
    udpsrc caps=&quot;application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998&quot; \<br>
            port=5000 ! rtpbin.recv_rtp_sink_0                                \<br>
        rtpbin. ! rtph263pdepay ! ffdec_h263 ! ximagesink                    \<br>
     udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0                               \<br>
     rtpbin.send_rtcp_src_0 ! udpsink port=5005 sync=false async=false        \<br>
    udpsrc caps=&quot;application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)AMR,encoding-params=(string)1,octet-align=(string)1&quot; \<br>
            port=5002 ! rtpbin.recv_rtp_sink_1                                \<br>
        rtpbin. ! rtpamrdepay ! amrnbdec ! alsasink                           \<br>
     udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1                               \<br>
     rtpbin.send_rtcp_src_1 ! udpsink port=5007 sync=false async=false<br>
<br>
however, by first running the server, then running the client, I can&#39;t see a xwindow pop up (I think I should see that, meanwhile some kind of sine wave should be played in my audio) nor the sine wave sound. what I got after running the client are:<br>

<br>
....<br>
New clock: GstSystemClock<br>
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:send_rtcp_src_1: caps = application/x-rtcp<br>
/GstPipeline:pipeline0/GstRtpBin:rtpbin/GstRtpSession:rtpsession1.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
/GstPipeline:pipeline0/GstUDPSink:udpsink1.GstPad:sink: caps = application/x-rtcp<br>
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5: caps = application/x-rtcp<br>
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp<br>
/GstPipeline:pipeline0/GstRtpBin:rtpbin/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtcp<br>
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: caps = application/x-rtcp<br>
<br>
Does anyone know what&#39;s the problem here?<br>
<br>
Peter<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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><br clear="all"><br>-- <br><a href="http://www.mediamagictechnologies.com">www.mediamagictechnologies.com</a> (Gstreamer, ffmpeg, Red5, Streaming)<br>twitter handle: @gst_kaps<br><a href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>