<html><body 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></body></html>