how is the presentationtime of two streams synchronised?<br />
I have to synchronise the mpeg-4 es and a wave file. I am able to send the two streams together by creating single servermediasession and adding two separate servermediasubsession, but they are not synchronised. <br />
In case of mpeg-4 es video, the gettimeofday() is getting called when the constructor of MPEGVideoStreamFramer is called and in case of wave, in WAVAudioFileSource::doGetNextFrame(). I think due to this the video and audio is not getting synchronised. So in this case how should i synchronise the audio and video?<br />
<br />
Regards,<br />
Nisha<br />
<br />
On Sun, 25 Jul 2010 15:14:30 +0530 wrote<br />
>>We successfully combined the two streams into one stream and it works great.<br />
<br />
<br />
<br />
Good. As you figured out, you can do this just by creating a single <br />
<br />
"ServerMediaSession" object, and adding two separate <br />
<br />
"ServerMediaSubsessions" to it.<br />
<br />
<br />
<br />
<br />
<br />
>The Audio and Video are on the same url address. As it seems to us the Audio<br />
<br />
>and Video are synchronized but we are not sure if we need to handle it (in<br />
<br />
>some way other then setting presentation time) or it all handle in your<br />
<br />
>library. The only thing we are currently doing is to update presentation<br />
<br />
>time for the audio and for the video. We appreciate your input on this<br />
<br />
>matter<br />
<br />
<br />
<br />
Yes, if the presentation times of the two streams are in sync, and <br />
<br />
aligned with 'wall clock' time (i.e., the time that you'd get by <br />
<br />
calling "gettimeofday()"), and you are using RTCP (which is <br />
<br />
implemented by default in "OnDemandServerMediaSubsession"), then you <br />
<br />
will see A/V synchronization in standards-compliant clients.<br />
<br />
-- <br />
<br />
<br />
<br />
Ross Finlayson<br />
<br />
Live Networks, Inc.<br />
<br />
http://www.live555.com/<br />
<br />
_______________________________________________<br />
<br />
live-devel mailing list<br />
<br />
live-devel@lists.live555.com<br />
<br />
http://lists.live555.com/mailman/listinfo/live-devel<br />
<br />
<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>