<div dir="ltr">The problem seems to be here in the continueAfterOPTIONS function - it doesn't take into consideration we are using RTSP over HTTP. <div><br></div><div>Live555 passes an error from the HTTP GET request and VLC interprets as an error from RTSP OPTIONS request.<br></div><div><br></div><div>Here's the function.</div><div><br></div><div><div>static void continueAfterOPTIONS( RTSPClient* client, int result_code,</div><div>                                  char* result_string )</div><div>{</div><div>    RTSPClientVlc *client_vlc = static_cast<RTSPClientVlc *> (client);</div><div>    demux_sys_t *p_sys = client_vlc->p_sys;</div><div>    p_sys->b_get_param =</div><div>      // If OPTIONS fails, assume GET_PARAMETER is not supported but</div><div>      // still continue on with the stream.  Some servers (foscam)</div><div>      // return 501/not implemented for OPTIONS.</div><div>      result_code == 0</div><div>      && result_string != NULL</div><div>      && strstr( result_string, "GET_PARAMETER" ) != NULL;</div><div>    client->sendDescribeCommand( continueAfterDESCRIBE );</div><div>    delete[] result_string;</div><div>}</div><div><br><br></div><div>Cheers,</div><div>Jan</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 27, 2018 at 10:50 AM, Jan Olszak <span dir="ltr"><<a href="mailto:jan.olszak@vestiacom.com" target="_blank">jan.olszak@vestiacom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I fiddled with --ipv4-timeout and looked into live55.cpp and now I'm 90% sure the problem is in live555. <div><br></div><div>I'll try to use openRTSP later and confirm.</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>Jan</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 26, 2018 at 10:02 PM, Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>> On Apr 25, 2018, at 3:26 AM, Jan Olszak <<a href="mailto:jan.olszak@vestiacom.com" target="_blank">jan.olszak@vestiacom.com</a>> wrote:<br>
> <br>
> Hi there!<br>
> I'm writing a simple RTSP over HTTP client using libVLC. It connects to a server on the same machine and the connect() is very fast. It turns out that when the server returns an error to the GET request libvlc retries to connect. It retries couple of times and stops probably due to timeout.<br>
<br>
</span>Jan,<br>
<br>
What happens if - instead of (lib)VLC - you use the “openRTSP” command-line tool: <<a href="http://www.live555.com/openRTSP/" rel="noreferrer" target="_blank">http://www.live555.com/openRT<wbr>SP/</a>>?  This will tell you whether the issue is one that happens within the LIVE555 library, or instead in (lib)VLC’s “live555.cpp” interface code.<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" rel="noreferrer" target="_blank">http://www.live555.com/</a><br>
<br>
______________________________<wbr>_________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/l<wbr>istinfo/vlc-devel</a></blockquote></div><br></div>
</div></div></blockquote></div><br></div>