Re: [Live-devel] doGetNextFrame interval

2014-10-11 Thread Ross Finlayson
> Below, I've posted my AudioBufferSource::doGetNextFrame(), in hopes you might > be able to provide a more verbose suggestion... I understand if you don't > have the time. Yes, unfortunately I'm limited in how much time I can spend providing assistance for free (especially for individual proje

Re: [Live-devel] doGetNextFrame interval

2014-10-11 Thread James Heliker
Hi Ross - Thanks again for your help here. I understand what you're saying with using an event trigger for when additional data is available, but I'm having no luck implementing as my C++ is fairly bad. Coming from C# and other higher-level languages is proving to be a bit of a learning curve for

Re: [Live-devel] doGetNextFrame interval

2014-10-11 Thread Ross Finlayson
> I see what you mean, and fDurationInMicroseconds is being calculated > correctly. For my fragmentation issue, If I don't call afterGetting() then > doGetNextFrame() is not ever re-invoked, so the server essentially stops on > the first partial read. > > Is there a method or variable I should

Re: [Live-devel] doGetNextFrame interval

2014-10-11 Thread James Heliker
Hi Ross - Thanks so much for getting back to me! I see what you mean, and fDurationInMicroseconds is being calculated correctly. For my fragmentation issue, If I don't call afterGetting() then doGetNextFrame() is not ever re-invoked, so the server essentially stops on the first partial read. Is

Re: [Live-devel] doGetNextFrame interval

2014-10-09 Thread Ross Finlayson
> In my AudioBufferSource (based on AudioInputDevice) the doGetNextFrame > happens at an extremely fast interval - which is sometimes causing my PCM > audio running at 44.1 kHz to get fragmented. The frequency at which "doGetNextFrame()" gets called depends entirely on the value that you set f

[Live-devel] doGetNextFrame interval

2014-10-09 Thread James Heliker
Hi Ross / All - In my AudioBufferSource (based on AudioInputDevice) the doGetNextFrame happens at an extremely fast interval - which is sometimes causing my PCM audio running at 44.1 kHz to get fragmented. For example, I am tuning my server and client software to work with 64 (pcm)frame chunks, h

[Live-devel] doGetNextFrame() reads nothing for a while....

2009-10-09 Thread huang
hi, dear all, I know if doGetNextFrame() reads a frame then call afterGetting() to inform the sink we have data, but how to process if doGetNextFrame() reads nothing for a while from a device ( not mean the source is invaild in my case ) and reschedule doGetNextFrame() but not inform the sink ? C

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-19 Thread Horst Weglanz
lopment & use <[EMAIL PROTECTED]> Sent: Friday, November 14, 2008 3:47:28 PM Subject: Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context Thank you, I added a static hook to schedule another *doGetNextFrame()* call and it's working as expected. Except for one thing which seems

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-14 Thread Horst Weglanz
LIVE555 Streaming Media - development & use <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2008 7:13:20 PM Subject: Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context > Is there maybe a way to directly schedule a call to *doGetNextFrame()* in the > event loop since this is no

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Ross Finlayson
Is there maybe a way to directly schedule a call to *doGetNextFrame()* in the event loop since this is not a static function or what would be the alternative The alternative is to write a static member function that then calls "doGetNextFrame()", and have "scheduleDelayedTask()" arrange to cal

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Horst Weglanz
- Original Message From: Ross Finlayson <[EMAIL PROTECTED]> To: LIVE555 Streaming Media - development & use <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2008 9:22:24 AM Subject: Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context > | if ( isFrameAvailable(

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Ross Finlayson
| if ( isFrameAvailable() ) | { |processFrame(); | } | else | { |usleep(10); |nextTask() = envir().taskScheduler().scheduleDelayedTask(0,(TaskFunc*)FramedSource::afterGetting, this); | } The big problem with this code is that if "isFrameAvailable()" returns False, then you end up

[Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Horst Weglanz
Hello I have a question regarding whether I use liveMedia or mpeg2ts correctly or not. I want to mux video frames to mpeg2ts, since I needed another interface than the once already included, I build my own *MySource* derived from *FramedSource*. In there is the appropriate *doGetNextFrame()* me

Re: [Live-devel] DoGetNextFrame and getNextFrame

2008-06-04 Thread Ross Finlayson
I don't understand the "Framedsource::aftergetting" fonction. What is it doing ? It is called - exactly once - by an object once delivery of a data frame (to implement "doGetNextFrame()") has been completed. and I never see a call of this fonction There are *many* examples in the code. Se

[Live-devel] DoGetNextFrame and getNextFrame

2008-06-04 Thread julien . savarese
I don't understand the "Framedsource::aftergetting" fonction. What is it doing ? and I never see a call of this fonction, but it write that dogetnextframe call it. HOW ? can you explaine me ? Thx. _ Julien Savarese Apprenti ingénieur. Division SIS/DPM/RMS/

[Live-devel] doGetNextFrame() in H264VideoStreamFramer

2007-11-05 Thread Chang,Yi-Wen
The said NAL unit's format indicates a NAL unit stream or byte stream? Or both is ok? If our NAL unit is byte stream format, should I extract NAL unit from the byte stream? Thank you very much.___ live-devel mailing list live-devel@lists.live555.com h

Re: [Live-devel] doGetNextFrame() in H264VideoStreamFramer

2007-11-05 Thread Ross Finlayson
Do you know the maximum size of a NAL unit? Sorry, no. -- Ross Finlayson Live Networks, Inc. http://www.live555.com/___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel

[Live-devel] doGetNextFrame() in H264VideoStreamFramer

2007-11-05 Thread Chang,Yi-Wen
Hi, Ross, Thank you for answering. Do you know the maximum size of a NAL unit? In doGetNextFrame(), is it possible that size of a NAL unit exceed and to be fragmented? Thanks!___ live-devel mailing list live-devel@lists.live555.com http://lists.live5

Re: [Live-devel] doGetNextFrame() in H264VideoStreamFramer

2007-11-02 Thread Ross Finlayson
Hi, everyone, I want to ask questions about doGetNextFrame() in H264VideoStreamFramer. 1. Should I copy "a whole frame data(a sequence of NALs of a frame)" or "a individual NAL unit" into the fTo address?? You should copy an individual NAL unit. 2. Who to control to call currentNALUnitEnd

[Live-devel] doGetNextFrame() in H264VideoStreamFramer

2007-11-02 Thread Chang,Yi-Wen
Hi, everyone, I want to ask questions about doGetNextFrame() in H264VideoStreamFramer. 1. Should I copy "a whole frame data(a sequence of NALs of a frame)" or "a individual NAL unit" into the fTo address?? 2. Who to control to call currentNALUnitEndsAccessUnit()? When? How to detect the NAL

Re: [Live-devel] doGetNextFrame()

2007-06-09 Thread Julian Lamberty
Note that the error about "atempting to read more than once" occurs if you call "getNextFrame()" on the *same* object a second time, before the 'after getting' function from the first call has been invoked. I.e., it's OK to do: source->getNextFrame(..., afterGettingFunc, ...);

Re: [Live-devel] doGetNextFrame()

2007-06-08 Thread Ross Finlayson
>How can I get more data from the Source without a call to >afterGetting(this) before (I get "attempting to read more than once" >messages)? I can't call afterGetting before an encoded frame is >ready but there can't be an encoded frame if the decoder doesn't >have enough data (you remember tha

[Live-devel] doGetNextFrame()

2007-06-08 Thread Julian Lamberty
> Are you sure that your "Transcoder" code is always correctly setting "fFrameSize" before calling "afterGetting(this)"? OK, I found the problem I think, but now I need support: I made a call to afterGetting(this) even if there was no encoded frame available. I changed that now, but there is a

Re: [Live-devel] doGetNextFrame()

2007-06-08 Thread Ross Finlayson
>I've added some stdout messages to MPEG4VideoStreamDiscreteFramer >and I can see that there are many calls to doGetNextFrame() and >afterGettingFrame1() even if my source did not deliver one frame: > >MPEG4VideoStreamDiscreteFramer::doGetNextFrame() passed >MPEG4VideoStreamDiscreteFramer::afterG

[Live-devel] doGetNextFrame()

2007-06-08 Thread Julian Lamberty
Hi! I've added some stdout messages to MPEG4VideoStreamDiscreteFramer and I can see that there are many calls to doGetNextFrame() and afterGettingFrame1() even if my source did not deliver one frame: MPEG4VideoStreamDiscreteFramer::doGetNextFrame() passed MPEG4VideoStreamDiscreteFramer::after