[gst-devel] Query:RTP BIN element

Wim Taymans wim.taymans at gmail.com
Tue Oct 7 11:37:43 CEST 2008


On Tue, 2008-10-07 at 14:51 +0530, ajitjohn wrote:

Please keep the list in CC so that other people can look in the archives
when they encounter the same question.

> So what i understand now is that i have to send the sdp information  while
> streaming through gstreamer.

Yes, you make an SDP with the media type and ports and other config data
required by the respective RFCs. Then you start the gstreamer streaming
pipeline and then you launch vlc with the sdp file. Like so:

Run this pipeline:

 gst-launch gstrtpbin name=rtpbin videotestsrc is-live=1 !
   video/x-raw-yuv,width=352,height=288,framerate=15/1 ! ffenc_h263p !
   rtph263ppay ! rtpbin.send_rtp_sink_2 rtpbin.send_rtp_src_2 ! udpsink
   port=5000 host=127.0.0.1 name=vrtpsink
   rtpbin.send_rtcp_src_2 ! udpsink port=5001 host=127.0.0.1 sync=false
   async=false name=vrtcpsink udpsrc port=5005 name=vrtpsrc !
   rtpbin.recv_rtcp_sink_2

Then make an SDP file like this (name it client.sdp or so):

 v=0
 o=- 1188340656180883 1 IN IP4 127.0.0.1
 s=Session streamed by GStreamer
 i=server.sh
 t=0 0
 a=tool:GStreamer
 a=type:broadcast
 m=video 5000 RTP/AVP 96
 c=IN IP4 127.0.0.1
 a=rtpmap:96 H263-1998/90000

Then launch vlc like:

  vlc client.sdp

And watch the videotestsrc streamed over udp.

More examples are here:

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/examples/rtp/

Wim


> 
> So now my doubt is how to send this sdp information , i mean how to
> incorporate this sdp information in the pipeline , i hope i am not
> irritating u..
> 
> thanks in advance ...
> 
> ajit
> 
> -----Original Message-----
> From: Wim Taymans [mailto:wim.taymans at gmail.com]
> Sent: Tuesday, October 07, 2008 2:20 PM
> To: ajitjohn at tataelxsi.co.in
> Subject: RE: [gst-devel] Query:RTP BIN element
> 
> 
> On Tue, 2008-10-07 at 14:22 +0530, ajitjohn wrote:
> > I thought vlc wil directly play the file as the port and the ip were
> > specified while streaming through gstreamer.
> >
> > Is this the case with all elementary streams or h.264 in particular.
> 
> That sounds very unlikely. How is vlc going to figure out the payload
> type, typefinding RTP packets sounds like a bad idea. I would suggest to
> make an SDP and use that in vlc, works fine for me.
> 
> Wim
> 
> >
> > ~ajit
> >
> > -----Original Message-----
> > From: Wim Taymans [mailto:wim.taymans at gmail.com]
> > Sent: Tuesday, October 07, 2008 1:58 PM
> > To: gstreamer-devel at lists.sourceforge.net
> > Cc: ajitjohn at tataelxsi.co.in
> > Subject: RE: [gst-devel] Query:RTP BIN element
> >
> >
> > On Tue, 2008-10-07 at 11:25 +0530, ajitjohn wrote:
> > > I wasnot using any sdp as config for streaming to vlc player.Do i need
> to
> > > send a sdp config file ?
> > >
> >
> > So how do you tell vlc to start playing the stream?
> >
> > Wim
> >
> > > ~ajit
> > >
> > > -----Original Message-----
> > > From: Wim Taymans [mailto:wim.taymans at gmail.com]
> > > Sent: Monday, October 06, 2008 9:49 PM
> > > To: ajitjohn at tataelxsi.co.in
> > > Subject: RE: [gst-devel] Query:RTP BIN element
> > >
> > >
> > > On Mon, 2008-10-06 at 21:46 +0530, ajitjohn wrote:
> > > > I am using vlc player at the receiver side.So how will it make the
> > > > difference if the pipeline seems to work.
> > >
> > > I assume you are using an SDP as the config for vlc then. Can you paste
> > > the SDP here?
> > >
> > > Wim
> > >
> > > >
> > > > thanks in advance .
> > > >
> > > > regards,
> > > >
> > > > -----Original Message-----
> > > > From: Wim Taymans [mailto:wim.taymans at gmail.com]
> > > > Sent: Monday, October 06, 2008 9:10 PM
> > > > To: ajitjohn at tataelxsi.co.in
> > > > Subject: RE: [gst-devel] Query:RTP BIN element
> > > >
> > > >
> > > > On Mon, 2008-10-06 at 20:51 +0530, ajitjohn wrote:
> > > > > yeah it starts with 00 00 00 01 start code .I dont have much
> > information
> > > > > about sps/pps information. Can u make me clear regarding this so
> that
> > i
> > > > can
> > > > > investigate  further .
> > > >
> > > > They contain the Sequence and Picture parameter sets you will need to
> > > > initialize the decoder. I believe the h264 payloader will also look
> for
> > > > them.
> > > >
> > > > >
> > > > > Anywayz i wanted to get clear bout how do i stream h264 video file
> > using
> > > > rtp
> > > > > bin.
> > > >
> > > > The pipeline you posted seems fine provided the file you stream can be
> > > > parsed by h264parse. What are you using to receive this stream?
> > > >
> > > > Wim
> > > >
> > > > >
> > > > > thanks in advance.
> > > > >
> > > > > Regards,
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Wim Taymans [mailto:wim.taymans at gmail.com]
> > > > > Sent: Monday, October 06, 2008 8:38 PM
> > > > > To: ajitjohn at tataelxsi.co.in
> > > > > Subject: RE: [gst-devel] Query:RTP BIN element
> > > > >
> > > > >
> > > > > On Mon, 2008-10-06 at 20:37 +0530, ajitjohn wrote:
> > > > > >
> > > > > >
> > > > > > 1) Path of the file to be streamed
> /root/Desktop/test24fpsaudvid.264
> > > > > > 2) test24fpsaudvid.264 is h264 encoded file.
> > > > >
> > > > > What does 'h264 encoded file' mean? does it contain 00 00 01 start
> > codes
> > > > > and SPS/PPS in the beginning or is it the quicktime AVC variant?
> > > > >
> > > > > Wim
> > > > >
> > > > >
> > > > > >
> > > > > > thanks in advance.
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Wim Taymans [mailto:wim.taymans at gmail.com]
> > > > > > Sent: Monday, October 06, 2008 8:25 PM
> > > > > > To: ajitjohn at tataelxsi.co.in; Discussion of the development of
> > > GStreamer
> > > > > > Subject: Re: [gst-devel] Query:RTP BIN element
> > > > > >
> > > > > >
> > > > > > On Mon, 2008-10-06 at 20:14 +0530, ajitjohn wrote:
> > > > > > > Hi all,
> > > > > > >
> > > > > > > 	I am using the following pipeline for streaming a h.264 file
> > using
> > > > > rtpbin
> > > > > > > element
> > > > > > >
> > > > > > >
> > > > > > > gst-launch -v gstrtpbin name=rtpbin  filesrc
> > > > > > > location=/root/Desktop/test24fpsaudvid.264 ! queue ! h264parse !
> > > > > > rtph264pay
> > > > > > > ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink
> > > > host=10.60.3.64
> > > > > > > port=5000 rtpbin.send_rtcp_src_0 ! udpsink host=10.60.3.63
> > port=5001
> > > > > > > sync=false async=false udpsrc port=5005 !
> rtpbin.recv_rtcp_sink_0
> > > > > >
> > > > > > What's 'test24fpsaudvid.264'?
> > > > > >
> > > > > > Wim
> > > > > > >
> > > > > > >
> > > > > > > 	But i am not able to stream the file .I am not getting any
> errors
> > > > > though
> > > > > > > but at the receiver side i am not able to receive 	anything.
> > > > > > >
> > > > > > > 	thanks in advance.
> > > > > > >
> > > > > > >
> > > > > > > The information contained in this electronic message and any
> > > > attachments
> > > > > > to this message are intended for the exclusive use of the
> > addressee(s)
> > > > and
> > > > > > may contain proprietary, confidential or privileged information.
> If
> > > you
> > > > > are
> > > > > > not the intended recipient, you should not disseminate, distribute
> > or
> > > > copy
> > > > > > this e-mail. Please notify the sender immediately and destroy all
> > > copies
> > > > > of
> > > > > > this message and any attachments contained in it.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> > -------------------------------------------------------------------------
> > > > > > > This SF.Net email is sponsored by the Moblin Your Move
> Developer's
> > > > > > challenge
> > > > > > > Build the coolest Linux based applications with Moblin SDK & win
> > > great
> > > > > > prizes
> > > > > > > Grand prize is a trip for two to an Open Source event anywhere
> in
> > > the
> > > > > > world
> > > > > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > > > > > > _______________________________________________
> > > > > > > gstreamer-devel mailing list
> > > > > > > gstreamer-devel at lists.sourceforge.net
> > > > > > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> > > > > >
> > > > > >
> > > > > > The information contained in this electronic message and any
> > > attachments
> > > > > to this message are intended for the exclusive use of the
> addressee(s)
> > > and
> > > > > may contain proprietary, confidential or privileged information. If
> > you
> > > > are
> > > > > not the intended recipient, you should not disseminate, distribute
> or
> > > copy
> > > > > this e-mail. Please notify the sender immediately and destroy all
> > copies
> > > > of
> > > > > this message and any attachments contained in it.
> > > > >
> > > > >
> > > > > The information contained in this electronic message and any
> > attachments
> > > > to this message are intended for the exclusive use of the addressee(s)
> > and
> > > > may contain proprietary, confidential or privileged information. If
> you
> > > are
> > > > not the intended recipient, you should not disseminate, distribute or
> > copy
> > > > this e-mail. Please notify the sender immediately and destroy all
> copies
> > > of
> > > > this message and any attachments contained in it.
> > > >
> > > >
> > > > The information contained in this electronic message and any
> attachments
> > > to this message are intended for the exclusive use of the addressee(s)
> and
> > > may contain proprietary, confidential or privileged information. If you
> > are
> > > not the intended recipient, you should not disseminate, distribute or
> copy
> > > this e-mail. Please notify the sender immediately and destroy all copies
> > of
> > > this message and any attachments contained in it.
> > >
> > >
> > > The information contained in this electronic message and any attachments
> > to this message are intended for the exclusive use of the addressee(s) and
> > may contain proprietary, confidential or privileged information. If you
> are
> > not the intended recipient, you should not disseminate, distribute or copy
> > this e-mail. Please notify the sender immediately and destroy all copies
> of
> > this message and any attachments contained in it.
> >
> >
> > The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments contained in it.
> 
> 
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.





More information about the gstreamer-devel mailing list