can not capture the usb video on Imx8mp evk device

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can not capture the usb video on Imx8mp evk device

689 Views
jeffson
Contributor I

Hi,

I want to make a thread again on what I am struggling with now.

I have a usb capture device connected with imx8mp evk, and I can not capture the video using GStreamer and Qv4l2, and bsp version is 5.15, below is the crash log

 

oot@imx8mpevk:~# gst-launch-1.0 -v v4l2src device=/dev/video0 ! waylandsink
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' is not a capture device.
Additional debug info:
../git/sys/v4l2/v4l2_calls.c(638): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Capabilities: 0x4204000
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
root@imx8mpevk:~# gst-launch-1.0 -v v4l2src device=/dev/video3 ! waylandsink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)720, height=(int)576, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)54/59, interlace-mode=(string)interleaved, colorimetry=(string)2:3:5:4
/GstPipeline:pipeline0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)720, height=(int)576, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)54/59, interlace-mode=(string)interleaved, colorimetry=(string)2:3:5:4
[ 152.227960] rcu: INFO: rcu_preempt self-detected stall on CPU
[ 152.233720] rcu: 0-....: (2 GPs behind) idle=75f/1/0x4000000000000008 softirq=3033/3036 fqs=1934
[ 152.242688] (t=5250 jiffies g=2497 q=5053)
[ 152.246873] Task dump for CPU 0:
[ 152.250101] task:swapper/0 state:R running task stack: 0 pid: 0 ppid: 0 flags:0x0000000a
[ 152.260021] Call trace:
[ 152.262465] dump_backtrace+0x0/0x1a0
[ 152.266137] show_stack+0x1c/0x70
[ 152.269455] sched_show_task+0x150/0x174
[ 152.273384] dump_cpu_task+0x48/0x58
[ 152.276963] rcu_dump_cpu_stacks+0xe8/0x12c
[ 152.281150] rcu_sched_clock_irq+0x9f4/0xd10
[ 152.285426] update_process_times+0xa0/0xf0
[ 152.289614] tick_sched_handle+0x34/0x60
[ 152.293541] tick_sched_timer+0x50/0xb0
[ 152.297380] __hrtimer_run_queues+0x138/0x1e0
[ 152.301741] hrtimer_interrupt+0xec/0x250
[ 152.305755] arch_timer_handler_phys+0x38/0x50
[ 152.310204] handle_percpu_devid_irq+0x88/0x134
[ 152.314738] handle_domain_irq+0x64/0x94
[ 152.318664] gic_handle_irq+0xbc/0x140
[ 152.322419] do_interrupt_handler+0x34/0x60
[ 152.326605] el1_interrupt+0x30/0x80
[ 152.330184] el1h_64_irq_handler+0x1c/0x2c
[ 152.334284] el1h_64_irq+0x78/0x7c
[ 152.337687] _raw_spin_unlock_irqrestore+0x10/0x50
[ 152.342483] __usb_hcd_giveback_urb+0x68/0x120
[ 152.346932] usb_giveback_urb_bh+0xa8/0x110
[ 152.351116] tasklet_action_common.constprop.0+0x10c/0x140
[ 152.356604] tasklet_hi_action+0x2c/0x40
[ 152.360529] _stext+0x12c/0x2a8
[ 152.363672] __irq_exit_rcu+0xe0/0x100
[ 152.367427] irq_exit+0x14/0x2c
[ 152.370575] handle_domain_irq+0x68/0x94
[ 152.374508] gic_handle_irq+0xbc/0x140
[ 152.378266] call_on_irq_stack+0x2c/0x60
[ 152.382197] do_interrupt_handler+0x54/0x60
[ 152.386388] el1_interrupt+0x30/0x80
[ 152.389971] el1h_64_irq_handler+0x1c/0x2c
[ 152.394070] el1h_64_irq+0x78/0x7c
[ 152.397473] cpuidle_enter_state+0x134/0x2f4
[ 152.401748] cpuidle_enter+0x3c/0x54
[ 152.405325] do_idle+0x214/0x29c
[ 152.408558] cpu_startup_entry+0x28/0x80
[ 152.412489] rest_init+0xe8/0x100
[ 152.415808] arch_call_rest_init+0x14/0x20
[ 152.419908] start_kernel+0x620/0x660
[ 152.423576] __primary_switched+0xc0/0xc8
[ 215.241476] rcu: INFO: rcu_preempt self-detected stall on CPU
[ 215.247236] rcu: 0-....: (2 GPs behind) idle=75f/1/0x4000000000000008 softirq=3033/3036 fqs=7206
[ 215.256200] (t=21003 jiffies g=2497 q=20168)
[ 215.260557] Task dump for CPU 0:
[ 215.263784] task:swapper/0 state:R running task stack: 0 pid: 0 ppid: 0 flags:0x0000000a
[ 215.273703] Call trace:
[ 215.276148] dump_backtrace+0x0/0x1a0
[ 215.279819] show_stack+0x1c/0x70
[ 215.283138] sched_show_task+0x150/0x174
[ 215.287064] dump_cpu_task+0x48/0x58
[ 215.290644] rcu_dump_cpu_stacks+0xe8/0x12c
[ 215.294830] rcu_sched_clock_irq+0x9f4/0xd10
[ 215.299103] update_process_times+0xa0/0xf0
[ 215.303289] tick_sched_handle+0x34/0x60
[ 215.307216] tick_sched_timer+0x50/0xb0
[ 215.311055] __hrtimer_run_queues+0x138/0x1e0
[ 215.315414] hrtimer_interrupt+0xec/0x250
[ 215.319426] arch_timer_handler_phys+0x38/0x50
[ 215.323873] handle_percpu_devid_irq+0x88/0x134
[ 215.328406] handle_domain_irq+0x64/0x94
[ 215.332332] gic_handle_irq+0xbc/0x140
[ 215.336085] do_interrupt_handler+0x34/0x60
[ 215.340270] el1_interrupt+0x30/0x80
[ 215.343849] el1h_64_irq_handler+0x1c/0x2c
[ 215.347949] el1h_64_irq+0x78/0x7c
[ 215.351351] _raw_spin_unlock_irqrestore+0x10/0x50
[ 215.356146] __usb_hcd_giveback_urb+0x68/0x120
[ 215.360592] usb_giveback_urb_bh+0xa8/0x110
[ 215.364777] tasklet_action_common.constprop.0+0x10c/0x140
[ 215.370270] tasklet_hi_action+0x2c/0x40
[ 215.374200] _stext+0x12c/0x2a8
[ 215.377348] __irq_exit_rcu+0xe0/0x100
[ 215.381105] irq_exit+0x14/0x2c
[ 215.384252] handle_domain_irq+0x68/0x94
[ 215.388184] gic_handle_irq+0xbc/0x140
[ 215.391937] call_on_irq_stack+0x2c/0x60
[ 215.395864] do_interrupt_handler+0x54/0x60
[ 215.400051] el1_interrupt+0x30/0x80
[ 215.403634] el1h_64_irq_handler+0x1c/0x2c
[ 215.407738] el1h_64_irq+0x78/0x7c
[ 215.411146] cpuidle_enter_state+0x134/0x2f4
[ 215.415420] cpuidle_enter+0x3c/0x54
[ 215.418997] do_idle+0x214/0x29c
[ 215.422227] cpu_startup_entry+0x28/0x80
[ 215.426152] rest_init+0xe8/0x100
[ 215.429471] arch_call_rest_init+0x14/0x20
[ 215.433571] start_kernel+0x620/0x660
[ 215.437237] __primary_switched+0xc0/0xc8

 

anyone can help???

0 Kudos
Reply
2 Replies

650 Views
jeffson
Contributor I

sorry,I do not know what you mean, why we need to try other nodes?

0 Kudos
Reply

666 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @jeffson 

You can try other /dev/videoX node

0 Kudos
Reply