Sync rpicamsrc and appsrc in RTSP server

Sebastian Dröge sebastian at centricular.com
Wed Nov 2 07:48:55 UTC 2016


On Mon, 2016-10-31 at 06:47 -0700, bomba wrote:
> Hello,
> 
> I've got an RTSP server streaming combined audio and video:
> 
> Video comes from raspberry pi camera module element, rpicamsrc.
> Audio comes from an usb-serial connected ogg encoder, injected using
> appsrc.
> 
> rpicamsrc -> videocaps -> h2s4parse -> rtph264pay pt=96
> appsrc -> oggdemux -> vorbisdec -> audioconvert -> audioresample ->
> alawenc
> -> rtppcmapay pt=97
> 
> It works, but the audio/appsrc branch is ~4 seconds late. 
> 
> How can I sync this? any suggestions?

Where do you measure that it is late and how?

How do you provide data to appsrc, do you set timestamps on buffers?
What properties do you set on appsrc?

-- 
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/20161102/3c66d33e/attachment-0001.sig>


More information about the gstreamer-devel mailing list