<div dir="ltr">Tim - <div><br></div><div>It's version 1.6.2. I was finally able to get rid of the delay by removing the queue in the audio portion of the pipeline however, I do now get a single message like this:</div><div><br></div><div><div>WARNING: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Can't record audio fast enough</div><div>Additional debug info:</div><div>gstaudiobasesrc.c(866): gst_audio_base_src_create (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:</div><div>Dropped 33957 samples. This is most likely because downstream can't keep up and is consuming samples too slowly.</div><div><br></div><div>An unrelated question, when I begin the stream (which is native H.264 from the camera), there are heavy artifacts and blocking. After about a second it clears up as the frame refreshes.</div><div><br></div><div>Is there a way to eliminate this issue through gstreamer? Or is this specific to my camera?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 28, 2016 at 2:15 AM,  <span dir="ltr"><<a href="mailto:gstreamer-devel-request@lists.freedesktop.org" target="_blank">gstreamer-devel-request@lists.freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
Date: Thu, 28 Jan 2016 10:06:32 +0000<br>
From: Tim Müller <<a href="mailto:tim@centricular.com">tim@centricular.com</a>><br>
To: <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
Subject: Re: audio/video out of sync<br>
Message-ID: <<a href="mailto:1453975592.8177.9.camel@centricular.com">1453975592.8177.9.camel@centricular.com</a>><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Wed, 2016-01-27 at 16:32 -0800, Robert Armstrong wrote:<br>
<br>
Hi,<br>
<br>
> The audio is about half a second behind with this pipeline. I've<br>
> tried removing and adding queues in various places but nothing seems<br>
> to resolve it.<br>
><br>
> gst-launch-1.0 -e v4l2src device=/dev/video1 do-timestamp=true !<br>
> queue ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse<br>
> ! queue ! mux.video_0 alsasrc device="plughw:2,0" ! audioconvert !<br>
> lamemp3enc ! queue ! mux. mp4mux name=mux ! filesink sync=true<br>
> location=camera.mp4<br>
><br>
> What else can I do to fix it?<br>
<br>
Which version of GStreamer is this with?<br>
<br>
Pipeline looks fine in principle. You shouldn't need the do-<br>
timestamp=true on v4l2src.<br>
<br>
Is the video in sync if you capture video/x-raw from the camera and<br>
then encode it with x264enc tune=zerolatency ?<br>
<br>
How far off is it? And is it a constant offset or does it increase over<br>
time?<br>
<br>
I suspect perhaps there's an encoding delay inside the device if the<br>
camera outputs H264 that's not taken into account.<br>
<br>
You could also try a different audio encoder such as voaacenc, I seem<br>
to remember an issue where lamemp3enc would timestamp things wrongly<br>
over time (but it's unlikely you're using a version that old I think,<br>
it was fixed in 1.2).<br>
<br>
Cheers<br>
 -Tim<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br></blockquote></div></div></div></div>