VLC fails with L4T 32.5

I use the VLC to display the video stream from “Magewell USB Capture HDMI Gen 2” which is an UVC capture device on Xavier NX.
VLC works with L4T 32.4.4, but it turns off after starting capture with L4T 32.5.
I also try the QT v4l2 test utility (qv4l2) app, the app also turns off.

Only gstreamer script can display the video stream with L4T 32.5.

# v4l2-ctl -d 0 -i 0 --set-fmt-video=pixelformat=YUYV 
# sleep 3
# gst-launch-1.0 v4l2src device="/dev/video0" ! "video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080" ! xvimagesink sync=false -v -e  

log_r32_5_nx_carrier_board.txt (77.0 KB)
All the 3 apps(VLC,qv4l2,gstreamer script) work well with L4T 32.4.4 on Xavier NX.

I get some message from dmesg

[ 123.060953] [RCE] WARNING: t194/isp5.c:901 [config_channel] “All error notifications not enabled: correctable=0x00 uncorrectable=0x00”
[ 123.315347] Unknown pixelformat 0x00000000
[ 123.315407] ------------[ cut here ]------------
[ 123.315546] WARNING: CPU: 0 PID: 8512 at /dvs/git/dirty/git-master_linux/kernel/kernel-4.9/drivers/media/v4l2-core/v4l2-ioctl.c:1322 v4l_enum_fmt+0x1310/0x1678
[ 123.315779] Modules linked in: fuse bnep uvcvideo rtk_btusb btusb btrtl btbcm btintel rtl8822ce spidev cfg80211 zram overlay userspace_alert nvgpu bluedroid_pm ip_tables x_tables

[ 123.315875] CPU: 0 PID: 8512 Comm: nvargus-daemon Not tainted 4.9.201-tegra #1
[ 123.315880] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[ 123.315886] task: ffffffc166b18000 task.stack: ffffffc1672c0000
[ 123.315891] PC is at v4l_enum_fmt+0x1310/0x1678
[ 123.315896] LR is at v4l_enum_fmt+0x1310/0x1678
[ 123.315911] pc : [] lr : [] pstate: 40400145
[ 123.315918] sp : ffffffc1672c3bc0
[ 123.315931] x29: ffffffc1672c3bc0 x28: 0000000000000000
[ 123.315957] x27: ffffffc1c4e70018 x26: 0000000000000000
[ 123.315983] x25: ffffff8009fced68 x24: 0000000000000002
[ 123.316008] x23: 0000007facaca8b0 x22: ffffffc165276540
[ 123.316039] x21: ffffff8001155028 x20: 0000000000000000
[ 123.316065] x19: ffffffc1672c3d10 x18: 0000000000000030
[ 123.316090] x17: 0000007fb2bdd530 x16: ffffff8008272780
[ 123.316137] x15: ffffffffffffffff x14: ffffff800a14add8
[ 123.316148] x13: ffffff800a14aa16 x12: 0000000000000000
[ 123.316158] x11: 0000000000000006 x10: 0000000000000472
[ 123.316173] x9 : 0000000000000000 x8 : ffffffc1ffcdf15c
[ 123.316183] x7 : 0000000000000000 x6 : ffffffc1ffd0bbf0
[ 123.316194] x5 : ffffffc1ffd0bbf0 x4 : 0000000000000000
[ 123.316217] x3 : ffffffc1ffd117f8 x2 : ffffffc1ffd0bbf0
[ 123.316227] x1 : ffffffc166b18000 x0 : 000000000000001e

[ 123.316243] —[ end trace a464349d4a04ddec ]—
[ 123.316327] Call trace:
[ 123.316335] [] v4l_enum_fmt+0x1310/0x1678
[ 123.316342] [] __video_do_ioctl+0x204/0x2c8
[ 123.316347] [] video_usercopy+0x2a0/0x6a0
[ 123.316355] [] video_ioctl2+0x3c/0x50
[ 123.316367] [] v4l2_ioctl+0xd0/0x118
[ 123.316375] [] do_vfs_ioctl+0xb0/0x8d8
[ 123.316381] [] SyS_ioctl+0x8c/0xa8
[ 123.316389] [] el0_svc_naked+0x34/0x38
[ 126.316944] usb 2-3.4: usb_suspend_both: status 0
[ 126.372892] usb 2-3: usb_suspend_both: status 0
[ 126.373128] usb usb2: usb_suspend_both: status 0

Below are my configurations:

  1. I flash the L4T 32.5 with SDK manager.
  2. VLC options
    2.1 Open capture device
    2.2 video device name : /dev/video0
    2.3 video input chroma format : YUYV
    2.4 Width : 1920 , Height 1080
  3. Video input is from a video player(mi box 4) , and resolution is set to 1080p60.
  4. Magewell USB Capture HDMI Gen 2 : USB Video Capture - Bring HD HDMI signal into software - Magewell

Hi,
Please check if you can launch the camera by following the steps in
Jetson Nano FAQ
Q: I have a USB camera. How can I launch it on Jetson Nano?

Gstreamer command can display the usb camera, but other apps(vlc,qv4l2,cheese) can’t with L4T 32.5.
But gstreamer,vlc,qv4l2,cheese can display the video from usb cam with L4T 32.4.4 on Xavier NX.

My gstreamer command is
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=NV12’ ! nvoverlaysink -v -e

hi,
I get the same problem with L4T 32.4.5 .1on Xavier agx.
Did your problem solved?

Thanks
Jiaheng

Hi,
No. It is still under investigation. Will update once we have a solution.

Hi,
There is a quick fix for this. Please check

Jetson/L4T/r32.5.x patches - eLinux.org
[camera] 3rdparty application fails to open with USB camera

1 Like

I download Topic168303_Apr21_libv4l2_nvargus.zip from Libv4l2_nvargus.so source code - #19 by JerryChang.
It works after replacing /usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so , thanks.