<div dir="ltr">Hi Peter,<div><br></div><div>I took the liberty of instrumenting both the v4l2src plugin and the UVC driver with the same JPEG container parsing code that is in the uvch264src plugin. The JPEG container parsing code I placed in the v4l2src plugin fails just as it does in the uvch264src plugin. However, the JPEG container parsing code I placed in the UVC driver does not fail. Below are excerpts from v4l2src plugin log and the UVC driver log. <span style="background-color:rgb(255,255,0)">This</span> area in both logs differs in the size of the first segment. However, in the parse of the previous buffer, the size of the first segment is identical.</div>
<div><br></div><div>Best Regards,</div><div><br></div><div>Rob<div><br></div><div><div>JPEG Container Parsing in v4l2src Plugin (look at <span style="background-color:rgb(255,255,0)">this</span> section):</div></div><div>
<br></div><div><div>0:00:34.755137572 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0> process buffer 0x7f09cc007180</div><div>0:00:34.755181248 18164 0x24dc540 DEBUG v4l2src gstv4l2src.c:823:gst_v4l2src_fill:<v4l2src0> ts: 2:07:27.925825000 now 2:07:28.086122248 delay 0:00:00.160297248</div>
<div>0:00:34.755223877 18164 0x24dc540 INFO v4l2src gstv4l2src.c:861:gst_v4l2src_fill:<v4l2src0> sync to 0:00:34.199999658 out ts 0:00:34.349578926</div><div>0:00:34.760697434 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0> release buffer 0x7f09cc007180</div>
<div>0:00:34.762284743 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:673:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> enqueue buffer 0x7f09cc007180, index:1, queued:3, flags:00002003 used:0</div>
<div>0:00:34.762355236 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing QBUF</div><div>0:00:34.762413220 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0> acquire</div>
<div>0:00:34.762431855 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device</div><div>0:00:34.785921654 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing DQBUF</div>
<div>0:00:34.786001454 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:769:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> dequeued buffer 0x7f09cc007290 seq:1027 (ix=2), used 220797, flags 00002005, ts 2:07:27.954131000, pool-queued=3, buffer=0x7f09cc007290</div>
<div>0:00:34.786071639 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (13383). JPG: 0-8 - APP4: 8 - 13393</div><div>0:00:34.786097865 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - H264 1920x1080 -- 333333 *100ns -- 27 ms -- 861981296</div>
<div>0:00:34.786130509 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 13355 bytes</div><div>0:00:34.786148983 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 13393-13393 - APP4: 13393 - 78928</div>
<div>0:00:34.786172606 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - YUY2 432x240 -- 333333 *100ns -- 27 ms -- 861981296</div>
<div>0:00:34.786202392 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 207360 bytes</div><div>0:00:34.786220272 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 78928-78928 - APP4: 78928 - 144463</div>
<div>0:00:34.786243820 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 144463-144463 - APP4: 144463 - 209998</div>
<div>0:00:34.786267147 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (10795). JPG: 209998-209998 - APP4: 209998 - 220795</div>
<div>0:00:34.787331008 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0> process buffer 0x7f09cc007290</div><div>0:00:34.787375096 18164 0x24dc540 DEBUG v4l2src gstv4l2src.c:823:gst_v4l2src_fill:<v4l2src0> ts: 2:07:27.954131000 now 2:07:28.118316091 delay 0:00:00.164185091</div>
<div>0:00:34.787414146 18164 0x24dc540 INFO v4l2src gstv4l2src.c:861:gst_v4l2src_fill:<v4l2src0> sync to 0:00:34.233332991 out ts 0:00:34.377885000</div><div>0:00:34.803475003 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0> release buffer 0x7f09cc007290</div>
<div>0:00:34.803534728 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:673:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> enqueue buffer 0x7f09cc007290, index:2, queued:3, flags:00002003 used:0</div>
<div>0:00:34.803564449 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing QBUF</div><div>0:00:34.803616652 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0> acquire</div>
<div>0:00:34.803635030 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device</div><div>0:00:34.821867661 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing DQBUF</div>
<div>0:00:34.821948247 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:769:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> dequeued buffer 0x7f09cc0073a0 seq:1028 (ix=3), used 219197, flags 00002005, ts 2:07:27.984812000, pool-queued=3, buffer=0x7f09cc0073a0</div>
<div>0:00:34.821997521 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (11783). JPG: 0-8 - APP4: 8 - 11793</div><div>0:00:34.822022755 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - H264 1920x1080 -- 333333 *100ns -- 27 ms -- 871930696</div>
<div>0:00:34.822075416 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 11755 bytes</div><div>0:00:34.822094504 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 11793-11793 - APP4: 11793 - 77328</div>
<div>0:00:34.822118341 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - YUY2 432x240 -- 333333 *100ns -- 27 ms -- 871930696</div>
<div>0:00:34.822147929 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 207360 bytes</div><div>0:00:34.822165758 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 77328-77328 - APP4: 77328 - 142863</div>
<div>0:00:34.822189117 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 142863-142863 - APP4: 142863 - 208398</div>
<div>0:00:34.822212495 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (10795). JPG: 208398-208398 - APP4: 208398 - 219195</div>
<div>0:00:34.823136797 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0> process buffer 0x7f09cc0073a0</div><div>0:00:34.823179754 18164 0x24dc540 DEBUG v4l2src gstv4l2src.c:823:gst_v4l2src_fill:<v4l2src0> ts: 2:07:27.984812000 now 2:07:28.154120648 delay 0:00:00.169308648</div>
<div>0:00:34.823217913 18164 0x24dc540 INFO v4l2src gstv4l2src.c:861:gst_v4l2src_fill:<v4l2src0> sync to 0:00:34.266666324 out ts 0:00:34.408566245</div><div>0:00:34.830053681 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0> release buffer 0x7f09cc0073a0</div>
<div>0:00:34.830073738 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:673:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> enqueue buffer 0x7f09cc0073a0, index:3, queued:3, flags:00002003 used:0</div>
<div>0:00:34.830082068 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing QBUF</div><div>0:00:34.830100625 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0> acquire</div>
<div>0:00:34.830105812 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device</div><div>0:00:34.853864565 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing DQBUF</div>
<div>0:00:34.853944863 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:769:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> dequeued buffer 0x7f09cc007070 seq:1029 (ix=0), used 220255, flags 00002005, ts 2:07:28.014506000, pool-queued=3, buffer=0x7f09cc007070</div>
<div>0:00:34.853994541 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (12588). JPG: 0-8 - APP4: 8 - 12598</div><div>0:00:34.854020604 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - H264 1920x1080 -- 333333 *100ns -- 27 ms -- 841978096</div>
<div>0:00:34.854052921 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 12560 bytes</div><div>0:00:34.854071133 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 12598-12598 - APP4: 12598 - 78133</div>
<div>0:00:34.854095317 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - YUY2 432x240 -- 333333 *100ns -- 27 ms -- 841978096</div>
<div>0:00:34.854151079 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 207360 bytes</div><div>0:00:34.854170560 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 78133-78133 - APP4: 78133 - 143668</div>
<div>0:00:34.854194410 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 143668-143668 - APP4: 143668 - 209203</div>
<div>0:00:34.854217999 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (10795). JPG: 209203-209203 - APP4: 209203 - 220000</div>
<div>0:00:34.854251496 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0> process buffer 0x7f09cc007070</div><div>0:00:34.854279734 18164 0x24dc540 DEBUG v4l2src gstv4l2src.c:823:gst_v4l2src_fill:<v4l2src0> ts: 2:07:28.014506000 now 2:07:28.185221186 delay 0:00:00.170715186</div>
<div>0:00:34.854317178 18164 0x24dc540 INFO v4l2src gstv4l2src.c:861:gst_v4l2src_fill:<v4l2src0> sync to 0:00:34.299999657 out ts 0:00:34.438260208</div><div>0:00:34.859671723 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0> release buffer 0x7f09cc007070</div>
<div>0:00:34.860125069 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:673:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> enqueue buffer 0x7f09cc007070, index:0, queued:3, flags:00002003 used:0</div>
<div>0:00:34.860185269 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing QBUF</div><div>0:00:34.860240855 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0> acquire</div>
<div>0:00:34.860259854 18164 0x24dc540 LOG v4l2 <span style="background-color:rgb(255,255,0)">gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device</span></div><div><span style="background-color:rgb(255,255,0)">0:00:34.885909249 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing DQBUF</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.885997069 18164 0x24dc540 LOG v4l2 gstv4l2bufferpool.c:769:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> dequeued buffer 0x7f09cc007180 seq:1030 (ix=1), used 219350, flags 00002005, ts 2:07:28.044033000, pool-queued=3, buffer=0x7f09cc007180</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886050406 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (12212). JPG: 0-8 - APP4: 8 - 12222</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886076131 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - H264 1920x1080 -- 333333 *100ns -- 28 ms -- 851930696</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886108385 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 12184 bytes</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886126568 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 12222-12222 - APP4: 12222 - 77757</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886150287 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:844:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> New auxiliary stream : v1 - 22 bytes - YUY2 432x240 -- 333333 *100ns -- 28 ms -- 851930696</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886180086 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Auxiliary stream size : 207360 bytes</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886198325 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 77757-77757 - APP4: 77757 - 143292</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886245520 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (65533). JPG: 143292-143292 - APP4: 143292 - 208827</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886270649 18164 0x24dc540 DEBUG v4l2 gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> Found APP4 marker (10795). JPG: 208827-208827 - APP4: 208827 - 219624</span></div>
<div><span style="background-color:rgb(255,255,0)">0:00:34.886297199 18164 0x24dc540 WARN v4l2 gstv4l2bufferpool.c:808:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> error: Not enough data to read marker content</span></div>
</div><div><br></div></div><div>JPEG Container Parsing in UVC Driver (look at <span style="background-color:rgb(255,255,0)">this</span> section):<br></div><div><br></div><div><div>[ 7628.214576] uvcvideo: uvc_v4l2_poll</div>
<div>[ 7628.214647] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)</div><div>[ 7628.214662] uvcvideo: HD Pro Webcam C920: PTS 871930696 y 3636.086044 SOF 3636.086044 (x1 2149826048 x2 2179639848 y1 238747648 y2 244514816 SOF offset 16)</div>
<div>[ 7628.214672] uvcvideo: HD Pro Webcam C920: SOF 3636.086044 y 932103987 ts 7647.984812 buf ts 7648.140702 (x1 242745344/376/1595 x2 249298944/476/1683 y1 1000000000 y2 1099973580)</div><div>[ 7628.222800] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)</div>
<div>[ 7628.222825] uvcvideo: uvc_v4l2_poll</div><div>[ 7628.234409] uvcvideo: frame 1029 stats: 0/1/77 packets, 0/0/77 pts (!early initial), 76/77 scr, last pts/stc/sof 871930696/904258496/44675</div><div>[ 7628.246386] uvcvideo: Frame complete (EOF found buf->bytesused=220255).</div>
<div>[ 7628.246393] uvcvideo: EOF in empty payload.</div><div>[ 7628.246398] uvcvideo: Found APP4 marker (12841). JPG: 0-8 - APP4: 8 - 12851</div><div>[ 7628.246404] uvcvideo: New auxiliary stream : v1 - 22 bytes - H264 1920x1080 -- 333333 *100ns -- 28 ms -- -1057844940</div>
<div>[ 7628.246408] uvcvideo: Auxiliary stream size : 12813 bytes</div><div>[ 7628.246413] uvcvideo: Found APP4 marker (65533). JPG: 12851-12851 - APP4: 12851 - 78386</div><div>[ 7628.246419] uvcvideo: New auxiliary stream : v1 - 22 bytes - YUY2 432x240 -- 333333 *100ns -- 28 ms -- -1057844940</div>
<div>[ 7628.246422] uvcvideo: Auxiliary stream size : 207360 bytes</div><div>[ 7628.246427] uvcvideo: Found APP4 marker (65533). JPG: 78386-78386 - APP4: 78386 - 143921</div><div>[ 7628.246432] uvcvideo: Found APP4 marker (65533). JPG: 143921-143921 - APP4: 143921 - 209456</div>
<div>[ 7628.246436] uvcvideo: Found APP4 marker (10795). JPG: 209456-209456 - APP4: 209456 - 220253</div><div>[ 7628.246439] uvcvideo: Done parsing!</div><div>[ 7628.246488] uvcvideo: uvc_v4l2_poll</div><div>[ 7628.246561] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)</div>
<div>[ 7628.246575] uvcvideo: HD Pro Webcam C920: PTS 881980096 y 3665.754104 SOF 3665.754104 (x1 2149599248 x2 2179745248 y1 240648192 y2 246480896 SOF offset 16)</div><div>[ 7628.246586] uvcvideo: HD Pro Webcam C920: SOF 3665.754104 y 929786295 ts 7648.014506 buf ts 7648.172675 (x1 244842496/408/1624 x2 251396096/508/1713 y1 1000000000 y2 1099954174)</div>
<div>[ 7628.252840] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)</div><div><span style="background-color:rgb(255,255,0)">[ 7628.252914] uvcvideo: uvc_v4l2_poll</span></div><div><span style="background-color:rgb(255,255,0)">[ 7628.270314] uvcvideo: frame 1030 stats: 0/1/78 packets, 0/0/78 pts (!early initial), 77/78 scr, last pts/stc/sof 881980096/914270496/44705</span></div>
<div><span style="background-color:rgb(255,255,0)">[ 7628.278347] uvcvideo: Frame complete (EOF found buf->bytesused=219350).</span></div><div><span style="background-color:rgb(255,255,0)">[ 7628.278354] uvcvideo: EOF in empty payload.</span></div>
<div><span style="background-color:rgb(255,255,0)">[ 7628.278359] uvcvideo: Found APP4 marker (11936). JPG: 0-8 - APP4: 8 - 11946</span></div><div><span style="background-color:rgb(255,255,0)">[ 7628.278366] uvcvideo: New auxiliary stream : v1 - 22 bytes - H264 1920x1080 -- 333333 *100ns -- 27 ms -- 1221077301</span></div>
<div><span style="background-color:rgb(255,255,0)">[ 7628.278370] uvcvideo: Auxiliary stream size : 11908 bytes</span></div><div><span style="background-color:rgb(255,255,0)">[ 7628.278375] uvcvideo: Found APP4 marker (65533). JPG: 11946-11946 - APP4: 11946 - 77481</span></div>
<div><span style="background-color:rgb(255,255,0)">[ 7628.278381] uvcvideo: New auxiliary stream : v1 - 22 bytes - YUY2 432x240 -- 333333 *100ns -- 27 ms -- 1221077301</span></div><div><span style="background-color:rgb(255,255,0)">[ 7628.278385] uvcvideo: Auxiliary stream size : 207360 bytes</span></div>
<div><span style="background-color:rgb(255,255,0)">[ 7628.278389] uvcvideo: Found APP4 marker (65533). JPG: 77481-77481 - APP4: 77481 - 143016</span></div><div><span style="background-color:rgb(255,255,0)">[ 7628.278394] uvcvideo: Found APP4 marker (65533). JPG: 143016-143016 - APP4: 143016 - 208551</span></div>
<div><span style="background-color:rgb(255,255,0)">[ 7628.278399] uvcvideo: Found APP4 marker (10795). JPG: 208551-208551 - APP4: 208551 - 219348</span></div><div><span style="background-color:rgb(255,255,0)">[ 7628.278402] uvcvideo: Done parsing!</span></div>
<div>[ 7628.278446] uvcvideo: uvc_v4l2_poll</div><div>[ 7628.278528] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)</div><div>[ 7628.278544] uvcvideo: HD Pro Webcam C920: PTS 891930696 y 3695.288803 SOF 3695.288803 (x1 2149421448 x2 2179619048 y1 242548736 y2 248381440 SOF offset 16)</div>
<div>[ 7628.278554] uvcvideo: HD Pro Webcam C920: SOF 3695.288803 y 927303965 ts 7648.044033 buf ts 7648.208679 (x1 246939648/440/1653 x2 253493248/28/1742 y1 1000000000 y2 1099979147)</div><div>[ 7628.284296] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)</div>
<div>[ 7628.286442] uvcvideo: uvc_v4l2_ioctl(VIDIOC_STREAMOFF)</div><div>[ 7628.424603] uvcvideo: uvc_v4l2_ioctl(VIDIOC_REQBUFS)</div><div>[ 7628.425228] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'u', dir=rw, #33 (0xc0107521))</div>
<div>[ 7628.425493] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'u', dir=rw, #33 (0xc0107521))</div><div>[ 7628.441198] uvcvideo: uvc_v4l2_release</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Aug 7, 2013 at 4:32 PM, Peter Rennert <span dir="ltr"><<a href="mailto:p.rennert@cs.ucl.ac.uk" target="_blank">p.rennert@cs.ucl.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Rob,<div class="im"><br>
<br>
On 08/07/2013 09:18 PM, Robert Krakora wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Not enough data to read marker content<br>
</blockquote>
<br></div>
This was the error we had at the very beginning. Is there again a buffer that is not unreffed?<br>
<br>
<br>
I did not have time to make another long running test, but I will try to do it at the weekend with the patch I posted before:<div class="im"><br>
<br>
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c<br>
index 1e74fc7..3430b86 100644<br>
--- a/sys/v4l2/gstv4l2bufferpool.c<br>
+++ b/sys/v4l2/gstv4l2bufferpool.c<br>
@@ -52,6 +52,9 @@<br>
#define V4L2_FIELD_INTERLACED_BT 9<br>
#endif<br>
<br>
+#ifndef VIDIOC_CREATE_BUFS<br>
+#define VIDIOC_CREATE_BUFS<br>
+#endif<br>
<br></div>
I initally defined VIDIOC_CREATE_BUFS (even though I have no idea what that actually should be), because of this part of the v4l2-bufferpool:<br>
<br>
gstv4l2bufferpool.c<br>
lines 855-868<br>
<br>
/* start copying buffers when we are running low on buffers */<div class="im"><br>
if (pool->num_queued < pool->copy_threshold) {<br></div>
GstBuffer *copy;<br>
#ifdef VIDIOC_CREATE_BUFS<br>
if (pool->can_alloc) {<br>
if (GST_BUFFER_POOL_CLASS (parent_class)->acquire_buffer (bpool,<br>
©, params) == GST_FLOW_OK) {<br>
gst_v4l2_buffer_pool_release_<u></u>buffer (bpool, copy);<br>
break;<br>
} else {<br>
pool->can_alloc = FALSE;<br>
}<br>
}<br>
#endif<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table width="426" cellpadding="2" cellspacing="0"><colgroup><col width="422"></colgroup><tbody><tr><td width="422" valign="TOP" style="border:none;padding:0in">
<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 width="422" valign="TOP" style="border-top-width:1px;border-style:solid none none;border-top-color:rgb(0,0,0);padding:0.02in 0in 0in">
<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 src="http://www.messagenetcommunicationsystems.com/wp-content/uploads/2013/07/MessageNet_Logo_200x200-e1374867138718.jpg" name="SafeHtmlFilter_14040bc6244eae96_graphics46" align="BOTTOM" width="34" height="34" border="0"></a> <a href="http://www.youtube.com/user/MessageNetConnection/feed" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.messagenetsystems.com/images/socialmediaicons/32/youtube.png" name="SafeHtmlFilter_14040bc6244eae96_graphics47" align="BOTTOM" width="34" height="34" border="0"></a> <a href="http://www.linkedin.com/company/messagenet-systems" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.messagenetsystems.com/images/socialmediaicons/32/linkedin.png" name="SafeHtmlFilter_14040bc6244eae96_graphics48" align="BOTTOM" width="34" height="34" border="0"></a> <a href="http://twitter.com/MessageNet" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.messagenetsystems.com/images/socialmediaicons/32/twitter.png" name="SafeHtmlFilter_14040bc6244eae96_graphics49" align="BOTTOM" width="34" height="34" border="0"></a> <a href="http://www.facebook.com/MessageNetsystems" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.messagenetsystems.com/images/socialmediaicons/32/facebook.png" name="SafeHtmlFilter_14040bc6244eae96_graphics50" align="BOTTOM" width="34" height="34" border="0"></a></font></p>
</td></tr></tbody></table></div>
</div>