[Live-devel] QTKit QTCaptureSession as a DeviceSource
Ross Finlayson
finlayson at live555.com
Wed Dec 31 16:52:31 PST 2008
>Hello All,
>I having some difficulty on getting samples out of a
>QTCaptureSession into MPEG4VideoStreamDiscreteFramer.
>
>The DeviceSource::doNextFrame is only being called every 1 to 1.5
>seconds, the delay is not
>in MPEG4VideoStreamDiscreteFramer::doGetNextFrame().
The duration between successive calls to "getNextFrame()" (and thus
"doGetNextFrame()") by the downstream object depends upon the value
of the "fDurationInMicroseconds" that you (should) set in your
object's implementation, before calling "FramedSource::afterGetting".
> // Deliver the data here:
> if(fMaxSize < len){
> fNumTruncatedBytes = len - fMaxSize;
> len = fMaxSize;
> printf("Frame size truncated\n");
> }
> fDurationInMicroseconds = dura;
What is "dura"? Are you sure that it is the proper duration of each
frame, in microseconds?
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list