[Live-devel] Live video and audio streaming using one RTSPServer

Daniel Yacouboff danielya at essence-grp.com
Wed Nov 4 21:59:14 PST 2015


Hello Ross,
Thanks for the kind and fast reply.

Can you please give me a head start on how to correctly calculate the presentation times? For instance, do I need to have the same time value for an audio frame and a video frame that should be played together? Should I use a shared presentation time variable for both streams?
Thanks.

             

-----Original Message-----
From: live-devel [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Thursday, November 05, 2015 4:23 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Live video and audio streaming using one RTSPServer

> What am I doing wrong? I’ve read a lot about it and it seems my presentation times are not ok, but how can I calculate them properly?

Yes, the problem seems to be the presentation times (i.e., the values of the “fPresentationTime” member variable) that you’re setting for both your audio and video streams.

These values need to be properly synchronized, and aligned with ‘wall clock time’ - i.e., with the times that you’d get by calling “gettimeofday()”.

Because - as you say - “the audio and video packets are received via TCP from another service” - you may have difficulty computing accurate, synchronized presentation times for each audio and video frame.  But it’s something that you’ll need to do if you want clients to be able to play back the audio/video streams properly.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


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



More information about the live-devel mailing list