<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/14/2014 6:59 AM, Ben Morris
wrote:<br>
</div>
<blockquote
cite="mid:000001cfe7b7$068a1da0$139e58e0$@jetstonestudios.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am running an RTSP server using Live555
and receiving the stream using ffmpeg. The exact ffmpeg
version is the Zeranoe build from September 13<sup>th</sup>
2014.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Everything runs as expected on localhost
but when connecting to the server from a remote machine, the
connection will fail when using UDP. The only port that it
will work on is 554, which is the default RTSP port. Any other
port will timeout. This has also been tested in ffplay where
it will move over to a TCP connection and successfully
establish the connection. However, I do not wish to use TCP
for my video stream as it is a live feed. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The necessary ports have been forwarded on
my router (554-564) and UPnP is enabled. Futhermore, when
using the Live555 test RTSP clients, the connection is
established instantly when using any port, although I cannot
find out if the connection is over UDP or TCP.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a known issue with only being able
to use certain ports for RTSP? The timeout is happening in
avformat_open_input() where I am passing in a pre-allocated
context set up with a callback to handle the timeout and the
format information is being guessed from the url. The call is
as so:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">AVDictionary</span><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">*
opts = </span><span
style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white">NULL</span><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">if</span><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
(avformat_open_input(&m_formatCtx, </span><span
style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white">url</span><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,
</span><span
style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white">NULL</span><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,
&opts) != 0)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span
style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">return</span><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span
style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">false</span><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">;</span><span
style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span
style="font-size:9.5pt;font-family:Consolas;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal">The RTSP stream url is in the form:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">rtsp://79.108.232.252:560/h264_Stream<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any information or advice would be greatly
appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Ben
Morris<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="mso-fareast-language:EN-GB">Jet
Stone Studios<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
</blockquote>
We use rtsp over port 8554, so I dont think so.<br>
<br>
If you are behind a firewall or NAT, then the UDP packets must be
forwarded.<br>
<br>
We use TCP with great success for low latency live streaming.<br>
<br>
Andy<br>
<br>
<br>
<br>
</body>
</html>