Re: [Live-devel] how to make latency as low as possible

2017-01-16 Thread x...@vscenevideo.com
hi Ross, I changed the code according to your advice, to delivering only 1 NAL unit each doGetNextFrame(), then the app runs. Thank you! However, there's something I don't understand. In our camera, SPS/PPS/IFrame are generated at one time. If the sink object copies one NALU at a time, at the

Re: [Live-devel] how to make latency as low as possible

2017-01-16 Thread Ross Finlayson
You need to copy data to “fTo” and call “FramedSource::afterGetting(this)” only *once*, for each NAL unit that you deliver. (Your code seems to be doing this multiple times for each delivery; this is wrong.) In other words, each call to “doGetNextFrame()” must (eventually) lead to the delivery

Re: [Live-devel] how to make latency as low as possible

2017-01-16 Thread x...@vscenevideo.com
hi Ross, I made changes to send every NAL unit seperately, and made sure all start code were cut off. For the "key frame" (the SC+SPS+SC+PPS+SC+Frame in one chunk of data), I seperated them and called memmove and afterGetting for each. See the code in grey below. void Gm813xSource::deliverFram

Re: [Live-devel] Detecting when a RTSP server has gone offline

2017-01-16 Thread Robin Imrie
I did solve this just as you suggested I don't remember coming across the checkSessionTimeoutBrokenServer() function I will have a look at that soon to see if what I have missed. Robin -Original Message- From: live-devel [mailto:live-devel-boun...@ns.live555.com] On Behalf Of Ross Fin