Hi
I have a modified version of the test-video.c in wich i implanted manually four instances of media_factory in the same program to the server and it works perfectly. I can connect with every streamed video. Now i want to have various instances of my program (LaunchStream.cpp) each one with one media_factory diferent for each of them. The first works ok but when i run the second instance it gives the "failed to attach the server" error. I tried changing the port for each of them but it crashes in the same way. I tried also to create diferente programs for each ot them (LaunchStream2.cpp, LaunchStream3.cpp, ...) but they remains failing in the same way and i dont´t found any information about it. Isn't it possible to have multiple rtsp-servers running at the same time? |
On Fri, 2016-11-04 at 06:43 -0700, kroketor wrote:
> Hi > I have a modified version of the test-video.c in wich i implanted > manually > four instances of media_factory in the same program to the server and > it > works perfectly. I can connect with every streamed video. > Now i want to have various instances of my program (LaunchStream.cpp) > each > one with one media_factory diferent for each of them. The first works > ok but > when i run the second instance it gives the "failed to attach the > server" > error. I tried changing the port for each of them but it crashes in > the same > way. I tried also to create diferente programs for each ot them > (LaunchStream2.cpp, LaunchStream3.cpp, ...) but they remains failing > in the > same way and i dont´t found any information about it. > > Isn't it possible to have multiple rtsp-servers running at the same > time? provide a testcase to reproduce the behaviour you see. -- 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 |
Thank for your time Sebastian.
The program is attached to the message. When i run in two different terminals form the same server whith differents ports, only the first does his work: First run: root@guardian:/home/guardian# ./LaunchTest XXX.XXX.XXX.XX rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov coelho 8554 Streaming rtspsrc location=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov ! decodebin ! video/x-raw, format=I420 ! x264enc ! rtph264pay name=pay0 pt=96 stream ready at rtsp://XXX.XXX.XXX.XX:8554/coelho Active sessions: 0 Timeout: 1 Active sessions: 0 Timeout: 2 Active sessions: 0 Timeout: 3 Active sessions: 0 Timeout: 4 ............. Second run: root@guardian:/home/guardian# ./LaunchTest XXX.XXX.XXX.XX rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov coelho 8555 Streaming rtspsrc location=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov ! decodebin ! video/x-raw, format=I420 ! x264enc ! rtph264pay name=pay0 pt=96 failed to attach the server root@guardian:/home/guardian# I,m working on jessie Debian and all the parts of gstreamer are at 1.9.90 version Please, let my know if you need something more or different form this. LaunchTest.cpp |
>
> I,m working on jessie Debian and all the parts of gstreamer are at 1.9.90 > version > Please, let my know if you need something more or different form this. > LaunchTest.cpp > <http://gstreamer-devel.966125.n4.nabble.com/file/n4680468/LaunchTest.cpp> > > Your program needs just one change. On line 87, you have // gst_rtsp_server_set_service(server, "8555"); Uncomment it and change it to gst_rtsp_server_set_service(server, porta); Regards Mandar Joshi _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |