<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Good morning, my name is Santiago and I am an Android developer.</div><div><br></div><div>I am trying to write a RTSP server for Android to stream TS files to a SagemCom STB. The RTSP server is working very well, but I have some problems playing some files in the STB.</div><div><br></div><div>I´m reading 7 TS packets (1316 bytes) from the file, sending them to the STB, sleeping some time and then back to read. I have ported class MPEG2TransportStreamFramer to Java to be able to estimate by the TS PCRs how much time my sending thread has to sleep to give the STB time to play what I last sent. Some TS files containing MPEG2 video Streams and MPEG1 audio streams are played quite fast and files containing H264 video streams and MPEG1 audio streams are played very slow. Also the image gets frozen periodically (I don´t know if this is because the WiFi latency) and I can´t play TS files containing MP3 streams, while I know for sure that the STB can play them. Anyone can help me with this please?</div><div><br></div><div>Thank you very much.</div><div>Kind Regards</div><div>Santiago</div><div><br></div><br><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><span class="Apple-style-span" style="font-family: Helvetica; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#6E1540"><b style="color: rgb(110, 21, 64); font-weight: bold; "><font class="Apple-style-span" face="'Times New Roman'" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Fdo: Santiago Merchán</span></font></b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#6E1540"><b style="color: rgb(110, 21, 64); font-weight: bold; "><font class="Apple-style-span" face="'Times New Roman'" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Grupo Samtel</span></font></b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#6E1540"><font class="Apple-style-span" face="'Times New Roman'" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Telf: 91 426 48 75</span></font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#6E1540"><font class="Apple-style-span" face="'Times New Roman'" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Fax: 91 431 05 73</span></font></font></div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; "><font class="Apple-style-span" color="#6E1540"><font class="Apple-style-span" face="'Times New Roman'" size="2"><span class="Apple-style-span" style="font-size: 10px; ">La información incluida en el presente correo electrónico es CONFIDENCIAL, siendo para el uso exclusivo del destinatario arriba mencionado.</span></font></font></p></span></div></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br class="webkit-block-placeholder"></span></font></div></div></span><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br class="Apple-interchange-newline"></span></font></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>

<br></body></html>