[gst-devel] rtp streaming

Zoltan Seress gatesofdarkness at gmail.com
Wed Jun 25 07:38:58 CEST 2008


Hi!

I have a little problem.

I wanted to send and receive raw video data on the same PC via rtp.  But I
couldn't do that properly. It froze after getting the first frame.
Then I tried to do this via tcp and searching for the problem I found this
solution:

sender:
1, videotestsrc
gst-launch videotestsrc pattern=snow do-timestamp=true is-live=true ! gdppay
! queue ! tcpserversink port=1234 host=localhost
2, or webcam
gst-launch v4lsrc device=/dev/video0 ! gdppay ! queue ! tcpserversink
port=1234 host=localhost

receiver:
gst-launch -v tcpclientsrc port=1234 host=localhost ! gdpdepay !  queue !
ffmpegcolorspace ! xvimagesink

This works well. But when I tried to do the rtp the way like that...

sender:
gst-launch -v gstrtpbin name=rtpbin videotestsrc pattern=snow ! ffenc_h263p
! rtph263ppay ! queue ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 !
udpsink host=localhost port=5000 rtpbin.send_rtcp_src_0 ! udpsink port=5001
sync=false async=false udpsrc port=5005 ! rtpbin.recv_rtcp_sink_0

receiver:
gst-launch -v gstrtpbin name=rtpbin udpsrc
caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998"
port=5000 ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph263pdepay ! ffdec_h263 !
queue ! xvimagesink udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0
rtpbin.send_rtcp_src_0 ! udpsink port=5005 sync=false async=false

... it still didn't work.

Any help? Thx in advance.

Zoli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080625/7cc521ed/attachment.htm>


More information about the gstreamer-devel mailing list