[Bug 767086] New: v4l2src pushes incomplete raw video buffers

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue May 31 19:23:32 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=767086

            Bug ID: 767086
           Summary: v4l2src pushes incomplete raw video buffers
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: n770galaxy at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

With Inogeni 4K2USB3 (uvc device) sometime we push few raw video buffers that
smaller than expected at the beginning of the stream. This leads to downstream
elements to fail mapping the buffer.

GST_DEBUG=v4l2src:6,v4l2bufferpool:6,v4l2allocator:6 gst-launch-1.0 -q
--gst-debug-no-color v4l2src ! video/x-raw, format=NV12, width=1920,
height=1080, framerate=\(GstFraction\)60/1 ! queue ! vaapih264enc ! fakesink 2>
~/gst.log

```
0:00:01.022924707  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:945:gst_v4l2_buffer_pool_flush_stop:<v4l2src0:pool:src>
stop flushing
0:00:01.023306617  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:623:gst_v4l2_buffer_pool_streamon:<v4l2src0:pool:src>
Started streaming
0:00:01.023517695  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1300:gst_v4l2_buffer_pool_acquire_buffer:<v4l2src0:pool:src>
acquire
0:00:01.023577922  3537      0x2571ad0 LOG           v4l2bufferpool
gstv4l2bufferpool.c:1017:gst_v4l2_buffer_pool_poll:<v4l2src0:pool:src> polling
device
0:00:01.023637313  3537      0x2571ad0 LOG           v4l2bufferpool
gstv4l2bufferpool.c:1149:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool:src>
dequeueing a buffer
0:00:01.023705512  3537      0x2571ad0 LOG            v4l2allocator
gstv4l2allocator.c:1306:gst_v4l2_allocator_dqbuf:<v4l2src0:pool:src:allocator>
dequeued buffer 0 (flags 0x12005)
0:00:01.023755785  3537      0x2571ad0 DEBUG          v4l2allocator
gstv4l2allocator.c:1310:gst_v4l2_allocator_dqbuf:<v4l2src0:pool:src:allocator>
driver pretends buffer is queued even if dequeue succeeded
0:00:01.023792180  3537      0x2571ad0 LOG           v4l2bufferpool
gstv4l2bufferpool.c:1181:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool:src>
dequeued buffer 0x7f3c10024020 seq:0 (ix=0), mem 0x256bd80 used 16092, plane=0,
flags 00012001, ts 0:13:49.994804000, pool-queued=1, buffer=0x7f3c10024020
0:00:01.023878313  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1704:gst_v4l2_buffer_pool_process:<v4l2src0:pool:src>
process buffer 0x7f3c1fffed08
0:00:01.023942762  3537      0x2571ad0 DEBUG                v4l2src
gstv4l2src.c:774:gst_v4l2src_create:<v4l2src0> ts: 0:13:49.994804000 now
0:13:49.995415403 delay 0:00:00.000611403
0:00:01.024030202  3537      0x2571ad0 INFO                 v4l2src
gstv4l2src.c:810:gst_v4l2src_create:<v4l2src0> sync to 0:00:00.016666666 out ts
0:00:00.746377358
0:00:01.024271077  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1300:gst_v4l2_buffer_pool_acquire_buffer:<v4l2src0:pool:src>
acquire
0:00:01.024349631  3537      0x2571ad0 LOG           v4l2bufferpool
gstv4l2bufferpool.c:1017:gst_v4l2_buffer_pool_poll:<v4l2src0:pool:src> polling
device
0:00:01.024337878  3537      0x2571a30 ERROR                default
video-frame.c:161:gst_video_frame_map_id: failed to map video frame plane 1
0:00:01.031779897  3537      0x2571ad0 LOG           v4l2bufferpool
gstv4l2bufferpool.c:1149:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool:src>
dequeueing a buffer
0:00:01.031839315  3537      0x2571ad0 LOG            v4l2allocator
gstv4l2allocator.c:1306:gst_v4l2_allocator_dqbuf:<v4l2src0:pool:src:allocator>
dequeued buffer 1 (flags 0x12005)
0:00:01.031879412  3537      0x2571ad0 DEBUG          v4l2allocator
gstv4l2allocator.c:1310:gst_v4l2_allocator_dqbuf:<v4l2src0:pool:src:allocator>
driver pretends buffer is queued even if dequeue succeeded
0:00:01.031909941  3537      0x2571ad0 LOG           v4l2bufferpool
gstv4l2bufferpool.c:1181:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool:src>
dequeued buffer 0x7f3c10024130 seq:1 (ix=1), mem 0x256bea0 used 3110400,
plane=0, flags 00012001, ts 0:13:49.994840000, pool-queued=0,
buffer=0x7f3c10024130
0:00:01.031970462  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1704:gst_v4l2_buffer_pool_process:<v4l2src0:pool:src>
process buffer 0x7f3c1fffed08
0:00:01.032002386  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:675:gst_v4l2_buffer_pool_resurect_buffer:<v4l2src0:pool:src>
A buffer was lost, reallocating it
0:00:01.032032683  3537      0x2571ad0 DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1300:gst_v4l2_buffer_pool_acquire_buffer:<v4l2src0:pool:src>
acquire
```

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list