[Live-devel] frame skiping during streaming

Andrew Voznytsa andrew.voznytsa at gmail.com
Sun Jan 28 12:09:37 PST 2007


Ross Finlayson wrote:
>> Sorry, I misunderstood or it won't work.
>>
>> If after sending frame 0 I skip N frames and assign presentation time
>> 1*MILLION/fps for N+1 frame then I'll just lose audio/video sync because
>> I'm not skipping audio samples.
>>
>> (Skipping was meant for video only, source media has two streams: audio
>> and video).
> 
> OK, that was an important piece of information that should have been 
> mentioned before.  In this case, then, each video frame's 
> presentation time needs to match that of the audio frame with which 
> it is synchronized.
> 
> *In principle*, the "fDurationInMicroseconds" value for a frame 
> should be the difference in presentation times between this frame, 
> and the next frame that you'll send.  However, I can see that this 
> would be difficult if you don't know in advance which future frames 
> you're going to be skipping.
> 
> *In practice*, however, for (outgoing) RTP streaming, the 
> "fDurationInMicroseconds" value serves only to tell the 
> "MultiFramedRTPSink" class how long to wait, after sending each 
> packet, before asking the input source for new data.

Then *principal* solution would be better because of more smooth RTP 
streaming (MultiFramedRTPSink will have more time to send frame).

Thanks for help, I'll implement principal solution - it is more 
complicated but will give better results.

--
Best regards,
Andrew Voznytsa


More information about the live-devel mailing list