[Live-devel] Lip synchronization problem

David Arnold darnold at futurec.net
Fri Feb 3 13:43:33 PST 2006


Ross,

My server code is based on testOnDemandRTSPServer.  In other words, I
modeled the code based on how testOnDemandRTSPServer created sessions and
subsessions, etc.  Is there anything extra that I need to do to create the
required "RTCPInstance" objects?

Dave

-----Original Message-----
From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com]On Behalf Of Ross Finlayson
Sent: Friday, February 03, 2006 12:26 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Lip synchronization problem


At 10:39 AM 2/3/2006, you wrote:
>I am experiencing a lip synchronization problem.  I am streaming audio and
>video using liveMedia and viewing the stream using VLC and I am noticing
>that the audio and video are out of sync.  The video is an MPEG4 ES and the
>implementation is derived from FramedSource and uses
>MPEG4VideoStreamDiscreteFramer.  The audio is MP3 and uses the
>MP3AudioFileServerMediaSubsession class.  Using LiveMedia and VLC, should I
>expect the audio and video to be synchronized perfectly?  I'm trying to
>determine if there is a problem in my code, LiveMedia, VLC, or if what I am
>experiencing is normal.

Dave,

The problem is most likely in your server code.  For A/V
synchronization to work, you (i) *must* use RTCP (i.e., you must have
a "RTCPInstance" for each "RTPSink"), and (ii) your source objects
(for both audio and video) *must* generate accurate presentation time
values (by setting "fPresentationTime"), which must correspond to
real, 'wall clock' time.  I.e., the presentation times generated by
your source objects can't start with 0.0; they must start with a time
generated by calling "gettimeofday()".


	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)
	<http://www.live555.com/>

_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

The information contained in this electronic mail transmission is intended only for the use of the individual or entity named above and is privileged and confidential. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others. Any dissemination, distribution or copying of this communication other than to the person or entity named above is strictly prohibited. If you have received this communication in error, please immediately delete it from your system.




More information about the live-devel mailing list