[Live-devel] streaming video and audio via RTSP
Mike Gilorma
mike.gilorma at apogeelabs.com
Tue Jun 10 14:28:16 PDT 2008
According to the output from VLC it says the rtp source has been
synchronized twice (once for each??). I looked through the code and see
where the timestamp is getting set for each packet, the absolute time
for each packet is very close, but after convertToRTPTimestamp gets
called the time stamps for each stream are way off. Is this what is
expected?
I haven't disabled any of the streams in VLC, but do notice that the
timer in the lower corner counts up to 2 seconds then starts over at 0.
Not sure if that has something to do with anything, just thought I would
mention it. At this point however, I am more concerned with
synchronizing the streams than with VLC acting weird.
Thanks for the assistance,
-Mike
On Tue, 2008-06-10 at 11:24 -0700, Jerry Johns wrote:
> For both streams to be synchronized, u need to ensure that you set the
> presentationTime for each packet of either audio or video – that is
> the only way a receiver can synchronize what otherwise would seem to
> be asynchronously transmitted streams. This can be done by getting it
> from the input stream, or by manually calculating it using increments
> of the frame time, etc. The latter method is however prone to drift,
> and might not be applicable in all codec scenarios (variable time
> encoded frames). The drift might also cause VLC/Quicktime to lose sync
> after a while
>
>
>
> As for your video/audio streams playing back, VLC will play them back
> at the same time by default, unless you have disabled it manually (go
> to the Video-> and Audio-> tabs to see if your stream is active, you
> can disable it there too and that might have been what you did)
>
>
>
> Hope it helps,
>
>
>
> Jerry
>
>
> _______________________________________________
> 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