<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Ross,<div>I was hoping to get an answer on the implementation below so we can try and figure out why we cannot get the data into live555.</div><div><br></div><div>Thank you<br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Austin</div></div> </div><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>From: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">"Austin Snow (pftv)" <<a href="mailto:asnow@pathfindertv.net">asnow@pathfindertv.net</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">March 10, 2009 2:23:21 PM EDT</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Post-Live555 <<a href="mailto:live-devel@ns.live555.com">live-devel@ns.live555.com</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Subject: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>[Live-devel] Live input MPEG4 Video input</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Reply-To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">LIVE555 Streaming Media - development & use <<a href="mailto:live-devel@ns.live555.com">live-devel@ns.live555.com</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello All,</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I'm having an issue getting a live MPEG4 video source into Live555, any help would be great.</div><div><br></div><div>This is how I defined my live input;</div><div>in DeviceSource.hh;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>removed</div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>//private: </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>//void deliverFrame(); //ags</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>added</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>public:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>void deliverFrame(void *data, int len, int dur);</div><div><br></div><div>in DeviceSource.cpp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>changed <br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>//void DeviceSource::deliverFrame() {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>to<br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>void DeviceSource::deliverFrame(void *data, int len, int dur) { <--passing my data in here</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>added<br></div><div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>// Deliver the data here:</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if(fMaxSize < len){</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>fNumTruncatedBytes = len - fMaxSize;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>len = fMaxSize;<span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>printf("Frame size truncated\n");<span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>gettimeofday(&fPresentationTime, NULL);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>fDurationInMicroseconds = dur;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>fFrameSize = len;<span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>memcpy(fTo, data, len);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf("Frame sent, len=%d\n", len);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf("dur=%d\n", dur);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf("fPresentationTime.tv_sec=%d\n", fPresentationTime.tv_sec);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf("fPresentationTime.tv_usec=%d\n", fPresentationTime.tv_usec);</div><div><br></div><div>The printfs indicate that the data is only accepted approximately every 1 to 1.5 seconds on average.</div><div><br></div><div>Is this the proper way to add a live input?</div></div></div></div><div><br></div><div>Thanks</div><div>Austin</div>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Austin</div></div> </div><br></div>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br></blockquote></div><br></div></body></html>