Hi,<div><br></div><div>I'm adapting live555 to stream from a live source and using testMPEG2TransportStreamer.cpp and <a href="http://www.live555.com/liveMedia/faq.html#liveInput">http://www.live555.com/liveMedia/faq.html#liveInput</a> as reference.</div>
<div><br></div><div>I got all necessary code to startup a RTP server and start playing and put on my source code. </div><div><br></div><div>As explained on the FAQ, i substitue <i><font class="Apple-style-span" face="'arial black', sans-serif">ByteStreamFileSource and </font></i><i><font class="Apple-style-span" face="'arial black', sans-serif">MPEG2TransportStreamFramer</font></i> <font class="Apple-style-span" face="Geneva, Arial, Helvetica, sans-serif">layers by the </font><font class="Apple-style-span" face="'arial black', sans-serif" style="font-style: italic; ">DeviceSource </font><font class="Apple-style-span" face="arial, helvetica, sans-serif">one.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Using DDD to degub a segmentation fault bug, i found thats is caused by a call to socketErr() made by writeSocket() ( more precisely, "<b>if (setsockopt(socket, IPPROTO_IP, IP_MULTICAST_TTL,(const char*)&ttl, sizeof ttl) < 0)" </b>line call).</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">The only two functions my app call by DeviceSource class are DeviceSource::doGetNextFrame() and DeviceSource::deliverFrame(), as i can see in DDD backtace feture. </font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">In the first one i get news buffers with TS data to be streamed. At the second i set pointers to data content and buffer size (as required by template).</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">How could DeviceSource changes impact on socket issues??</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Thanks,<br></font><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>
<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Att,</span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Rafael Madeira</span></div>
Idea! Electronic Systems<br><a href="http://www.idea-ip.com/" style="color:rgb(42, 93, 176)" target="_blank">www.idea-ip.com</a></span><br>
</div>