Hi everybody, As Adam I'm trying to develop a Gstreamer-basead application to
receive and send H.264 video over the internet and i had some problems with packets being dropped too. I solved that with these two pipelines. Server: #!/bin/sh # # A simple RTP server # sends the output of videotestsrc as h263+ encoded RTP on port 5000, RTCP is sent on # port 5001. The destination is 127.0.0.1. # the video receiver RTCP reports are received on port 5005 # # .-------. .-------. .-------. .----------. .-------. # |vts | |h263enc| |h263pay| | rtpbin | |udpsink| RTP # | src->sink src->sink src->send_rtp send_rtp->sink | port=5000 # '-------' '-------' '-------' | | '-------' # | | # | | .-------. # | | |udpsink| RTCP # | send_rtcp->sink | port=5001 # .-------. | | '-------' sync=false # RTCP |udpsrc | | | async=false # port=5005 | src->recv_rtcp | # '-------' '----------' # # change this to send the RTP data and RTCP to another host DEST=127.0.0.1 # tuning parameters to make the sender send the streams out of sync. Can be used # ot test the client RTCP synchronisation. #VOFFSET=900000000 VOFFSET=0 AOFFSET=0 # H264 encode from the source #VELEM="videotestsrc is-live=1 pattern=1" VELEM="v4l2src device=/dev/video0" #VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1" VCAPS="ffmpegcolorspace" VSOURCE="$VELEM ! $VCAPS" #VENC="ffenc_h263p ! rtph263ppay" VENC=" timeoverlay ! x264enc ! rtph264pay " VRTPSINK="udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink" VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink" VRTCPSRC="udpsrc port=5005 name=vrtpsrc" PIPELINE="gstrtpbin name=rtpbin $VSOURCE ! $VENC ! rtpbin.send_rtp_sink_2 rtpbin.send_rtp_src_2 ! $VRTPSINK rtpbin.send_rtcp_src_2 ! $VRTCPSINK $VRTCPSRC ! rtpbin.recv_rtcp_sink_2" echo $PIPELINE gst-launch -v $PIPELINE Client: #!/bin/sh # # A simple RTP receiver # VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" DEST=127.0.0.1 LATENCY=100 gst-launch -v gstrtpbin name=rtpbin latency=$LATENCY \ udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0 \ rtpbin. ! rtph264depay ! h264parse ! ffdec_h264 ! autovideosink \ udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \ rtpbin.send_rtcp_src_0 ! udpsink host=$DEST port=5005 sync=false async=false Now the framerate is good but there are quite few delays between capture and exhibition. Could anybody help me? ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |