RTSP streaming with GStreamer

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

RTSP streaming with GStreamer

hemant-2

Hi folks,

 

I am new to GStreamer.    I wanted to see if such a test is possible with GStreamer?  In one xterm I initiate a RTSP server.  From another xterm I launch a RTSP client to initiate a RTSP connection to the RSTP server URL.  Both xterms are running on one Linux machine.  I have a short test.264 file to serve.    I am not ready to test video streaming yet – I just want to send some data packets between client and server.  

 

If anyone can please point me to a URL where documentation exists for such a test, please let me know.   I could actually do such a test with Live555.   Once I can perform such a test with IPv4,  I will test IPv6.   Before today, I was not subscribed to this mailer and thus did not get a chance to thank the gentleman who replied to my IPv6 and GStreamer question recently – thanks.

 

Thanks,

 

Hemant


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

Re: RTSP streaming with GStreamer

Sebastian Dröge-3
On Tue, 2016-10-18 at 20:47 -0400, [hidden email] wrote:

> Hi folks,
>  
> I am new to GStreamer.    I wanted to see if such a test is possible
> with GStreamer?  In one xterm I initiate a RTSP server.  From another
> xterm I launch a RTSP client to initiate a RTSP connection to the
> RSTP server URL.  Both xterms are running on one Linux machine.  I
> have a short test.264 file to serve.    I am not ready to test video
> streaming yet – I just want to send some data packets between client
> and server.  
>  
> If anyone can please point me to a URL where documentation exists for
> such a test, please let me know.
Check the examples in gst-rtsp-server/examples. You can do e.g.

  ./test-launch "( filesrc location=test.264 ! h264parse ! rtph264pay name=pay0 pt=96 )"

for starting an example server, and then use

  gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/test

to play it. Note that this listens on all IPs of your machine by
default, so you can as well use a public IPv4 or IPv6 address.


Also keep in mind that test-launch is an example. You want to integrate
that in one way or another into your application.

--
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 (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: RTSP streaming with GStreamer

hemant-2
Sebastian,

Thanks much!  

It was a while back that I actually downloaded the source code (gstreamer-1.9.1), built it, and installed it on my Linux machine.    However, I do not see gst-rtsp-server nor gst-launch-1.0 in any of my build directories or other paths on Linux.   Which other modules do I download so that I get gst-rtsp-server and gst-launch-1.0?  I would prefer to download the source, build it, and get gst-rtsp-server and gst-launch-1.0.  

Thanks,

Hemant


-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Sebastian Dröge
Sent: Wednesday, October 19, 2016 2:08 AM
To: Discussion of the development of and with GStreamer <[hidden email]>
Subject: Re: RTSP streaming with GStreamer


Check the examples in gst-rtsp-server/examples. You can do e.g.

  ./test-launch "( filesrc location=test.264 ! h264parse ! rtph264pay name=pay0 pt=96 )"

for starting an example server, and then use

  gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/test

to play it. Note that this listens on all IPs of your machine by default, so you can as well use a public IPv4 or IPv6 address.


Also keep in mind that test-launch is an example. You want to integrate that in one way or another into your application.


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

Re: RTSP streaming with GStreamer

Sebastian Dröge-3
On Wed, 2016-10-19 at 06:17 -0400, [hidden email] wrote:

> Sebastian,
>
> Thanks much!  
>
> It was a while back that I actually downloaded the source code
> (gstreamer-1.9.1), built it, and installed it on my Linux
> machine.    However, I do not see gst-rtsp-server nor gst-launch-1.0
> in any of my build directories or other paths on Linux.   Which other
> modules do I download so that I get gst-rtsp-server and gst-launch-
> 1.0?  I would prefer to download the source, build it, and get gst-
> rtsp-server and gst-launch-1.0.  
You should use 1.9.90 at this point at least.


Additional to GStreamer core, you also need at least gst-plugins-base
and gst-plugins-good, and gst-rtsp-server. Other modules depend on what
kind of codecs (or other plugins) you plan to use in your pipelines.

--
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 (949 bytes) Download Attachment