Can't get rtpbin to work AT ALL

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

Can't get rtpbin to work AT ALL

Stirling Westrup
I'm working on a design for a video system based on rtp. The plan is to have an rtp server with database of videos. It will support an .an rtsp connection that one can use to request videos to play, and clients to play them on.

All of the chosen clients need to play the exact same video in as close synchronization as we can manage.

From my reading it seems like rtpbin should form part of the solution, but I can't get it to work. So far every single example of an rtpbin use that I've been able to find, in the documentation, or in help forums, fails to run. The best that I've been able to achieve is to simply have two pipelines running, that fail to pass any data between them.

Could someone please give me a pair of pipelines I can start with gst-launch to pass some sort of video data from one pipeline to the next on the same machine, and using rtpbin?

Or, if for some reason that isn't possible, could someone explain WHY its not possible, and what extra functionality is needed?


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get rtpbin to work AT ALL

Sebastian Dröge-3
On Tue, 2017-07-11 at 16:24 -0400, Stirling Westrup wrote:

> I'm working on a design for a video system based on rtp. The plan is
> to have an rtp server with database of videos. It will support an .an
> rtsp connection that one can use to request videos to play, and
> clients to play them on.
>
> All of the chosen clients need to play the exact same video in as
> close synchronization as we can manage.
>
> From my reading it seems like rtpbin should form part of the
> solution, but I can't get it to work. So far every single example of
> an rtpbin use that I've been able to find, in the documentation, or
> in help forums, fails to run. The best that I've been able to achieve
> is to simply have two pipelines running, that fail to pass any data
> between them.
>
> Could someone please give me a pair of pipelines I can start with
> gst-launch to pass some sort of video data from one pipeline to the
> next on the same machine, and using rtpbin?
>
> Or, if for some reason that isn't possible, could someone explain WHY
> its not possible, and what extra functionality is needed?
Did you try the examples at
  https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp

For example client-PCMA.sh and server-alsasrc-PCMA.sh are about
the simplest you can do with rtpbin while including RTCP.


How does it not work for you, can you check with wireshark if packets
are being sent and where, and with netstat if the applications are
listening on the right IPs/ports?
What could happen for example is that udpsink is sending to ::1 (IPv6),
while udpsrc is listening on 127.0.0.1 (IPv4) or the other way around.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get rtpbin to work AT ALL

Stirling Westrup


On Wed, Jul 12, 2017 at 1:51 AM, Sebastian Dröge <[hidden email]> wrote:
On Tue, 2017-07-11 at 16:24 -0400, Stirling Westrup wrote:
> I'm working on a design for a video system based on rtp. The plan is
> to have an rtp server with database of videos. It will support an .an
> rtsp connection that one can use to request videos to play, and
> clients to play them on.
>
> All of the chosen clients need to play the exact same video in as
> close synchronization as we can manage.
>
> From my reading it seems like rtpbin should form part of the
> solution, but I can't get it to work. So far every single example of
> an rtpbin use that I've been able to find, in the documentation, or
> in help forums, fails to run. The best that I've been able to achieve
> is to simply have two pipelines running, that fail to pass any data
> between them.
>
> Could someone please give me a pair of pipelines I can start with
> gst-launch to pass some sort of video data from one pipeline to the
> next on the same machine, and using rtpbin?
>
> Or, if for some reason that isn't possible, could someone explain WHY
> its not possible, and what extra functionality is needed?

Did you try the examples at
  https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp

For example client-PCMA.sh and server-alsasrc-PCMA.sh are about
the simplest you can do with rtpbin while including RTCP.

Okay, I just tried that one, and it worked. 

Today I was trying out gst-rtsp-server/examples/test-netclock and although I could get it to work, test-netclock-client would die (after emitting a large number of warnings) with:

 (test-netclock-client:9236): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSrc:udpsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(2939): gst_base_src_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSrc:udpsrc0:
streaming stopped, reason not-negotiated (-4)


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get rtpbin to work AT ALL

Sebastian Dröge-3
On Wed, 2017-07-12 at 15:19 -0400, Stirling Westrup wrote:

>
>
> On Wed, Jul 12, 2017 at 1:51 AM, Sebastian Dröge <[hidden email]> wrote:
> > On Tue, 2017-07-11 at 16:24 -0400, Stirling Westrup wrote:
> > > I'm working on a design for a video system based on rtp. The plan is
> > > to have an rtp server with database of videos. It will support an .an
> > > rtsp connection that one can use to request videos to play, and
> > > clients to play them on.
> > >
> > > All of the chosen clients need to play the exact same video in as
> > > close synchronization as we can manage.
> > >
> > > From my reading it seems like rtpbin should form part of the
> > > solution, but I can't get it to work. So far every single example of
> > > an rtpbin use that I've been able to find, in the documentation, or
> > > in help forums, fails to run. The best that I've been able to achieve
> > > is to simply have two pipelines running, that fail to pass any data
> > > between them.
> > >
> > > Could someone please give me a pair of pipelines I can start with
> > > gst-launch to pass some sort of video data from one pipeline to the
> > > next on the same machine, and using rtpbin?
> > >
> > > Or, if for some reason that isn't possible, could someone explain WHY
> > > its not possible, and what extra functionality is needed?
> >
> > Did you try the examples at
> >   https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp
> >
> > For example client-PCMA.sh and server-alsasrc-PCMA.sh are about
> > the simplest you can do with rtpbin while including RTCP.
>
> Okay, I just tried that one, and it worked.  
>
> Today I was trying out gst-rtsp-server/examples/test-netclock and although I could get it to work, test-netclock-client would die (after emitting a large number of warnings) with:
>
>  (test-netclock-client:9236): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed
> ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSrc:udpsrc0: Internal data stream error.
> Additional debug info:
> gstbasesrc.c(2939): gst_base_src_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSrc:udpsrc0:
> streaming stopped, reason not-negotiated (-4)
Please file a bug about that, thanks!

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fwd: Can't get rtpbin to work AT ALL

Stirling Westrup

---------- Forwarded message ----------
From: Sebastian Dröge <[hidden email]>
Date: Fri, Jul 14, 2017 at 2:36 AM
Subject: Re: Can't get rtpbin to work AT ALL
To: [hidden email]


On Thu, 2017-07-13 at 13:40 -0400, Stirling Westrup wrote:
> Digging deeper, it seems that the bug is being caused by an element
> from gst-plugins-cogl. Seeing as that isn't part of the standard
> distribution, I uninstalled it, and the examples now work as
> intended.

Thanks for letting me know, but please also reply that to the list in
case someone else runs into the same problem in the future :)

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com



--

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (1K) Download Attachment
Loading...