Hi!

In my previous post, I forgot to mention that I could get it to work by 
"cheating" a little bit on the RTP clocks.  If I replace the 16000Hz clock of 
the mpeg stream by 90000, the same as h264, the two streams sync in the same 
range and play properly.  I saw some VLC whining in the logs though.  Could it 
be an overflow somewhere in the timestamps calculations?  I'm pretty sure 
changing the clock isn't the solution but maybe it can give a clue on where the 
issue lies.
If it can help, I'm compiling my module for Windows x64 and I can observe the 
issue on a Linux 32bits box too.

For RTCP-based a/v synchronization to work properly for streams that are sent 
by the LIVE555 RTSP server implementation, two things have to be true:
1/ The presentation times for each frame have to be accurate (obviously), and
2/ The presentation times have to be aligned with 'wall-clock' time - i.e., 
times that would be generated by calling "gettimeofday()".

At first I assumed the timestamps were right because they come out of the live 
library and my algorithm waits for the RTCP synchronisation to occur before 
feeding the streams into the rtsp server.  After investigating this second 
point, I found an issue with my timestamps.  My camera's date is somewhere in 
2003 making synchronized timestamps way back in the past.  If I correct the 
camera's date and time it fixes the issue I observed making my module and the 
proxy server working.  This raises a new question: Is it possible to overcome 
the case where the sender has an incorrect date and time? For now I can fix the 
camera's date and time but I can't take this for granted when the system will 
be released.

(Out of curiosity, does VLC play the stream OK (i.e., without any a/v sync 
problems) if you try playing it directly from the network camera (i.e., not 
through a proxy)?)
Yes, the streams are played properly when vlc connects directly to the camera, 
even when the camera streams from the past.

Thanks again for your support,
Bruno
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to