I am interfacing beagle board with em28xx USB video device. I cross compiled the Mencoder forARM Beagle board. While capturing i am getting below error.
[root@beagleboard mmc]# ./mencoder2 tv:// -tv device=/dev/video0:input=1:norm=PA
L-60:width=320: height=240 -vf pp=md -o Recording -ovc lavc -lavcopts vcodec=mjp
eg
MEncoder 1.0pre7try2-4.2.0 © 2000-2005 MPlayer Team
CPU: ARM
File not found: ‘frameno.avi’
Failed to open frameno.avi
success: format: 9 data: 0x0 - 0x0
TV detected!
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come
Selected device: PointNix Intra-Oral Camera
Capabilites: video capture audio read/write streaming
supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-4
43; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-
N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-
H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
inputs: 0 = S-Video;
Current input: 0
Current format: YUYV
audio block size too low, setting to 16384!
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl enum input failed: Invalid argument
Selected input hasn’t got a tuner!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = cf8b4000
[00000000] *pgd=8f913031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
Modules linked in:
CPU: 0 Not tainted (2.6.29-omap1 #68)
PC is at dma_cache_maint+0x4c/0xdc
LR is at usb_hcd_submit_urb+0x178/0x8a0
pc : [] lr : [] psr: 20000013
sp : cf851b90 ip : cf851bb0 fp : cf851bac
r10: 00000000 r9 : 00000014 r8 : 00000020
r7 : 00000020 r6 : 0000e240 r5 : cf8c6c00 r4 : ffc45000
r3 : 00000000 r2 : 00000002 r1 : 0000e240 r0 : ffc45000
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 8f8b4019 DAC: 00000015
Process mencoder2 (pid: 582, stack limit = 0xcf8502e0)
Stack: (0xcf851b90 to 0xcf852000)
1b80: c022c3b4 ffc45000 cf8c6c00 ced8b200
1ba0: cf851c64 cf851bb0 c022b7b8 c0031128 00000000 c044b058 cf851bdc cf851bc8
1bc0: c0068b50 c0068b18 00000000 cf90c460 cf851c0c cf851be0 c03214dc c004dd54
1be0: c005a010 ffff7eaf cf851c10 c0455170 00000005 0000e240 00000014 ffff7eaf
1c00: cf851c44 cf851c10 c0321748 c0059f20 00000000 00200200 ffff7eaf c005a4dc
1c20: cf90c460 c04949a0 00000001 00000001 00000001 cf95a000 cf851c54 cee88400
1c40: 00000001 ffffffee 00000020 0000e240 00000014 cf95a614 cf851c84 cf851c68
1c60: c022c37c c022b64c 00000000 cecdfc00 cf95a000 00000005 cf851cbc cf851c88
1c80: c01e3c38 c022c148 c0322168 00000028 cf9748a0 cf95a000 cf9748a0 00000000
1ca0: cee890ec cf8b8400 c033ae34 cf851e38 cf851ce4 cf851cc0 c01df260 c01e39dc
1cc0: c01dfad8 cf851e38 c04a1cc0 cf9748a0 cee890ec cf851e38 cf851d0c cf851ce8
1ce0: c01ecb78 c01df18c 00000000 cee890e0 cf851e38 00000000 cee8a0e0 cf8b8400
1d00: cf851d24 cf851d10 c01dedc4 c01ec8b8 c01ded94 00000000 cf851e2c cf851d28
1d20: c01d0448 c01deda0 c0080738 00000000 00000010 c0688e40 00000000 cf850000
1d40: d08c3fff 00000000 cf87be00 cf8b5010 cf8b5010 cece7060 c044560f cee8a0e0
1d60: c04a1cc4 cee890e0 cf851d94 cf851d78 c008dc90 c00806a8 cf8b5010 40402000
1d80: 00000000 cece7060 cf851dbc cf851d98 c008eb90 c008dc74 cf851dbc c0688e20
1da0: cece7060 cecf69c0 4044c000 0000038f cf851dec cf851dc0 c008ece8 c0094cb4
1dc0: cee890ec cece70a0 cf851e04 d08c4000 00001000 cecf69c0 4044d000 00000000
1de0: cf851dfc cf851df0 c008ee24 c008ec54 cf851e24 cf851e00 c00965a0 c008edd0
1e00: c009777c c044560f 00000000 00000000 cee8a0e0 006831b0 cf851e38 00000000
1e20: cf851ee4 cf851e30 c01d2934 c01cf204 00000003 00000000 00000000 00000001
1e40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e60: 00000000 00000000 00000001 00000000 0004b000 00000000 00000000 cece7060
1e80: cf851ea4 cf851e90 c0091a14 c008ae80 00000000 cecf69c0 cf851ec4 cf851ea8
1ea0: c0092934 c0091980 cecf2b38 cf851eb8 00000000 cecf69c0 cf851f34 c044560f
1ec0: 006831b0 00000003 cee8a0e0 006831b0 cf850000 00000000 cf851ef4 cf851ee8
1ee0: c01cecc0 c01d273c cf851f0c cf851ef8 c00abe50 c01cec78 cee8a0e0 006831b0
1f00: cf851f7c cf851f10 c00ac354 c00abdf4 cee8a0e0 40402000 00000007 cece7060
1f20: 00000000 0004b000 cf851f74 cf851f38 c009356c c0092e30 000000ff cf850000
1f40: 40402000 cee8a0e0 00000000 00000003 cf850000 00000003 006831b0 c044560f
1f60: cee8a0e0 c002bf08 cf850000 00000000 cf851fa4 cf851f80 c00ac3d8 c00abe98
1f80: 00000003 00000000 006831b0 00000001 00000001 00000036 00000000 cf851fa8
1fa0: c002bd60 c00ac3a4 006831b0 00000001 00000003 c044560f 006831b0 00000001
1fc0: 006831b0 00000001 00000001 00000036 006818c0 00680698 00000001 3fb7c6f8
1fe0: 00000000 becac5e0 000b4e50 004995bc 00000010 00000003 00000000 00000000
Backtrace:
[] (dma_cache_maint+0x0/0xdc) from [] (usb_hcd_submit_urb+0x
178/0x8a0)
r6:ced8b200 r5:cf8c6c00 r4:ffc45000
[] (usb_hcd_submit_urb+0x0/0x8a0) from [] (usb_submit_urb+0x
240/0x25c)
[] (usb_submit_urb+0x0/0x25c) from [] (em28xx_init_isoc+0x26
8/0x2dc)
r7:00000005 r6:cf95a000 r5:cecdfc00 r4:00000000
[] (em28xx_init_isoc+0x0/0x2dc) from [] (buffer_prepare+0xe0
/0xfc)
[] (buffer_prepare+0x0/0xfc) from [] (videobuf_qbuf+0x2cc/0x
3e0)
r7:cf851e38 r6:cee890ec r5:cf9748a0 r4:c04a1cc0
[] (videobuf_qbuf+0x0/0x3e0) from [] (vidioc_qbuf+0x30/0x34)
r8:cf8b8400 r7:cee8a0e0 r6:00000000 r5:cf851e38 r4:cee890e0
[] (vidioc_qbuf+0x0/0x34) from [] (__video_do_ioctl+0x1250/0
x3538)
r5:00000000 r4:c01ded94
[] (__video_do_ioctl+0x0/0x3538) from [] (video_ioctl2+0x204
/0x330)
[] (video_ioctl2+0x0/0x330) from [] (v4l2_ioctl+0x54/0x5c)
[] (v4l2_ioctl+0x0/0x5c) from [] (vfs_ioctl+0x68/0x78)
[] (vfs_ioctl+0x0/0x78) from [] (do_vfs_ioctl+0x4c8/0x50c)
r5:006831b0 r4:cee8a0e0
[] (do_vfs_ioctl+0x0/0x50c) from [] (sys_ioctl+0x40/0x64)
[] (sys_ioctl+0x0/0x64) from [] (ret_fast_syscall+0x0/0x2c)
r7:00000036 r6:00000001 r5:00000001 r4:006831b0
Code: 9a000001 e1500003 3a000018 e3a03000 (e5833000)
—[ end trace 967c88438c3f4fb8 ]—
with regards,
saminath