<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 9:19 AM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Tue, 2016-10-25 at 21:01 +0200, ano ona wrote:<br>
> Hi, i'm new to gstreamer, played a little with the command line and<br>
> the C API. I have many issues, but don't know if it's coming from a<br>
> bad usage, my distro, or the framework itself. Sorry if the answer is<br>
> obvious.<br>
><br>
> My goal is to build a camera triggered by a PIR sensor on the<br>
> beagleboard black (BBB).<br>
><br>
> I made test on laptop and the BBB.<br>
><br>
> Here, i'll address an issue, i have on both the BBB and the laptop.<br>
> Both are on ArchLinux.<br>
><br>
> So, i'll start with one that is quite annoying knowing my goal.<br>
><br>
> I have this problem, on laptop and BBB, with cmd-line and API.<br>
><br>
> GStreamer Core Library version 1.9.90<br>
> kernel 4.8.4-1-ARCH<br>
><br>
> Here, is a link of the log of the command :<br>
><br>
> gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-<br>
> raw,format=YUY2,width=960,heig<wbr>ht=544,framerate=20/1' !  jpegenc  !<br>
> rtpjpegpay !  fakesink &> log.txt<br>
><br>
> <a href="http://pastebin.com/4WbpyCau" rel="noreferrer" target="_blank">http://pastebin.com/4WbpyCau</a><br>
><br>
> U can see at line 151-152 the time it takes : 13scec<br>
><br>
> maybe it's gst_v4l2_object_probe_caps that takes this time ?<br>
<br>
</span>Take a look at a full debug log to check where time is spent, or use a<br>
profiler for that. A debug log should be enough for this huge amount of<br>
time though.<br>
<br>
It could be anything really. You probably also want to add a queue<br>
after v4l2src in your pipeline to make it possible that v4l2src and the<br>
jpeg encoding can run on different CPU (cores).<br>
<br>
<br>
It could be the probing though, maybe we run into a tricky case here<br>
and probe too many formats, which might be slow with your camera to do.<br>
<span class="gmail-m_-2879453214688257273HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a></font></span><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br></blockquote></div><br><br></div><div class="gmail_extra">The log is 13Mb :<br><a href="https://github.com/ano-ona/peekamboo/blob/master/log2.txt">https://github.com/ano-ona/peekamboo/blob/master/log2.txt</a><br><br></div><div class="gmail_extra">and the compressed one :<br><a href="https://github.com/ano-ona/peekamboo/blob/master/log2.tar.gz">https://github.com/ano-ona/peekamboo/blob/master/log2.tar.gz</a><br></div><div class="gmail_extra"><br>gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,format=YUY2,width=960,height=544,framerate=20/1' ! queue ! jpegenc  ! rtpjpegpay !  fakesink &> log2.txt<br><br></div><div class="gmail_extra">there are 2 functions(log line) taking each 7 sec.<br></div></div>