Hello all,
Has anybody been successful in getting the gst rtsp server to build in Windows? I am currently working on converting it myself, but I just wanted to make sure there was not a working version already available out there. Having the RTSP server on Windows would be very helpful for forwarding a stream through a streaming media server like WOWZA. Thank you, William _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On 07/27/11 17:08, William Metcalf wrote:
> Hello all, > > Has anybody been successful in getting the gst rtsp server to build in > Windows? I am currently working on converting it myself, but I just > wanted to make sure there was not a working version already available > out there. Having the RTSP server on Windows would be very helpful > for forwarding a stream through a streaming media server like WOWZA. why would gst-rtsp server need to run on windows for that purpose? Stefan > > Thank you, > William > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Stefan,
I am working on a project that requires me to encode video and audio from capture cards on a Windows machine, and send them over a network (using gstreamer) to a streaming media server (in this case wowza on a Windows or Linux machine), and then have that media server distribute the video and audio to clients (on Windows or Mac) that connect to it. I have not been able to send the video or audio from my Windows machine to the wowza machine, and then connect any clients to the wowza machine. My current method is to have an SDP file on the Wowza machine in order to receive the stream and forward it on, but I have been unsuccessful thus far. My next option was to convert the rtsp server to Windows, so that I can forward my audio and video to wowza using rtsp and then have wowza forward them to my clients. Would this method not work, or do you know of a better way of accomplishing this task from a Windows computer? It is required that I use gstreamer and wowza to finish my project, but it has proven to be rather difficult so far, so any help you can provide would be greatly appreciated. If you need, I can provide the test pipeline and the sdp file I have been testing with trying to stream from gstreamer to wowza. Thanks, William On 7/27/2011 11:11 AM, Stefan Kost wrote: > On 07/27/11 17:08, William Metcalf wrote: >> Hello all, >> >> Has anybody been successful in getting the gst rtsp server to build in >> Windows? I am currently working on converting it myself, but I just >> wanted to make sure there was not a working version already available >> out there. Having the RTSP server on Windows would be very helpful >> for forwarding a stream through a streaming media server like WOWZA. > why would gst-rtsp server need to run on windows for that purpose? > > Stefan >> Thank you, >> William >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by william.l.metcalf
Hi William,
I have your same need, I tried to find something already done without success, so I managed to do all the changes by myself and just yesterday I was able to see RTSP server working fine on Windows. Unfortunately RTSP server architecture doesn't seem to fit Windows constraints (in particular RTSP source is not woken up when an RTSP packet is received, though the socket is connected) so I had to insert a completely different code in case of Windows only. I'm aware that probably it's not the best solution, but it works and it took me not so much time to achieve this. I can send the package directly to you or, if RTSP guys prefer, I can put it in a public place, warning again that has to be tested a little bit more, and surely you can help me on this. Please let me know, Matteo On 07/27/2011 05:08 PM, William Metcalf wrote: > Hello all, > > Has anybody been successful in getting the gst rtsp server to build in > Windows? I am currently working on converting it myself, but I just > wanted to make sure there was not a working version already available > out there. Having the RTSP server on Windows would be very helpful for > forwarding a stream through a streaming media server like WOWZA. > > Thank you, > William > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by william.l.metcalf
On 07/27/11 18:29, William Metcalf wrote:
> Stefan, > > I am working on a project that requires me to encode video and audio > from capture cards on a Windows machine, and send them over a network > (using gstreamer) to a streaming media server (in this case wowza on a > Windows or Linux machine), and then have that media server distribute > the video and audio to clients (on Windows or Mac) that connect to > it. I have not been able to send the video or audio from my Windows > machine to the wowza machine, and then connect any clients to the > wowza machine. My current method is to have an SDP file on the Wowza > machine in order to receive the stream and forward it on, but I have > been unsuccessful thus far. windows. Thanks for the explanation. Hopefully Matteos changes help you to get that going. > > My next option was to convert the rtsp server to Windows, so that I > can forward my audio and video to wowza using rtsp and then have wowza > forward them to my clients. > > Would this method not work, or do you know of a better way of > accomplishing this task from a Windows computer? It is required that > I use gstreamer and wowza to finish my project, but it has proven to > be rather difficult so far, so any help you can provide would be > greatly appreciated. If you need, I can provide the test pipeline and > the sdp file I have been testing with trying to stream from gstreamer > to wowza. before. It would be cool if more people publish experience reports about such setups when possible. E.g. blog about it and let us know, or submit a short talk on conferences (e.g. such as the gstreamer conference). Stefan > > Thanks, > William > > On 7/27/2011 11:11 AM, Stefan Kost wrote: >> On 07/27/11 17:08, William Metcalf wrote: >>> Hello all, >>> >>> Has anybody been successful in getting the gst rtsp server to build in >>> Windows? I am currently working on converting it myself, but I just >>> wanted to make sure there was not a working version already available >>> out there. Having the RTSP server on Windows would be very helpful >>> for forwarding a stream through a streaming media server like WOWZA. >> why would gst-rtsp server need to run on windows for that purpose? >> >> Stefan >>> Thank you, >>> William >>> _______________________________________________ >>> gstreamer-devel mailing list >>> [hidden email] >>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Matteo Pampolini
Matteo,
That sounds very great! If the RTSP guys do not mind, it would be great if you could send the package directly to this email address. I will test it out with my current project and I will let you know of any bugs or errors I see when testing, and I will help you make any changes that I can. Thank you very much for sharing your code with me! William On 7/28/2011 1:44 AM, Pampolini Matteo wrote: > Hi William, > > I have your same need, I tried to find something already done without > success, so I managed to do all the changes by myself and just yesterday > I was able to see RTSP server working fine on Windows. > > Unfortunately RTSP server architecture doesn't seem to fit Windows > constraints (in particular RTSP source is not woken up when an RTSP > packet is received, though the socket is connected) so I had to insert a > completely different code in case of Windows only. I'm aware that > probably it's not the best solution, but it works and it took me not so > much time to achieve this. > > I can send the package directly to you or, if RTSP guys prefer, I can > put it in a public place, warning again that has to be tested a little > bit more, and surely you can help me on this. > > Please let me know, > > Matteo > > On 07/27/2011 05:08 PM, William Metcalf wrote: >> Hello all, >> >> Has anybody been successful in getting the gst rtsp server to build in >> Windows? I am currently working on converting it myself, but I just >> wanted to make sure there was not a working version already available >> out there. Having the RTSP server on Windows would be very helpful for >> forwarding a stream through a streaming media server like WOWZA. >> >> Thank you, >> William >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel >> > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by william.l.metcalf
Matteo,
That sounds very great! If the RTSP guys do not mind, it would be great if you could send the package directly to this email address. I will test it out with my current project and I will let you know of any bugs or errors I see when testing, and I will help you make any changes that I can. Thank you very much for sharing your code with me! William On 7/28/2011 1:44 AM, Pampolini Matteo wrote: > Hi William, > > I have your same need, I tried to find something already done without > success, so I managed to do all the changes by myself and just yesterday > I was able to see RTSP server working fine on Windows. > > Unfortunately RTSP server architecture doesn't seem to fit Windows > constraints (in particular RTSP source is not woken up when an RTSP > packet is received, though the socket is connected) so I had to insert a > completely different code in case of Windows only. I'm aware that > probably it's not the best solution, but it works and it took me not so > much time to achieve this. > > I can send the package directly to you or, if RTSP guys prefer, I can > put it in a public place, warning again that has to be tested a little > bit more, and surely you can help me on this. > > Please let me know, > > Matteo > > On 07/27/2011 05:08 PM, William Metcalf wrote: >> Hello all, >> >> Has anybody been successful in getting the gst rtsp server to build in >> Windows? I am currently working on converting it myself, but I just >> wanted to make sure there was not a working version already available >> out there. Having the RTSP server on Windows would be very helpful for >> forwarding a stream through a streaming media server like WOWZA. >> >> Thank you, >> William >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel >> > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by wlm014
Hi,
The problem is in GPoolFD (readfd) of GstRTSPWatch from object GstRTSPConnection. The watch's checks fails(revents of the pool is not set) and the event doesn't dispatched. If I use g_io_add_watch() with the socket I can detect when data arrives, but I must change GstRTSPConnection class. I think that is not a good idea. Are there other way to try to solve this more easy? El jue, 28-07-2011 a las 08:46 -0500, William Metcalf escribió: Matteo, That sounds very great! If the RTSP guys do not mind, it would be great if you could send the package directly to this email address. I will test it out with my current project and I will let you know of any bugs or errors I see when testing, and I will help you make any changes that I can. Thank you very much for sharing your code with me! William On 7/28/2011 1:44 AM, Pampolini Matteo wrote: > Hi William, > > I have your same need, I tried to find something already done without > success, so I managed to do all the changes by myself and just yesterday > I was able to see RTSP server working fine on Windows. > > Unfortunately RTSP server architecture doesn't seem to fit Windows > constraints (in particular RTSP source is not woken up when an RTSP > packet is received, though the socket is connected) so I had to insert a > completely different code in case of Windows only. I'm aware that > probably it's not the best solution, but it works and it took me not so > much time to achieve this. > > I can send the package directly to you or, if RTSP guys prefer, I can > put it in a public place, warning again that has to be tested a little > bit more, and surely you can help me on this. > > Please let me know, > > Matteo > > On 07/27/2011 05:08 PM, William Metcalf wrote: >> Hello all, >> >> Has anybody been successful in getting the gst rtsp server to build in >> Windows? I am currently working on converting it myself, but I just >> wanted to make sure there was not a working version already available >> out there. Having the RTSP server on Windows would be very helpful for >> forwarding a stream through a streaming media server like WOWZA. >> >> Thank you, >> William >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel >> > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Matteo,
I have trouble building the Windows RTSP Server. Seems like it keeps failing at the socket initialisation and hence result in failure in attaching the server. Guess I would wish to have a copy of your working code if you dun mind. :) Thanks in advance. |
Dear all,
I am also trying to run RTSP Server on Windows XP 32bits. I am using GStreamer WinBuilds v0.10.7, Beta 04 Winbuild and SDK packages.
(Gstreamer 0.10.31) I have downloaded the source code of OSSBuild to perform the changes that Matt suggest:
This means: a) some minor changes on rtsp_server.c and rtsp_client.c
Deal with some Linux includes by adding: #include <winsock2.h> #include <ws2tcpip.h> Change socket creation @ gst_rtsp_server_get_io_channel @ rtsp_server.c
unsigned long flags = 1; //To make non-blocking:1 blocking:0
WSADATA wsaData; int iResult; : // Initialize Winsock to avoid error iResult = WSAStartup(MAKEWORD(2, 2), &wsaData); if (iResult != 0) { GST_ERROR_OBJECT (server, "WSAStartup failed: %d\n", iResult);
return FALSE; } : // fcntl (sockfd, F_SETFL, O_NONBLOCK); // LINUX if (ioctlsocket (sockfd, FIONBIO, &flags) != 0) // WIN32 GST_WARNING_OBJECT (server, "Error creating socket!");
: /* create IO channel for the socket */ // channel = g_io_channel_unix_new (sockfd); // LINUX channel = g_io_channel_win32_new_socket (sockfd); // WIN32 b) some minor changes on gstrtspconnection.c
I see that socket watching problems lays on Glib issues (also tackeld in other distribution list thread):
After compiling all and overwrite the dlls, and libs corresponding to gstrtsp and gstsdp (I suppose that some changes have been done in the svn working copy from the beta version, because I had runtime errors due to that).
I use the test-launch example for the server: test-launch.exe "( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )" And for the client: gst-launch rtspsrc location=rtsp://127.0.0.1:8554/test latency=100 ! rtph264depay ! decodebin ! fakesink
It seems to work but It still gets frozen after these logs on the server: 0:00:11.146027000 2376 003D2C38 INFO rtspclient rtsp-client.c:1939:gst_rtsp_client_accept: client 00CD2010 connected to server ip 127.0.0.1, ipv6 = 0
0:00:11.156041000 2376 003D2C38 INFO rtspclient rtsp-client.c:1942:gst_rtsp_client_accept: added new client 00CD2010 ip 127.0.0.1:43269
0:00:11.156041000 2376 003D2C38 INFO rtspclient rtsp-client.c:1956:gst_rtsp_client_accept: attaching to context 00CF5580
0:00:11.166056000 2376 003D2C38 DEBUG rtspserver rtsp-server.c:742:manage_client:<GstRTSPServer@00AE23F8> manage client 00CD2010 0:00:11.166056000 2376 003D2C38 DEBUG GST_POLL gstpoll.c:1141:gst_poll_wait: timeout :0:00:00.000000000
0:00:11.166056000 2376 003D2C38 DEBUG GST_POLL gstpoll.c:979:gst_poll_fd_can_read_unlocked: 00AE70E0: fd (fd:1908, idx:0) 0:00:11.176070000 2376 003D2C38 DEBUG GST_POLL gstpoll.c:1049:gst_poll_fd_can_write: 00AE70E0: fd (fd:1908, idx:0)
RTSP request message 00CF8690 request line: method: 'OPTIONS' uri: 'rtsp://127.0.0.1:8554/test'
version: '1.0'
headers: key: 'CSeq', value: '1' key: 'Date', value: 'Wed, 30 May 2012 13:35:27 GMT' body: 0:00:11.186084000 2376 003D2C38 INFO rtspclient rtsp-client.c:13
13:handle_request: client 00CD2010: received a request RTSP response message 0012FB94 status line: code: '200' reason: 'OK' version: '1.0'
headers: key: 'CSeq', value: '1' key: 'Public', value: 'OPTIONS, DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN' key: 'Server', value: 'GStreamer RTSP server'
body: length 0 An the log in the client: 0:00:01.782563000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:3310:gst_rtsp_conninfo_connect:<rtspsrc0> connecting (rtsp://127.0.0.1:8554/test)...
0:00:01.822621000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:5388:gst_rtspsrc_retrieve_sdp:<rtspsrc0> create options... 0:00:01.832635000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:5396:gst_rtspsrc_retrieve_sdp:<rtspsrc0> send options...
0:00:01.832635000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:4330:gst_rtspsrc_try_send:<rtspsrc0> sending message 0:00:01.932779000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:4359:gst_rtspsrc_try_send:<rtspsrc0> received response message
0:00:01.932779000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:4370:gst_rtspsrc_try_send:<rtspsrc0> got response message 200 0:00:01.942794000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:5406:gst_rtspsrc_retrieve_sdp:<rtspsrc0> create describe...
0:00:01.942794000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:5418:gst_rtspsrc_retrieve_sdp:<rtspsrc0> send describe... 0:00:01.942794000 3884 00332C48 DEBUG rtspsrc gstrtspsrc.c:4330:gst_rtspsrc_try_send:<rtspsrc0> sending message
0:00:21.951565000 3884 00332C48 WARN rtspsrc gstrtspsrc.c:4419:gst_rtspsrc_try_send:<rtspsrc0> error: Could not receive message. (Timeout while waiting for server response) I have also tried different combinations and changes from the proposed modifications, but the malfunction persist. Could someone (Matthias Dodt or Matteo) publish or attached the whole code for the libgstrtspserver and the libgstrtsp to perform a RTSP session?
Thank you in advance, Best regards, Angel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |