Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-05 Thread Ross Finlayson
> One last question: Let's assume fDurationInMicroseconds is 0; if the > transmitting object immediately requests the next frame and doGetNextFrame() > returns immediately because no frame is available, isn't there a risk that > the application will use 100% of CPU? No, because after returning

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-05 Thread Fabrice Triboix
4 16:38 To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Please help: I have difficulties implementing the right classes On Sep 5, 2014, at 1:14 AM, Fabrice Triboix mailto:fabri...@ovation.co.uk>> wrote: You're thinking about this the wrong way. "

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-05 Thread Ross Finlayson
On Sep 5, 2014, at 1:14 AM, Fabrice Triboix wrote: > You're thinking about this the wrong way. "doGetNextFrame()" gets called > automatically (by the downstream, 'transmitting' object) whenever it needs a > new NAL unit to transmit. So you should just deliver the next NAL unit (just > one!)

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-05 Thread Fabrice Triboix
You're thinking about this the wrong way. "doGetNextFrame()" gets called automatically (by the downstream, 'transmitting' object) whenever it needs a new NAL unit to transmit. So you should just deliver the next NAL unit (just one!) whenever "doGetNextFrame()" is called. If your encoder can g

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-05 Thread Ross Finlayson
>> Could it be that calling deliverFrame() multiple times might be wrong? > > Yes, that's wrong. Your "doGetNextFrame()" function should deliver one, and > only one, H.264 NAL unit (note, not a H.264 'frame') each time it's called. > [Fabrice] All right, that's good to know. From time to time,

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-05 Thread Fabrice Triboix
September 2014 18:35 To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Please help: I have difficulties implementing the right classes Could it be that calling deliverFrame() multiple times might be wrong? Yes, that's wrong. Your "doGetNextFrame()" func

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-04 Thread Ross Finlayson
> Could it be that calling deliverFrame() multiple times might be wrong? Yes, that's wrong. Your "doGetNextFrame()" function should deliver one, and only one, H.264 NAL unit (note, not a H.264 'frame') each time it's called. Note that if - at the time that "doGetNextFrame()" is called - no H.2

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-04 Thread Fabrice Triboix
wrong? Thanks a lot for your help! Fabrice From: live-devel [live-devel-boun...@ns.live555.com] on behalf of Ross Finlayson [finlay...@live555.com] Sent: 04 September 2014 17:21 To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Please help: I have difficulti

Re: [Live-devel] Please help: I have difficulties implementing the right classes

2014-09-04 Thread Ross Finlayson
> I am trying to build an RTSP server using liveMedia to stream H.264 in real > time from a live encoder. In essence, as soon as I try to connect with VLC, > liveMedia abort()s with the following message: > FramedSource[0xbe838]::getNextFrame(): attempting to read more than once at > the same t