<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:µÈÏß;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@ËÎÌå";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"΢ÈíÑÅºÚ Light";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:"\@΢ÈíÑÅºÚ Light";}
@font-face
{font-family:"\@µÈÏß";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:µÈÏß;}
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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:ËÎÌå;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:µÈÏß;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.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]-->
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif">Hi Ross,</span><span lang="EN-US" style="font-size:11.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif">Refer to DeviceSource.cpp, I implement LiveVideoFramedSource class that extended from FramedSource and get video frame by PUSH mode. It means it will trigger
event to deliverFrame when frame is available and call FramedSource::afterGetting(this) when frame size is > 0. I don¡¯t handle doGetNextFrame() and ignore it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif">Rtsp video streaming can work when live camera frame fps is 25fps, but I found it has big delay for client. I check the log, and find it costs about 10ms for
socket select frequently in BasicTaskScheduler.cpp.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif">Seems that it impact to deliver video frames for live555 is running in single thread.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:24.0pt">BasicTaskScheduler.cpp</span><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif">int selectResult = select(fMaxNumSockets, &readSet, &writeSet, &exceptionSet, &tv_timeToDelay); //cost about 10ms frequently<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p> </o:p></span></p>
<p style="margin-bottom:0cm;margin-bottom:.0001pt"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif">I would appreciate some guidance on the issue.
</span><span lang="EN-US" style="font-size:18.0pt;font-family:Wingdings">J</span><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:18.0pt;font-family:"΢ÈíÑÅºÚ Light",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:24.0pt">Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:24.0pt">/Qian<o:p></o:p></span></p>
</div>
</body>
</html>