<div dir="ltr">Hello everyone,<br><br>We are using GStreamer to record video on our opensource software called Galicaster, and we had an issue when starting several recordings in fast succession. We narrowed it down to the GStreamer pipeline in C, and we discovered what seems to be an issue with the gstv4l2allocator when a recording closes. When this issue happens, the device is 'busy' for the next pipeline.<br><br>The script we used for testing is the following:<br><a href="http://paste.ubuntu.com/23284568/">http://paste.ubuntu.com/23284568/</a><br><br>It executes a simple pipeline over and over using the same device until it fails.<br><br>We executed the script with GST_DEBUG=3 and we got the following error (full output in <a href="http://paste.ubuntu.com/23284592/">http://paste.ubuntu.com/23284592/</a>):<br><pre>0:00:27.492185197 11963      0x25bc830 ERROR          v4l2allocator gstv4l2allocator.c:1245:gst_v4l2_allocator_qbuf:<gc-v4l2-src:pool:src:allocator> failed queueing buffer 1: Invalid argument
0:00:27.492207147 11963      0x25bc830 ERROR         v4l2bufferpool gstv4l2bufferpool.c:1127:gst_v4l2_buffer_pool_qbuf:<gc-v4l2-src:pool:src> could not queue a buffer 1
</pre><br>This was reproduced on an Ubuntu 16.04.1 machine with GStreamer version 1.8.2 using the Logitech HD Webcam C910 and the HD Pro Webcam C920. We could also reproduce this behaviour with lower quality Logitech cameras, but it would take longer to reproduce. It seems that the chance to reproduce the issue is proportional to the video bandwidth.<br><br>We think it's a regression bug, because we were not able to reproduce said behavior on the GStreamer 0.10 and 1.2 versions.<br><br>I attached a gist with more information about the tests we did:<br><a href="https://gist.github.com/Alfro/d94deab6b5b5314f2cee8167019c7239">https://gist.github.com/Alfro/d94deab6b5b5314f2cee8167019c7239</a><br><br>Should we create a bug in bugzilla with this information? Does anyone have a similar experience?<br><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><span style="color:rgb(0,0,0)">Regards, <br><br><b>Alfonso Rodríguez Pereira<br>TELTEK Video Research</b><br><a href="http://teltek.es/" target="_blank">http://teltek.es/</a><br></span></font></span></div></div></div></div></div></div></div></div></div></div></div>
<div dir="ltr"></div></div>