What do I have to do to synchronize the audio and video streams if they are transmitted on separate RTP sessions?
JMF supports audio and video synchronization over RTP based on the model specified in the RTP spec. Each RTP data stream is matched with the corresponding RTCP stream to correctly determine the media timestamps. That is then used to synchronize the streams sent from the same user as identified by the cname (canonical name) of that user. Even when the streams are sent from different sessions (RTPManager), the streams from the same user will be synchronized as long as the streams all carry the same cname.So from the programming point of view, if you create two sessions (RTPManager’s) for audio and video, you’ll need to make sure both sessions are initialized with the same cname (inside SourceDescription) in order to guarantee A/V synchronization.Check the AVTransmit on the solutions page for more detail: http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVTransmit.
Related Questions
- Can Vegas Pro 9 synchronize a video clip with a different audio clip and then save that as a separate media file that can be used later in the trimmer?
- Why do most RTP sessions use separate streams for audio and video? How can a receiving client synchronize these streams?
- What do I have to do to synchronize the audio and video streams if they are transmitted on separate RTP sessions?