I get the time by gettimeofday, and they are equal in the video and audio’s stream.
发件人: live-devel-boun...@ns.live555.com [mailto:live-devel-boun...@ns.live555.com] 代表 Ross Finlayson 发送时间: 2012年9月17日 16:08 收件人: LIVE555 Streaming Media - development & use 主题: Re: [Live-devel] Regarding the audio and video sync But unfortunately, I use vlc to access it, it can’t work correctly. If video is appear, then audio disappears. Otherwise, audio appears, video disappears. This is probably because the presentation time ("fPresentationTime") values for the audio and video streams are not properly synchronized. Remember, the audio and video presentation times need to come from the same time base, which needs to be aligned with 'wall clock' time (the time that you would get by calling "gettimeofday()"). You haven't said what your "GetTimeScale()" function (the function that sets the first presentation time for each substream) does, but it needs to be equivalent to calling "gettimeofday()". In any case, I've spent enough time on this - so this will be my last posting on this topic. 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