<div dir="ltr">Ok, thanks for the info. I'll just deal with it for now then I suppose.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 9:05 AM, Robert Krakora <span dir="ltr"><<a href="mailto:rob.krakora@messagenetsystems.com" target="_blank">rob.krakora@messagenetsystems.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Adam,<div><br></div><div>I echo Tim's comments...plus, there are a lot of unneeded memory copies occurring in v4l2src which pushes up CPU consumption (30->40% CPU usage per C920 v4l2src instance).  I hacked the v4l2src code and was able to get the CPU consumption down to the levels of GStreamer 0.10 v4l2src at about 8->15% CPU usage.  I think that there is work being done to rectify this.</div>

<div><br></div><div>Best Regards,</div><div><br></div><div>Rob Krakora</div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Sun, Sep 8, 2013 at 2:17 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 2013-09-08 at 21:24 +1200, Adam Goodwin wrote:<br>
<br>
Hi Adam,<br>
<br>
> I have a pipeline in a C application which I've noticed doesn't work<br>
> smoothly with more than one camera.<br>
><br>
><br>
> Currently I'm using two Logitech C920 cameras (with hardware H264<br>
> encoding) in a pipeline which has these branches from the two cameras:<br>
><br>
><br>
> v4l2src--->queue--->capsfilter--->h264parse--->tee---><br>
><br>
><br>
> v4l2src--->queue--->capsfilter--->h264parse--->tee---><br>
><br>
><br>
> After the tees, there are these two branches:<br>
><br>
><br>
> --->queue--->rtph264pay--->udpsink<br>
><br>
><br>
><br>
> --->matroskamux--->queue--->filesink<br>
><br>
><br>
> Each tee feeds into the matroskamux branch, which creates a file with<br>
> (in this case) two video streams. Only one of the tees is linked to<br>
> the network streaming branch at a time (the user can switch the linked<br>
> tee when the application runs).<br>
><br>
><br>
> What I notice is that the program runs fine, and terminates fine when<br>
> the user forces an EOS, but the received video (from over the network,<br>
> currently just to 127.0.0.1) has quite a lot of artifacts.<br>
><br>
> When I open the resulting MKV file (with VLC) the two video streams<br>
> are displayed. However, there are similar artifacts to those seen when<br>
> displaying the video live from UDP/RTP. The video also hangs for a few<br>
> frames periodically, maybe once every couple of seconds. Finally, the<br>
> timing is also wrong for the MKV.<br>
><br>
> For example, in a 47 second video, VLC kept track of the current time<br>
> correctly up until 8 seconds in. Then the time displayed by VLC got<br>
> stuck at 48 seconds(!) while the progress bar for the video continued<br>
> to show the correct stream position right up until the video ended<br>
> after 47 seconds.<br>
><br>
><br>
> None of these problems happen with either the RTP stream or the MKV<br>
> file when only one camera is connected and used. (Well, the MKV<br>
> playback getting stuck on the same frame every few seconds still<br>
> happens, but that's the least of my problems).<br>
><br>
><br>
> Does anyone have any ideas what could be wrong? I thought it could be<br>
> something to do with not having enough threads, which I've read can be<br>
> a problem with a branching pipeline, but each branch has a queue<br>
> element so I don't know what else to do.<br>
<br>
Maybe it's related to<br>
<br>
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=706083" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=706083</a><br>
<br>
only that running it with two cameras increases the chances of it<br>
happening?<br>
<br>
Cheers<br>
 -Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><div dir="ltr"><table cellpadding="2" cellspacing="0" width="426"><colgroup><col width="422"></colgroup><tbody><tr><td style="border:none;padding:0in" valign="TOP" width="422">

<p><font face="Arial, sans-serif"><font size="4">Rob Krakora</font><font size="4">,</font><br>Senior Software Engineer</font></p><p><font face="Arial, sans-serif">MessageNet Systems<br>101 E Carmel Dr, Suite 105<br>Carmel, IN 46032</font></p>

<p><a href="http://www.messagenetcommunicationsystems.com/?utm_source=email+signature&utm_medium=email&utm_campaign=email+signature+to+homepage" style="color:rgb(17,85,204)" target="_blank"><font color="#1155cc"><font face="Arial, sans-serif">MessageNetSystems.com</font></font></a><font face="Arial, sans-serif"><br>

</font><a href="mailto:rob.krakora@messagenetsystems.com" style="color:rgb(17,85,204)" target="_blank"><font color="#1155cc"><font face="Arial, sans-serif">Rob.Krakora@MessageNetSystems.com</font></font></a><font face="Arial, sans-serif"><br>

P: </font><a style="color:rgb(17,85,204)"><font color="#1155cc"><font face="Arial, sans-serif">317.566.1677</font></font></a><font face="Arial, sans-serif">, 21</font><font face="Arial, sans-serif">2</font><font face="Arial, sans-serif"><br>

F: </font><a style="color:rgb(17,85,204)"><font color="#1155cc"><font face="Arial, sans-serif">317.663.0808</font></font></a></p></td></tr><tr><td style="border-top-width:1px;border-style:solid none none;border-top-color:rgb(0,0,0);padding:0.02in 0in 0in" valign="TOP" width="422">

<p><font face="Arial, sans-serif"><font style="font-size:8pt">For the latest news, information, and blogs, please be sure to visit, follow, and like us...</font></font></p><p><font color="#1155cc"><a href="http://www.messagenetcommunicationsystems.com/get-the-message-out-blog/?utm_source=email+signature&utm_medium=email&utm_campaign=gmail+signature+to+blog" style="color:rgb(17,85,204)" target="_blank"><img name="140ff66d12c83814_SafeHtmlFilter_14040bc6244eae96_graphics46" align="BOTTOM" border="0" height="34" width="34"></a>  <a href="http://www.youtube.com/user/MessageNetConnection/feed" style="color:rgb(17,85,204)" target="_blank"><img name="140ff66d12c83814_SafeHtmlFilter_14040bc6244eae96_graphics47" align="BOTTOM" border="0" height="34" width="34"></a>  <a href="http://www.linkedin.com/company/messagenet-systems" style="color:rgb(17,85,204)" target="_blank"><img name="140ff66d12c83814_SafeHtmlFilter_14040bc6244eae96_graphics48" align="BOTTOM" border="0" height="34" width="34"></a>  <a href="http://twitter.com/MessageNet" style="color:rgb(17,85,204)" target="_blank"><img name="140ff66d12c83814_SafeHtmlFilter_14040bc6244eae96_graphics49" align="BOTTOM" border="0" height="34" width="34"></a>  <a href="http://www.facebook.com/MessageNetsystems" style="color:rgb(17,85,204)" target="_blank"><img name="140ff66d12c83814_SafeHtmlFilter_14040bc6244eae96_graphics50" align="BOTTOM" border="0" height="34" width="34"></a></font></p>

</td></tr></tbody></table></div>
</div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>