AV synchronization rtp.

Sebastian Dröge sebastian at centricular.com
Mon Sep 26 06:22:54 UTC 2016


On Sun, 2016-09-25 at 03:30 -0700, BogdanS wrote:
> I have two apps.
> One takes audio from some source, rtp payload and sends it to udpsink.
> Second takes video from another source, rtp payload and sends to udpsink.
> 
> On reciever side I recive two streams and save them to pcap's.
> 
> My problem that sometimes I turn off for sec audio source, and sometimes
> videosource. 
> When I try to convert pcap to avi, it's not synchronized. 
> 
> How I can to do synchronization( when saving to file) when I receive from
> two different sources? 
> Usually what way people uses?

There are no means for synchronization between different streams in RTP
alone, only for a single stream by itself. You need additional
information from elsewhere to do that.

This is provided by RTCP for example, or a higher-level protocol like
RTSP. Just dumping different RTP streams to a PCAP will not preserve
any of this information.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160926/220ecf6a/attachment-0001.sig>


More information about the gstreamer-devel mailing list