[gst-devel] Query:RTP BIN element

ajitjohn ajitjohn at tataelxsi.co.in
Tue Oct 7 12:41:15 CEST 2008


I am running the following pipeline at the gstreamer end

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


i have made the necessary modifications in the sdp file and have located the
sdp file  based on ur response and then i used the above mentioned pipeline
to stream it to the vlc player and i am getting the following errors at the
vlc players end.

ffmpeg error: av_find_stream_info failed
ps error: cannot peek
main error: no suitable demux module for `udp/://@:5000'
ts error: cannot peek


thanks in advance
ajit
-----Original Message-----
From: Wim Taymans [mailto:wim.taymans at gmail.com]
Sent: Tuesday, October 07, 2008 3:21 PM
To: ajitjohn at tataelxsi.co.in
Cc: gstreamer-devel at lists.sourceforge.net
Subject: RE: [gst-devel] Query:RTP BIN element


On Tue, 2008-10-07 at 15:19 +0530, ajitjohn wrote:
> But my vlc player is on windows so how can i launch vlc like vlc
client.sdp

Use notepad to edit the SDP file, save the file in the Desktop folder as
client.sdp.

In vlc, move the mouse to the file menu, click 'open file', click browse
and locate the client.sdp file in the Desktop folder, click ok.

Something like that, I think

Wim

>
> thanks in advance
>
> ajit
>
> -----Original Message-----
> From: Wim Taymans [mailto:wim.taymans at gmail.com]
> Sent: Tuesday, October 07, 2008 3:08 PM
> To: ajitjohn at tataelxsi.co.in
> Cc: gstreamer-devel at lists.sourceforge.net
> Subject: RE: [gst-devel] Query:RTP BIN element
>
>
> 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.
>
>
> 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