Sending streams to gstrtspserver with VLC

Giacomo D omagico.olo at gmail.com
Wed Nov 18 08:09:05 PST 2015


Hi,
I'm trying to send a video stream with VLC from my sending side. I am able
to stream a file with RTSP protocol in VLC. 
On the receiving side I have gstrtspserver which is listening on a
determinate port. Is it possible to set an event on gstrtspserver to advise
me when a stream arrives on that determinate port? So, I can show my stream
or save it on the receiving side... If yes, where can I find an example of
it?

I found something like this but nothing happens:


    def __init__(self):
        GObject.threads_init()
        Gst.init(None)
   
        loop = GObject.MainLoop()
        server = GstRtspServer.RTSPServer()
        server.set_address('127.0.0.1')
        server.set_service('8554')
        mounts = server.get_mount_points()
        factory = GstRtspServer.RTSPMediaFactory()
        server.connect("client-connected",self.new_client_handler)
        factory.set_transport_mode = GstRtspServer.RTSPTransportMode.RECORD
        server.attach(None)
        loop.run()


    #  new_client_handler
    #  Called by rtsp server on a new client connection
    def new_client_handler(self,client,si):
        pipelinelaunch=Gst.parse_launch("playbin
uri=rtsp://127.0.0.1:8554/mystream")
        print("Here I could do something...")


Thanks for your help,
G.




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Sending-streams-to-gstrtspserver-with-VLC-tp4674556.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list