Need help getting simple rtp pipeline to work

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Need help getting simple rtp pipeline to work

Jon Dufresne
I am trying to experiment with gstreamer. I am particularly interested
in the rtp elements. I have tried to read quite a bit to get idea of
how to develop  and usewith gstreamer. So far I have mostly messed
around with the python bindings, gst-inspect, and gst-launch. Even
though I have only just started using this I can already see how
powerful a system with gstreamer's design can be.

I have been trying to set up a simple pipeline using rtp and simply
can not get it to work. I have been working on this for three days now
with no progress. I am running the following two pipelines in two
different terminals. I start the receiving pipeline first

receiving pipeline:
gst-launch -v udpsrc ! .recv_rtp_sink_0 gstrtpbin ! rtptheoradepay !
theoradec ! autovideosink

sending pipeline:
gst-launch -v videotestsrc ! theoraenc ! rtptheorapay !
.send_rtp_sink_0 gstrtpbin ! udpsink

Whenever I run this I receive the following error in the terminal
running the receiving pipeline:

ERROR: from element /pipeline0/udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/udpsrc0:
streaming task paused, reason not-negotiated (-4)

I'm not sure exactly what this means I have searched for what this
might mean, but I haven't been able to find any solutoins.

Any help as to what I am doing wrong?

Thanks,
Jon

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help getting simple rtp pipeline to work

ved kpl
Hi,

Which version r u using?.
The error states that the caps are not getting negotiated in ur
receiving pipeline,
one of the elements there doesnot support the incoming format.
I tried the same pipelines,. It didnt throw any errors, although
nothing got displayed
at the receving end.
Try using xvimagesink or some other sinks directly instead of autosink.
Also try  other formats like audio eg. mpeg audio mp3..(rtpmpadepay/pay)

Cheers
Ved

On Wed, May 21, 2008 at 4:34 AM, Jon Dufresne <[hidden email]> wrote:

> I am trying to experiment with gstreamer. I am particularly interested
> in the rtp elements. I have tried to read quite a bit to get idea of
> how to develop  and usewith gstreamer. So far I have mostly messed
> around with the python bindings, gst-inspect, and gst-launch. Even
> though I have only just started using this I can already see how
> powerful a system with gstreamer's design can be.
>
> I have been trying to set up a simple pipeline using rtp and simply
> can not get it to work. I have been working on this for three days now
> with no progress. I am running the following two pipelines in two
> different terminals. I start the receiving pipeline first
>
> receiving pipeline:
> gst-launch -v udpsrc ! .recv_rtp_sink_0 gstrtpbin ! rtptheoradepay !
> theoradec ! autovideosink
>
> sending pipeline:
> gst-launch -v videotestsrc ! theoraenc ! rtptheorapay !
> .send_rtp_sink_0 gstrtpbin ! udpsink
>
> Whenever I run this I receive the following error in the terminal
> running the receiving pipeline:
>
> ERROR: from element /pipeline0/udpsrc0: Internal data flow error.
> Additional debug info:
> gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/udpsrc0:
> streaming task paused, reason not-negotiated (-4)
>
> I'm not sure exactly what this means I have searched for what this
> might mean, but I haven't been able to find any solutoins.
>
> Any help as to what I am doing wrong?
>
> Thanks,
> Jon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help getting simple rtp pipeline to work

Wim Taymans
In reply to this post by Jon Dufresne
On Tue, 2008-05-20 at 19:04 -0400, Jon Dufresne wrote:

Hi,

You are not setting the caps on the receiver pipeline so the needed
configuration (codebooks for theora, in this case) and clock-rate are
not known to the receiver.

More info on how to deal with RTP can be found here:

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/gst/rtp/README?revision=1.13&view=markup

There are also a couple of example sender and receiver pipelines
together with SDP files to test:

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


Wim

> I am trying to experiment with gstreamer. I am particularly interested
> in the rtp elements. I have tried to read quite a bit to get idea of
> how to develop  and usewith gstreamer. So far I have mostly messed
> around with the python bindings, gst-inspect, and gst-launch. Even
> though I have only just started using this I can already see how
> powerful a system with gstreamer's design can be.
>
> I have been trying to set up a simple pipeline using rtp and simply
> can not get it to work. I have been working on this for three days now
> with no progress. I am running the following two pipelines in two
> different terminals. I start the receiving pipeline first
>
> receiving pipeline:
> gst-launch -v udpsrc ! .recv_rtp_sink_0 gstrtpbin ! rtptheoradepay !
> theoradec ! autovideosink
>
> sending pipeline:
> gst-launch -v videotestsrc ! theoraenc ! rtptheorapay !
> .send_rtp_sink_0 gstrtpbin ! udpsink
>
> Whenever I run this I receive the following error in the terminal
> running the receiving pipeline:
>
> ERROR: from element /pipeline0/udpsrc0: Internal data flow error.
> Additional debug info:
> gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/udpsrc0:
> streaming task paused, reason not-negotiated (-4)
>
> I'm not sure exactly what this means I have searched for what this
> might mean, but I haven't been able to find any solutoins.
>
> Any help as to what I am doing wrong?
>
> Thanks,
> Jon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help getting simple rtp pipeline to work

Manish Rana
In reply to this post by ved kpl
to get the data set a property on sink "sync=false"
this will help you getting the data


On Wed, May 21, 2008 at 12:40 PM, ved kpl <[hidden email]> wrote:
Hi,

Which version r u using?.
The error states that the caps are not getting negotiated in ur
receiving pipeline,
one of the elements there doesnot support the incoming format.
I tried the same pipelines,. It didnt throw any errors, although
nothing got displayed
at the receving end.
Try using xvimagesink or some other sinks directly instead of autosink.
Also try  other formats like audio eg. mpeg audio mp3..(rtpmpadepay/pay)

Cheers
Ved

On Wed, May 21, 2008 at 4:34 AM, Jon Dufresne <[hidden email]> wrote:
> I am trying to experiment with gstreamer. I am particularly interested
> in the rtp elements. I have tried to read quite a bit to get idea of
> how to develop  and usewith gstreamer. So far I have mostly messed
> around with the python bindings, gst-inspect, and gst-launch. Even
> though I have only just started using this I can already see how
> powerful a system with gstreamer's design can be.
>
> I have been trying to set up a simple pipeline using rtp and simply
> can not get it to work. I have been working on this for three days now
> with no progress. I am running the following two pipelines in two
> different terminals. I start the receiving pipeline first
>
> receiving pipeline:
> gst-launch -v udpsrc ! .recv_rtp_sink_0 gstrtpbin ! rtptheoradepay !
> theoradec ! autovideosink
>
> sending pipeline:
> gst-launch -v videotestsrc ! theoraenc ! rtptheorapay !
> .send_rtp_sink_0 gstrtpbin ! udpsink
>
> Whenever I run this I receive the following error in the terminal
> running the receiving pipeline:
>
> ERROR: from element /pipeline0/udpsrc0: Internal data flow error.
> Additional debug info:
> gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/udpsrc0:
> streaming task paused, reason not-negotiated (-4)
>
> I'm not sure exactly what this means I have searched for what this
> might mean, but I haven't been able to find any solutoins.
>
> Any help as to what I am doing wrong?
>
> Thanks,
> Jon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Manish Rana
Senior Software Engg.
Handset Technology Solution,
Sasken Comm. Tech.
Bangalore,India
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help getting simple rtp pipeline to work

Manish Rana
Hi All,

I am using following pipeline to play the video:

gst-launch -v gstrtpbin name=rtpbin audiotestsrc ! amrnbenc ! rtpamrpay ! rtpbin.send_rtp_sink_1 rtpbin.send_rtp_src_1 ! udpsink port=5002 rtpbin.send_rtcp_src_1 ! udpsink port=5003 sync=false async=false udpsrc port=5007 ! rtpbin.recv_rtcp_sink_1


on the receiver side i am receiving the RTP and RTCP packets perfectly.
My problem is when i try writinh the test application for the same, if only RTP data is sent, it works fine but if  RTCP data is also sent along with the RTP is there no data is transmitted, there is no data received on the receiver side.
In both the case the pots, IP and the receiver pipeline are same.

Please help me in finding the problem..

Thanks a ton in advance
Manish

On Wed, May 21, 2008 at 2:23 PM, Manish Rana <[hidden email]> wrote:
to get the data set a property on sink "sync=false"
this will help you getting the data


On Wed, May 21, 2008 at 12:40 PM, ved kpl <[hidden email]> wrote:
Hi,

Which version r u using?.
The error states that the caps are not getting negotiated in ur
receiving pipeline,
one of the elements there doesnot support the incoming format.
I tried the same pipelines,. It didnt throw any errors, although
nothing got displayed
at the receving end.
Try using xvimagesink or some other sinks directly instead of autosink.
Also try  other formats like audio eg. mpeg audio mp3..(rtpmpadepay/pay)

Cheers
Ved

On Wed, May 21, 2008 at 4:34 AM, Jon Dufresne <[hidden email]> wrote:
> I am trying to experiment with gstreamer. I am particularly interested
> in the rtp elements. I have tried to read quite a bit to get idea of
> how to develop  and usewith gstreamer. So far I have mostly messed
> around with the python bindings, gst-inspect, and gst-launch. Even
> though I have only just started using this I can already see how
> powerful a system with gstreamer's design can be.
>
> I have been trying to set up a simple pipeline using rtp and simply
> can not get it to work. I have been working on this for three days now
> with no progress. I am running the following two pipelines in two
> different terminals. I start the receiving pipeline first
>
> receiving pipeline:
> gst-launch -v udpsrc ! .recv_rtp_sink_0 gstrtpbin ! rtptheoradepay !
> theoradec ! autovideosink
>
> sending pipeline:
> gst-launch -v videotestsrc ! theoraenc ! rtptheorapay !
> .send_rtp_sink_0 gstrtpbin ! udpsink
>
> Whenever I run this I receive the following error in the terminal
> running the receiving pipeline:
>
> ERROR: from element /pipeline0/udpsrc0: Internal data flow error.
> Additional debug info:
> gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/udpsrc0:
> streaming task paused, reason not-negotiated (-4)
>
> I'm not sure exactly what this means I have searched for what this
> might mean, but I haven't been able to find any solutoins.
>
> Any help as to what I am doing wrong?
>
> Thanks,
> Jon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel