Title: GStreamer lost frames issue [Print This Page] Author: digit Time: 7/15/2022 10:53 Title: GStreamer lost frames issue Hi there,
I was trying to do a Logitech BRIO 4K webcam streaming by the following GStreamer pipeline:
It looked perfect in the beginning, but a lot of v4l2src lost frames WARNNINGs always start to appear in 20 mins and last for 5 ~ 6 mins. Simultaneously, I could see some kernel error logs appeared.
It's a periodically event because it would happen again and again in the next perfect 20 mins.
Jul 15 02:03:42 RK356X kern.warn kernel: [ 752.896860] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:03:42 RK356X kern.warn kernel: [ 752.996874] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:03:42 RK356X kern.warn kernel: [ 753.096806] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:03:42 RK356X kern.err kernel: [ 753.096863] xhci-hcd xhci-hcd.4.auto: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1
Jul 15 02:03:42 RK356X kern.warn kernel: [ 753.096879] xhci-hcd xhci-hcd.4.auto: Looking for event-dma 00000000ef1320e0 trb-start 00000000ef1320f0 trb-end 00000000ef132140 seg-start 00000000ef132000 seg-end 00000000ef132ff0
Jul 15 02:03:43 RK356X kern.warn kernel: [ 753.696897] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:03:43 RK356X kern.err kernel: [ 753.697002] xhci-hcd xhci-hcd.4.auto: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1
Jul 15 02:03:43 RK356X kern.warn kernel: [ 753.697043] xhci-hcd xhci-hcd.4.auto: Looking for event-dma 00000000ef132fe0 trb-start 00000000ef001000 trb-end 00000000ef001050 seg-start 00000000ef001000 seg-end 00000000ef001ff0
Jul 15 02:03:43 RK356X kern.warn kernel: [ 753.796857] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:03:43 RK356X kern.err kernel: [ 753.796965] xhci-hcd xhci-hcd.4.auto: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1
Jul 15 02:03:43 RK356X kern.warn kernel: [ 753.797007] xhci-hcd xhci-hcd.4.auto: Looking for event-dma 00000000ef003d10 trb-start 00000000ef003d20 trb-end 00000000ef003d70 seg-start 00000000ef003000 seg-end 00000000ef003ff0
...
...
...
Jul 15 02:09:25 RK356X kern.warn kernel: [ 1096.257124] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:09:25 RK356X kern.err kernel: [ 1096.257235] xhci-hcd xhci-hcd.4.auto: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1
Jul 15 02:09:25 RK356X kern.warn kernel: [ 1096.257278] xhci-hcd xhci-hcd.4.auto: Looking for event-dma 00000000ef002ec0 trb-start 00000000ef002ed0 trb-end 00000000ef002f20 seg-start 00000000ef002000 seg-end 00000000ef002ff0
Jul 15 02:09:25 RK356X kern.warn kernel: [ 1096.557123] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:09:25 RK356X kern.err kernel: [ 1096.557228] xhci-hcd xhci-hcd.4.auto: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1
Jul 15 02:09:25 RK356X kern.warn kernel: [ 1096.557270] xhci-hcd xhci-hcd.4.auto: Looking for event-dma 00000000ef003650 trb-start 00000000ef003660 trb-end 00000000ef0036b0 seg-start 00000000ef003000 seg-end 00000000ef003ff0
Jul 15 02:09:26 RK356X kern.warn kernel: [ 1096.657121] xhci-hcd xhci-hcd.4.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 2
Jul 15 02:09:26 RK356X kern.err kernel: [ 1096.657218] xhci-hcd xhci-hcd.4.auto: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1
Jul 15 02:09:26 RK356X kern.warn kernel: [ 1096.657261] xhci-hcd xhci-hcd.4.auto: Looking for event-dma 00000000ef134380 trb-start 00000000ef134390 trb-end 00000000ef1343e0 seg-start 00000000ef134000 seg-end 00000000ef134ff0
============================================================================================================================================ Author: Liuth Time: 7/18/2022 11:04
To play 4K image, you have to enable AFBC first
export GST_MPP_VIDEODEC_DEFAULT_ARM_AFBC=1
Then use video-sink="waylandsink fullscreen=true" instead of kmssinkAuthor: digit Time: 7/18/2022 17:23
Hi Liuth,
Thanks for your reply.
I had tried the following pipeline, but no luck.
Lots of v4l2src lost frames WARNNINGs still start to appear in 10 mins and last for 5 ~ 6 mins. I could see the same kernel errors appeared simultaneously.
Moreover, waylandsink seemed like rendering in 15~20fps although fpsdisplaysink shown that it was almost 30fps.