Best Way to Synchronize Realtime Audio streams with Video Streams?

Yu You youyu.youyu at gmail.com
Mon Jun 13 10:05:40 UTC 2022


Without a working example, I still believe the A/V sync could be done with
the element "rtpbin" with multiple udpsrc elements.

Regards,

Yu

On Mon, 13 Jun 2022 at 09:22, Florian Echtler via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:

> Hello Abrar,
>
> having tried the exact same thing without much success some while ago, I
> would
> recommend to just use WebRTC (i.e. the webrtcbin element) for synchronized
> A/V
> streaming. But it obviously depends on your usecase whether that is
> feasible.
>
> Best, Florian
>
> On 13.06.22 01:45, Abrar Shahriar via gstreamer-devel wrote:
> > Hi,
> >
> > I will synchronize microphone data from a sender via UDP src sink with
> video
> > data coming from a camera, but not sure what the best way is.
> >
> > Right now, I take timestamps (PTP) at mic and video src plugin src pads
> and add
> > it to RTP header metadata.
> >
> > My receiver app receives data via udpsrc, has a pipeline for video and
> one for
> > audio. It can read the timestamps at sink pad of RTP depay elements.
> >
> > What can I do to make sure audio is within 30ms of video, for say proper
> lipsync
> > and such.
> >
> > Also will want to adjust audio video offset at runtime to compensate for
> display
> > latency, etc.
> >
> > Thanks,
> > Abrar
> >
> > シャハリアル
> >
> > ーーーーーーーーー
> >
> > アブラル・ザヒン・シャハリアル(Abrar Zahin Shahriar)
> >
> > ハイパーダイン株式会社
> > 〒108-0014 東京都港区芝5丁目9-12 3階
> >
>
>
> --
> SENT FROM MY DEC VT50 TERMINAL
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220613/860d91ca/attachment.htm>


More information about the gstreamer-devel mailing list