Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting real-time streaming to be more real-time



First, many thanks to Kevin Marks for helping me get my ulaw-and-jpeg 
streaming server to talk to Quicktime player.  I am now successfully streaming 
synchronized audio and video over RTP.

My next question is about buffering and latency.  RFC 1890 specifies a clock 
rate for ulaw (8000Hz) and jpeg (90000Hz).  With each RTP packet, you include 
a timestamp which is the sampling instant of that data.  If my timestamps are 
incremented according to the RFC, my audio and video are synchronized, but 
there is about a 5 second latency, like maybe Quicktime is buffering up 5 
seconds in case of network burpage.

If I "lie" about the jpeg timestamps, and increment the stamp by, say, 4000 
each second instead of 90000 each second, the video runs without perceptible 
latency, but the audio is still lagging.  If I try to lie about the audio 
rate, I get no audio at all.  I can't seem to lower the latency on the audio.

My goal is to get both the audio and video to have low delay.  Does Quicktime 
always buffer the stream for some set number of seconds, or is there something 
I can do with the stream to tell it not to do that?

Are there folks out there using the streaming server to stream live content 
with minimal delay?

Thanks,
Jim




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.