<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 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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="FR">Nevermind, I found the solution, the last objects enumerated (</span><span lang="FR">GroupSock RTP & RTCP / H265VideoRTPSink / RTCPInstance</span><span lang="FR">) should be instanciated per stream.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> live-devel <live-devel-bounces@us.live555.com> <b>
On Behalf Of </b>g.jaegy<br>
<b>Sent:</b> Tuesday, February 15, 2022 12:04 PM<br>
<b>To:</b> live-devel@lists.live555.com <live-devel@us.live555.com><br>
<b>Subject:</b> [Live-devel] multiple H265 streams<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FR">Hi, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">I have a working RTSP server, streaming one H265 streaming through RTP (multicast UDP). My code is mostly based on the testH265VideoStreamer example.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">Now, I want to add multiple H265 streams (all having the same properties, resolution etc.).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">I’m not sure I understand really how that works internally, whether the same RTP sink is used for all streams or one RTP sink is required per stream. So, basically, my question is what objects should I instanciate globally,
and which ones should I instanciate per stream.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">I’m sure the following must be instanciate per stream :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">ServerMediaSession<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">PassiveServerMediaSubsession<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">FramedSource<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">H265VideoStreamDiscreteFramer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">I am also pretty sure the following objects are unique (so, global and not per stream) :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">BasicTaskScheduler<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">BasicUsageEnvironment<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">RTSPServer<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">However, I am not sure about the RTP/RTCP ones. Should those be instanciate per stream ?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">GroupSock (RTP & RTCP)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">H265VideoRTPSink<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR">RTCPInstance<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">Thanks a lot !<o:p></o:p></span></p>
</div>
</body>
</html>