<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style type="text/css" style="display:none"><!-- P { margin-top: 0px; margin-bottom: 0px; } @font-face { font-family: 'Cambria Math'; } @font-face { font-family: Cambria; } @font-face { font-family: Calibri; } @font-face { font-family: Tahoma; } @font-face { font-family: 'Karbon Bold'; } @font-face { font-family: 'Karbon Medium'; } @font-face { font-family: 'Karbon Regular'; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0.0001pt; text-align: right; direction: rtl; unicode-bidi: embed; font-size: 11pt; font-family: Calibri, sans-serif; } a:link, span.MsoHyperlink { color: blue; text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: purple; text-decoration: underline; } p.MsoAcetate, li.MsoAcetate, div.MsoAcetate { margin: 0cm 0cm 0.0001pt; text-align: right; direction: rtl; unicode-bidi: embed; font-size: 8pt; font-family: Tahoma, sans-serif; } span.EmailStyle17 { font-family: Calibri, sans-serif; color: windowtext; } span.BalloonTextChar { font-family: Tahoma, sans-serif; } .MsoChpDefault { font-family: Calibri, sans-serif; } @page WordSection1 { margin: 72pt 90pt; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Daniel,<br>
</p>
<p><br>
</p>
<p>First, you should ensure your time between audio and video are sync.<br>
</p>
<p>Then, just put struct timval into fPresentation time(need sec and usec).<br>
</p>
<p><br>
</p>
<p>Second, ensure your audio duration time is ok, you could refer ATDS source code.<br>
</p>
<p><br>
</p>
<p>I hope this may help you. Thanks.<br>
</p>
<p><br>
</p>
<p>regards, eric, 11/04<br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>從:</b> live-devel <live-devel-bounces@ns.live555.com> 代表 Daniel Yacouboff <danielya@essence-grp.com><br>
<b>寄件日期:</b> 2015年11月4日 下午 06:56<br>
<b>至:</b> live-devel@lists.live555.com<br>
<b>主旨:</b> [Live-devel] Live video and audio streaming using one RTSPServer</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">Hello there,</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">I’ve been working on your library for a while now, in order to implement a RTSP server, streaming live audio and video.</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">The audio and video packets are received via TCP from another service, each type of packet (audio\video) to another socket.</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">What I did was creating a new sub-classes of MediaSubsession, one for PCM audio and one for H264 video, and for each one created a new framed source, similar to ByteStreamFileSource,
where in their doReadFromFile() I call recv() to the relevant socket instead of fread().</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">In my main, I just open the TCP sockets, create an RTSP server and add the two subsessions to it.</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed"> </p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">It works fine when I play video alone, or audio alone, but when I combine them the video usually stuck after a short while (~30 seconds) and the audio keeps playing ok.</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">In addition, during the time both of them played ok, they are not synched.</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed"> </p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">What am I doing wrong? I’ve read a lot about it and it seems my presentation times are not ok, but how can I calculate them properly?</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">Please advise, I’ve been working on this forever, and I’m sure it’ll be useful for others as well.</p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed"> </p>
<p class="MsoNormal" style="text-align:left; direction:ltr; unicode-bidi:embed">Thanks.</p>
<p class="MsoNormal" dir="RTL"><span dir="LTR"> </span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="641" style="width:480.7pt; border-collapse:collapse">
<tbody>
<tr style="height:70.4pt">
<td width="149" valign="top" style="width:111.75pt; padding:0cm 5.4pt 0cm 5.4pt; height:70.4pt">
<p class="MsoNormal" dir="RTL" style="margin-bottom:10.0pt; line-height:16.0pt"><span dir="LTR"><img width="133" height="34" id="_x0000_i1032" src="cid:image001.png@01D11700.3D6DA610"></span><span dir="LTR" style="font-size:2.0pt"></span></p>
<p class="MsoNormal" dir="RTL" style="margin-bottom:10.0pt; line-height:16.0pt"><a href="https://www.facebook.com/essencegrp?ref=hl" target="_blank"><span dir="LTR" style="font-family:"Cambria","serif"; color:windowtext; text-decoration:none"><img border="0" width="17" height="17" id="Picture_x0020_2" alt="cid:89F8E3BA-1F79-4C4C-8A6E-85F03F7A4235" src="cid:image002.png@01D11700.3D6DA610"></span></a><span dir="LTR" style="font-family:"Cambria","serif"; color:black"> </span><span dir="LTR"><a href="https://twitter.com/Essence_grp" target="_blank"><span style="font-family:"Cambria","serif"; color:windowtext; text-decoration:none"><img border="0" width="13" height="17" id="Picture_x0020_3" alt="cid:7F760DA7-8206-4E09-A8F6-4CDFCDE78235" src="cid:image003.png@01D11700.3D6DA610"></span></a></span><span dir="LTR" style="font-family:"Cambria","serif"; color:black"> </span><span dir="LTR"><a href="https://www.youtube.com/channel/UCOdUAVC7QmDoSZGyHMOjwUg" target="_blank"><span style="font-family:"Cambria","serif"; color:windowtext; text-decoration:none"><img border="0" width="20" height="17" id="Picture_x0020_4" alt="cid:8622F469-70CD-439D-A066-E8D9B17BC323" src="cid:image004.png@01D11700.3D6DA610"></span></a></span><span dir="LTR" style="font-family:"Cambria","serif"; color:black"> </span><span dir="LTR"><a href="http://www.linkedin.com/company/865102?trk=tyah&trkInfo=tas:essence%20g,idx:1-1-1" target="_blank"><span style="font-family:"Cambria","serif"; color:windowtext; text-decoration:none"><img border="0" width="17" height="17" id="Picture_x0020_5" alt="cid:D211F5B7-C986-4790-B65C-1F8CB6060BF6" src="cid:image005.png@01D11700.3D6DA610"></span></a></span><span dir="LTR" style="font-family:"Cambria","serif"; color:black"> </span><span dir="LTR"><a href="https://plus.google.com/u/0/107922789033407857840/posts" target="_blank"><span style="font-family:"Cambria","serif"; color:windowtext; text-decoration:none"><img border="0" width="17" height="17" id="Picture_x0020_6" alt="cid:E725C345-8B3D-479D-8316-D67F8293CEE1" src="cid:image006.png@01D11700.3D6DA610"></span></a></span><span dir="LTR" style=""></span></p>
</td>
<td width="492" valign="top" style="width:368.95pt; padding:0cm 5.4pt 0cm 5.4pt; height:70.4pt">
<p class="MsoNormal" style="margin-bottom:6.0pt; text-align:left; line-height:115%; direction:ltr; unicode-bidi:embed">
<b><span style="font-family:"Karbon Bold"; color:#586DB2">Daniel Yacouboff </span>
</b><b><span style="font-size:19.0pt; line-height:115%; color:#231F5C"><br>
</span></b><b><span style="font-family:"Karbon Medium"; color:gray">QA and SW Engineer<br>
</span></b><span style="font-size:4.0pt; line-height:115%; color:#6D6D6D"><br>
</span><span style="font-size:10.0pt; line-height:115%; font-family:"Karbon Regular"; color:gray">T: +972(73)2447-945
</span><a href="mailto:+972%2073%202447-757"><span style="font-size:10.0pt; line-height:115%; font-family:"Karbon Regular"; color:gray; text-decoration:none">M: +972(54)6805-505</span></a><span style="font-size:8.0pt; line-height:115%; font-family:"Cambria","serif"; color:gray">
<br>
</span><span style="font-size:10.0pt; line-height:115%; font-family:"Karbon Regular"; color:gray">E: danielya@essence-grp.com | </span><a href="http://www.essence-grp.com/"><span style="font-size:10.0pt; line-height:115%; font-family:"Karbon Regular"; color:gray; text-decoration:none">www.essence-grp.com</span></a><b><span style="font-family:"Karbon Medium"; color:gray"></span></b></p>
</td>
</tr>
<tr style="height:112.25pt">
<td width="641" colspan="2" valign="top" style="width:480.7pt; padding:0cm 5.4pt 0cm 5.4pt; height:112.25pt">
<p class="MsoNormal" dir="RTL" style="line-height:115%"><b><span dir="LTR" style="color:#5C54A0">Come and meet us at our next events</span></b><span dir="LTR" style="color:black"></span></p>
<p class="MsoNormal" dir="RTL" style="line-height:115%"><a href="http://events.essence-grp.com/"><span dir="LTR" style="color:windowtext; text-decoration:none"><img border="0" width="492" height="61" id="Picture_x0020_7" alt="cid:C4E7A1B1-AD2C-4A03-A68D-37EC473A58FF" src="cid:image007.png@01D11700.3D6DA610"></span></a><span dir="LTR" style="color:black"></span></p>
<p class="MsoNormal" dir="RTL" style="line-height:115%"><a href="mailto:info@essence-grp.com"><span dir="LTR" style="color:windowtext; text-decoration:none"><img border="0" width="188" height="36" id="Picture_x0020_8" alt="cid:C59C7C8C-355B-4458-9F7A-9A490896466E" src="cid:image008.png@01D11700.3D6DA610"></span></a><span dir="LTR" style="color:black"></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" dir="RTL" style="margin-bottom:10.0pt; line-height:115%"><span lang="ES-TRAD" dir="LTR" style="font-family:"Cambria","serif"; color:black"> </span><span dir="LTR" style="font-size:10.5pt; line-height:115%; color:black"></span></p>
<p class="MsoNormal" dir="RTL"><span dir="LTR"> </span></p>
</div>
</div>
</div>
<h3></h3>
<p>This electronic mail transmission is intended only for the named recipient. It contains information which may be privileged,confidential and exempt from disclosure under applicable law. Dissemination, distribution, or copying of this communication by anyone
other than the recipient or the recipient's agent is strictly prohibited. If this electronic mail transmission is received in error, Please notify us immediately and delete the message and all attachments of it from your computer system. Thank you for your
cooperation. </p>
<p></p>
</body>
</html>