<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi Ross<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We use ffmpeg and live555 to generate an H264 streaming in a Windows environment. <o:p></o:p></p><p class=MsoNormal>As I said in my previous mail, after your last suggestion the streaming works as we expect.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Nevertheless, when we play with the H264 parameters, to have better quality, <o:p></o:p></p><p class=MsoNormal>and the bitrate grows over 2 Mbps, we start to notice some artefacts in the player.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We went inside the problem and we realized that there were several lost packets.<o:p></o:p></p><p class=MsoNormal>Looking at the source code, in the "writeSocket" function inside <o:p></o:p></p><p class=MsoNormal>GroupsockHelper.cpp file we saw that there's no check for error for the "sendto" call.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We have tried and tested with success a way to solve the problem:<o:p></o:p></p><p class=MsoNormal>1) first of all, we modified the "writeSocket" function by adding an <o:p></o:p></p><p class=MsoNormal>error check when the "sendto" is called, in case of fail, it retries the call for a max of 3 time.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>2) secondly, we programmatically increased the socket buffer by <o:p></o:p></p><p class=MsoNormal>adding the call to "setsockopt" in Live555ServerMediaSubsession :: createNewRTPSink<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What do you think about? Is interesting for you to consider our code?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bye<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span lang=IT style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#339966'>________________________________________________________________</span></b><span lang=IT style='color:navy'><o:p></o:p></span></p><p class=MsoNormal><b><span lang=IT style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#339966'>Ing. Giovanni Iamonte<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=IT style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#339966'>Area Tecnologie e sviluppi<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#339966'>Quintetto Srl – Pont Saint Martin (AO)<o:p></o:p></span></b></p><p class=MsoNormal><span lang=IT style='font-size:8.0pt;font-family:Wingdings;color:#339966'>(</span><span lang=IT style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#339966'> </span><b><span lang=IT style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#339966'>mobile: +39 393 9196310<o:p></o:p></span></b></p><p class=MsoNormal><span lang=IT style='font-size:8.0pt;font-family:Wingdings;color:#339966'>(</span><span lang=IT style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#339966'> </span><b><span lang=IT style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#339966'>tel: +39 0165 1845290</span></b><span lang=IT style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#339966'><o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:8.0pt;font-family:Wingdings;color:#339966'>+</span><span lang=IT style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#339966'> </span><b><span lang=IT style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#339966'>e-mail: <a href="mailto:iamonte@quintetto.it"><span style='color:blue'>iamonte@quintetto.it</span></a></span></b><span lang=IT style='font-size:12.0pt;font-family:"Times New Roman","serif";color:navy'><o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:8.0pt;font-family:Wingdings;color:#339966'>[</span><span lang=IT style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#339966'> </span><b><span lang=IT style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#339966'>web: <a href="http://www.quintetto.it/" title="http://www.quintetto.it/"><span style='color:blue'>www.quintetto.it</span></a></span></b><span style='color:navy'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>