Fwd: [uvch264src in 1.1.1.1] "Got data flow before segment event" warnings until crash

Robert Krakora rob.krakora at messagenetsystems.com
Thu Aug 8 12:01:10 PDT 2013


Hi Peter,

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.  This 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.

Best Regards,

Rob

JPEG Container Parsing in v4l2src Plugin (look at this section):

0:00:34.755137572 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0>
process buffer 0x7f09cc007180
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
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
0:00:34.760697434 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0>
release buffer 0x7f09cc007180
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
0:00:34.762355236 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing
QBUF
0:00:34.762413220 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0>
acquire
0:00:34.762431855 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device
0:00:34.785921654 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing
DQBUF
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
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
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
0:00:34.786130509 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 13355 bytes
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
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
0:00:34.786202392 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 207360 bytes
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
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
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
0:00:34.787331008 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0>
process buffer 0x7f09cc007290
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
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
0:00:34.803475003 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0>
release buffer 0x7f09cc007290
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
0:00:34.803564449 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing
QBUF
0:00:34.803616652 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0>
acquire
0:00:34.803635030 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device
0:00:34.821867661 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing
DQBUF
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
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
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
0:00:34.822075416 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 11755 bytes
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
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
0:00:34.822147929 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 207360 bytes
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
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
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
0:00:34.823136797 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0>
process buffer 0x7f09cc0073a0
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
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
0:00:34.830053681 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0>
release buffer 0x7f09cc0073a0
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
0:00:34.830082068 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing
QBUF
0:00:34.830100625 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0>
acquire
0:00:34.830105812 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device
0:00:34.853864565 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing
DQBUF
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
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
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
0:00:34.854052921 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 12560 bytes
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
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
0:00:34.854151079 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 207360 bytes
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
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
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
0:00:34.854251496 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1297:gst_v4l2_buffer_pool_process:<v4l2bufferpool0>
process buffer 0x7f09cc007070
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
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
0:00:34.859671723 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:1059:gst_v4l2_buffer_pool_release_buffer:<v4l2bufferpool0>
release buffer 0x7f09cc007070
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
0:00:34.860185269 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:684:gst_v4l2_buffer_pool_qbuf:<v4l2bufferpool0> doing
QBUF
*************************************************************************************************************************************************************
0:00:34.860240855 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:958:gst_v4l2_buffer_pool_acquire_buffer:<v4l2bufferpool0>
acquire
0:00:34.860259854 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:622:gst_v4l2_object_poll:<v4l2src0> polling device
0:00:34.885909249 18164      0x24dc540 LOG                     v4l2
gstv4l2bufferpool.c:744:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0> doing
DQBUF
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
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
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
0:00:34.886108385 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 12184 bytes
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
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
0:00:34.886180086 18164      0x24dc540 DEBUG                   v4l2
gstv4l2bufferpool.c:846:gst_v4l2_buffer_pool_dqbuf:<v4l2bufferpool0>
Auxiliary stream size : 207360 bytes
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
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
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
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
*************************************************************************************************************************************************************

JPEG Container Parsing in UVC Driver (look at this section):

[ 7628.214576] uvcvideo: uvc_v4l2_poll
[ 7628.214647] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[ 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)
[ 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)
[ 7628.222800] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
[ 7628.222825] uvcvideo: uvc_v4l2_poll
[ 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
[ 7628.246386] uvcvideo: Frame complete (EOF found buf->bytesused=220255).
[ 7628.246393] uvcvideo: EOF in empty payload.
[ 7628.246398] uvcvideo: Found APP4 marker (12841). JPG: 0-8 - APP4: 8 -
12851
[ 7628.246404] uvcvideo: New auxiliary stream : v1 - 22 bytes - H264
1920x1080 -- 333333 *100ns -- 28 ms -- -1057844940
[ 7628.246408] uvcvideo: Auxiliary stream size : 12813 bytes
[ 7628.246413] uvcvideo: Found APP4 marker (65533). JPG: 12851-12851 -
APP4: 12851 - 78386
[ 7628.246419] uvcvideo: New auxiliary stream : v1 - 22 bytes - YUY2
432x240 -- 333333 *100ns -- 28 ms -- -1057844940
[ 7628.246422] uvcvideo: Auxiliary stream size : 207360 bytes
[ 7628.246427] uvcvideo: Found APP4 marker (65533). JPG: 78386-78386 -
APP4: 78386 - 143921
[ 7628.246432] uvcvideo: Found APP4 marker (65533). JPG: 143921-143921 -
APP4: 143921 - 209456
[ 7628.246436] uvcvideo: Found APP4 marker (10795). JPG: 209456-209456 -
APP4: 209456 - 220253
[ 7628.246439] uvcvideo: Done parsing!
[ 7628.246488] uvcvideo: uvc_v4l2_poll
[ 7628.246561] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[ 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)
[ 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)
*************************************************************************************************************************************************************
[ 7628.252840] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
[ 7628.252914] uvcvideo: uvc_v4l2_poll
[ 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
[ 7628.278347] uvcvideo: Frame complete (EOF found buf->bytesused=219350).
[ 7628.278354] uvcvideo: EOF in empty payload.
[ 7628.278359] uvcvideo: Found APP4 marker (11936). JPG: 0-8 - APP4: 8 -
11946
[ 7628.278366] uvcvideo: New auxiliary stream : v1 - 22 bytes - H264
1920x1080 -- 333333 *100ns -- 27 ms -- 1221077301
[ 7628.278370] uvcvideo: Auxiliary stream size : 11908 bytes
[ 7628.278375] uvcvideo: Found APP4 marker (65533). JPG: 11946-11946 -
APP4: 11946 - 77481
[ 7628.278381] uvcvideo: New auxiliary stream : v1 - 22 bytes - YUY2
432x240 -- 333333 *100ns -- 27 ms -- 1221077301
[ 7628.278385] uvcvideo: Auxiliary stream size : 207360 bytes
[ 7628.278389] uvcvideo: Found APP4 marker (65533). JPG: 77481-77481 -
APP4: 77481 - 143016
[ 7628.278394] uvcvideo: Found APP4 marker (65533). JPG: 143016-143016 -
APP4: 143016 - 208551
[ 7628.278399] uvcvideo: Found APP4 marker (10795). JPG: 208551-208551 -
APP4: 208551 - 219348
[ 7628.278402] uvcvideo: Done parsing!
[ 7628.278446] uvcvideo: uvc_v4l2_poll
[ 7628.278528] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[ 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)
[ 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)
[ 7628.284296] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
[ 7628.286442] uvcvideo: uvc_v4l2_ioctl(VIDIOC_STREAMOFF)
[ 7628.424603] uvcvideo: uvc_v4l2_ioctl(VIDIOC_REQBUFS)
[ 7628.425228] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'u', dir=rw, #33
(0xc0107521))
[ 7628.425493] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'u', dir=rw, #33
(0xc0107521))
[ 7628.441198] uvcvideo: uvc_v4l2_release
*************************************************************************************************************************************************************

On Wed, Aug 7, 2013 at 4:32 PM, Peter Rennert <p.rennert at cs.ucl.ac.uk>wrote:

> Hi Rob,
>
>
> On 08/07/2013 09:18 PM, Robert Krakora wrote:
>
>> Not enough data to read marker content
>>
>
> This was the error we had at the very beginning. Is there again a buffer
> that is not unreffed?
>
>
> 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:
>
>
> diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
> index 1e74fc7..3430b86 100644
> --- a/sys/v4l2/gstv4l2bufferpool.c
> +++ b/sys/v4l2/gstv4l2bufferpool.c
> @@ -52,6 +52,9 @@
>  #define V4L2_FIELD_INTERLACED_BT 9
>  #endif
>
> +#ifndef VIDIOC_CREATE_BUFS
> +#define VIDIOC_CREATE_BUFS
> +#endif
>
> 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:
>
> gstv4l2bufferpool.c
> lines 855-868
>
>           /* start copying buffers when we are running low on buffers */
>
>           if (pool->num_queued < pool->copy_threshold) {
>             GstBuffer *copy;
> #ifdef VIDIOC_CREATE_BUFS
>             if (pool->can_alloc) {
>               if (GST_BUFFER_POOL_CLASS (parent_class)->acquire_buffer
> (bpool,
>                       &copy, params) == GST_FLOW_OK) {
>                 gst_v4l2_buffer_pool_release_**buffer (bpool, copy);
>                 break;
>               } else {
>                 pool->can_alloc = FALSE;
>               }
>             }
> #endif
>
>
>
> ______________________________**_________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.**freedesktop.org<gstreamer-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/**mailman/listinfo/gstreamer-**devel<http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>



-- 

Rob Krakora,
Senior Software Engineer

MessageNet Systems
101 E Carmel Dr, Suite 105
Carmel, IN 46032

MessageNetSystems.com<http://www.messagenetcommunicationsystems.com/?utm_source=email+signature&utm_medium=email&utm_campaign=email+signature+to+homepage>
Rob.Krakora at MessageNetSystems.com <rob.krakora at messagenetsystems.com>
P: 317.566.1677, 212
F: 317.663.0808

For the latest news, information, and blogs, please be sure to visit,
follow, and like us...

<http://www.messagenetcommunicationsystems.com/get-the-message-out-blog/?utm_source=email+signature&utm_medium=email&utm_campaign=gmail+signature+to+blog>
   <http://www.youtube.com/user/MessageNetConnection/feed>
<http://www.linkedin.com/company/messagenet-systems>
   <http://twitter.com/MessageNet>  <http://www.facebook.com/MessageNetsystems>



-- 

Rob Krakora,
Senior Software Engineer

MessageNet Systems
101 E Carmel Dr, Suite 105
Carmel, IN 46032

MessageNetSystems.com<http://www.messagenetcommunicationsystems.com/?utm_source=email+signature&utm_medium=email&utm_campaign=email+signature+to+homepage>
Rob.Krakora at MessageNetSystems.com <rob.krakora at messagenetsystems.com>
P: 317.566.1677, 212
F: 317.663.0808

For the latest news, information, and blogs, please be sure to visit,
follow, and like us...

<http://www.messagenetcommunicationsystems.com/get-the-message-out-blog/?utm_source=email+signature&utm_medium=email&utm_campaign=gmail+signature+to+blog>
   <http://www.youtube.com/user/MessageNetConnection/feed>
<http://www.linkedin.com/company/messagenet-systems>
   <http://twitter.com/MessageNet>  <http://www.facebook.com/MessageNetsystems>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130808/cbb94597/attachment-0001.html>


More information about the gstreamer-devel mailing list