audio chopped after running for several hours

Peter Maersk-Moller pmaersk at gmail.com
Tue Jan 26 04:16:36 PST 2016


Hi Paixao.

Synchronizing the clock of sender system and receiver system using NTP is
also useful. This means running the ntp deaemon on both systems. Note that
ntpd over time calculate the drift of the internal system clock and that
may take some time to get right. Also note that the drift of an internal
clock may change depending on temperature and perhaps other factors.

Last but not least, some audio sources (audio cards, dsp etc.) may use
their own internal clock to produce the sample rate rather than system
clock. Here NTP will not help preventing drift. But GStreamer has a module
named audiorate that may, if I am not mistaken, can produce an audiorate
linked to the system clock and as described, the system clock might be
adjusted by NTP to synchronize.

Best Regards
Peter

On Tue, Jan 26, 2016 at 10:51 AM, Paixao Julien <J.Paixao at televic.com>
wrote:

> > -----Original Message-----
> > From: gstreamer-devel [mailto:gstreamer-devel-
> > bounces at lists.freedesktop.org] On Behalf Of Sebastian Dröge
> > Sent: Monday, January 25, 2016 7:00 PM
> > To: Discussion of the development of and with GStreamer <gstreamer-
> > devel at lists.freedesktop.org>
> > Subject: Re: audio chopped after running for several hours
> >
> > On Mo, 2016-01-25 at 14:16 +0000, Paixao Julien wrote:
> > > [...]
> > > I would be really glad to get any suggestions from the GStreamer
> > >devel mailing list members regarding this issue.
> >
> > You should insert an rtpjitterbuffer before the depayloader. Otherwise
> your
> > sender and receiver clocks will slowly drift apart until it becomes an
> audible
> > problem. Not sure if that is the problem in your case, but it's
> something that
> > is definitely going to happen so try that first.
> >
>
> That's something I haven't thought about yet, I am now busy trying it.
>
> > > FYI: I am using GStreamer version 1.0.7, the two devices are embedded
> > > devices where it's not so easy to upgrade the GStreamer package.
> >
> > You should still try that as there were a lot of changes in the RTP
> stack since
> > then, and also in other elements.
> >
>
> Indeed.
>
> I am now trying to make a setup where the choppy audio is automatically
> detected (no need to check on a scope time to time).
> And also trying to find a reproduction scenario, since this issue only
> appears after several hours.
>
> I'll get back with more information.
>
> Best regards,
> Julien Paixao.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160126/75092b62/attachment.html>


More information about the gstreamer-devel mailing list