<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 24 juin 2022, 14 h 14, Michiel Konstapel <<a href="mailto:michiel@aanmelder.nl">michiel@aanmelder.nl</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p>Hi Nicolas,<br>
</p>
<div>On 24-06-2022 19:50, Nicolas Dufresne
via gstreamer-devel wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div>Hi,<br>
<br>
<div class="gmail_quote"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
gstv4l2bufferpool.c:478:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src>
<br>
newly allocated buffer 1 is not free<br>
<br>
Despite the warnings, the pipeline appears to work, but I
would prefer <br>
it to not spam warnings continuously :) Any ideas? This is
on Ubuntu <br>
20.04, on different PCs and with different cameras.<br>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Do you have any information about the driver?</div>
</div>
</blockquote>
<p>It's a very common Logitech C920 webcam (but I've seen the same
message with a Z-Cam M3 camera). I think that uses a generic UVC
driver? Anything I can run to get you more info?</p></div></blockquote></div></div><div dir="auto">I'm asking as I cannot reproduce, and from the look of it, the trace implies is will leak data. Which Kernel? Have you tested with your own GStreamer build (main branch)?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<p> Something interesting perhaps:<font face="monospace"><br>
</font></p>
<p><font face="monospace">v4l2-ctl -d /dev/video2 --list-formats<br>
ioctl: VIDIOC_ENUM_FMT<br>
Index : 0<br>
Type : Video Capture<br>
Pixel Format: 'YUYV'<br>
Name : YUYV 4:2:2<br>
<br>
Index : 1<br>
Type : Video Capture<br>
Pixel Format: 'MJPG' (compressed)<br>
Name : Motion-JPEG</font></p>
<p>If I use the YUYV mode, I *don't* get the warning:</p>
<p><font face="monospace">GST_DEBUG=3 gst-launch-1.0 v4l2src
device=/dev/video2 ! video/x-raw ! videoconvert ! autovideosink</font></p>
<p>reports no warnings (but the framerate is awful, of course).</p>
<p>HTH,<br>
Michiel<br>
</p>
</div>
</blockquote></div></div></div>