[Live-devel] 答复: Regarding the audio and video sync

梦幻工作室 fantasyvideo at 126.com
Mon Sep 17 01:51:46 PDT 2012


I get the time by gettimeofday, and they are equal in the video and audio’s
stream.

 

发件人: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at 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/ 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120917/f8335e0e/attachment.html>


More information about the live-devel mailing list