Error with PAC_7311 device

28 views
Skip to first unread message

J.G.

unread,
Sep 30, 2011, 5:18:15 PM9/30/11
to v4l4j
I've successfully built v4l4j and integrated it with our product,
using a uvc v4l2 webcam, and everything worked fine. However, when I
try to use it with our PAC-7311 camera, it cannot find any supported
resolution types for any format.

Both the DeviceChooser and my application have successfully created
and queried the device, returning valid formats RGB24, BGR24, YUV420,
YVU420. However, when it tries to create a framegrabber, it throws a
nullpointer exception and fails, as they are all returning unsupported
resolutions [ type 0 according to debug information output from
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType ]

test-capture seemed to work, and dump-capture managed to successfully
dump a raw frame, presumably in the camera's native pjpg format.

The appropriate Kernel driver GSPCA_7311 is confirmed to be loaded,
and the camera works fine with other applications; its only the java
interface having trouble with it. Can you help me debug the problem/
get the camera working with v4l4j?

I'm attaching the output from list-caps below


============================================
Querying general capabilities

Driver name: pac7311
Device name: USB Camera (093a:260f)
bus_info: usb-tegra-ehci.2-1.4
version: 2.10.0
Has capture capability
Does NOT have output capability
Does NOT have overlay capability
Does NOT have VBI capture capability
Does NOT have VBI output capability
Does NOT have SLICED VBI capture capability
Does NOT have SLICED VBI output capability
Does NOT have RDS capability
Does NOT have tuner capability
Does NOT have audio capability
Does NOT have radio capability
Has read/write capability
Does NOT have asyncIO capability
Has streaming capability

============================================
Querying capture capabilities
Input number: 0
Name: pac7311
Type: (2) Camera
Supported standards: (0)

============================================
Querying image format

0 - PJPG (compressed : 0) (0x47504a50)

============================================
Querying current image format settings

Current width: 640
Current height: 480
Current bytes per line: 640
Current image size: 115790
Current color space: 7
Current pixel format: PJPG

============================================
Querying supported frame sizes

Image format: PJPG
index 0 Height: 120 - Width: 160
index 1 Height: 240 - Width: 320
index 2 Height: 480 - Width: 640
============================================
Querying standard controls

Control: id: 0x980901 - name: Contrast - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x98090c - name: Whitebalance (software) - min: 0 -max: 1
- step: 1 - type: 2(Boolean) - flags: 0 ()
Control: id: 0x980910 - name: Gamma (software) - min: 500 -max: 3000 -
step: 1 - type: 1(Integer) - flags: 0 ()
Control: id: 0x980911 - name: Exposure - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x980912 - name: Auto Gain - min: 0 -max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
Control: id: 0x980913 - name: Gain - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x980914 - name: Mirror - min: 0 -max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
Control: id: 0x980915 - name: Vflip - min: 0 -max: 1 - step: 1 - type:
2(Boolean) - flags: 0 ()
============================================
Querying private controls

============================================
Querying extended controls

Control: id: 0x980901 - name: Contrast - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x98090c - name: Whitebalance (software) - min: 0 -max: 1
- step: 1 - type: 2(Boolean) - flags: 0 ()
Control: id: 0x980910 - name: Gamma (software) - min: 500 -max: 3000 -
step: 1 - type: 1(Integer) - flags: 0 ()
Control: id: 0x980911 - name: Exposure - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x980912 - name: Auto Gain - min: 0 -max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
Control: id: 0x980913 - name: Gain - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x980914 - name: Mirror - min: 0 -max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
Control: id: 0x980915 - name: Vflip - min: 0 -max: 1 - step: 1 - type:
2(Boolean) - flags: 0 ()
Listing available controls (8)
Control: id: 0x980901 - name: Contrast - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x98090c - name: Whitebalance (software) - min: 0 -max: 1
- step: 1 - type: 2(Boolean) - flags: 0 ()
Control: id: 0x980910 - name: Gamma (software) - min: 500 -max: 3000 -
step: 1 - type: 1(Integer) - flags: 0 ()
Control: id: 0x980911 - name: Exposure - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x980912 - name: Auto Gain - min: 0 -max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
Control: id: 0x980913 - name: Gain - min: 0 -max: 255 - step: 1 -
type: 1(Integer) - flags: 0 ()
Control: id: 0x980914 - name: Mirror - min: 0 -max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
Control: id: 0x980915 - name: Vflip - min: 0 -max: 1 - step: 1 - type:
2(Boolean) - flags: 0 ()
============================================

Printing device info

Device name: USB Camera (093a:260f)
Device file: /dev/video0
Supported image formats (Name - Index):
RGB24 (7)
Frame interval enumeration not supported
BGR24 (6)
Frame interval enumeration not supported
YUV420 (31)
Frame interval enumeration not supported
YVU420 (17)
Frame interval enumeration not supported
Inputs:
Name: pac7311
Number: 0
Type: 2 (Camera)
Supported standards:
0 (Webcam)

Gilles Gigan

unread,
Sep 30, 2011, 7:16:30 PM9/30/11
to v4...@googlegroups.com
Hi Jay,
Ok, to debug this issue, can you do the following:
- uninstall v4l4j (sudo ant uninstall)
- rebuild v4l4j in debug mode (ant clean all-debug)
- reinstall it (sudo ant install)
- then run ant test-gui
Copy the output of this last command to a file and post it here.
Thanks
Gilles

> --
> You received this message because you are subscribed to the Google Groups "v4l4j" group.
> To post to this group, send email to v4...@googlegroups.com.
> To unsubscribe from this group, send email to v4l4j+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/v4l4j?hl=en.
>
>

Gilles Gigan

unread,
Sep 30, 2011, 7:47:14 PM9/30/11
to v4...@googlegroups.com
Jay,
I forgot one thing: after rebuilding /reinstalling v4l4j in debug
mode, can you also run 'ant deviceInfo' and send its output too.
Thanks
Gilles

J.G.

unread,
Oct 4, 2011, 4:47:27 PM10/4/11
to v4l4j
Running test-gui, I selected RGB Viewer, and then RGB24 as the
standard

test-gui:
[java] [v4l4j_VideoDevice.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doInit
[java] [v4l4j_VideoDevice.c:39] [MEMALLOC]: allocated 32 bytes of
type struct v4l4j_device * for var d (0x8777730).
[java] [v4l4j_VideoDevice.c:42] [LIBVIDEO] Calling open_device()
[java] [ libvideo.c:68 ] Using libvideo version 0.8-10
[java] [libvideo.c:75 open_device] VD: Opening device file /dev/
video0.
[java] [libvideo.c:82 open_device] [MEMALLOC]: allocating 124
bytes of type struct video_device * for var vdev (0x8777758)
[java] [libvideo.c:87 open_device] VD: Checking V4L version on
device /dev/video0
[java] [v4l2-input.c:54 check_capture_capabilities_v4l2] CAP:
Checking capture device
[java] [libvideo.c:90 open_device] VD: device /dev/video0 is V4L2
[java] [v4l4j_DeviceInfo.c:212] [CALL] Entering
Java_au_edu_jcu_v4l4j_DeviceInfo_getInfo
[java] [v4l4j_DeviceInfo.c:234] [LIBVIDEO] call to
get_device_info
[java] [libvideo.c:372 get_device_info] QRY: Querying device /dev/
video0.
[java] [libvideo.c:374 get_device_info] [MEMALLOC]: allocating 60
bytes of type struct device_info * for var vdev->info (0x8776a90)
[java] [v4l2-query.c:618 query_device_v4l2] QRY: Querying V4L2
device.
[java] [v4l2-query.c:539 check_inputs_v4l2] QRY: querying inputs
[java] [v4l2-query.c:548 check_inputs_v4l2] QRY: found 1 inputs
[java] [v4l2-query.c:551 check_inputs_v4l2] [MEMALLOC]:
allocating 56 bytes of type struct video_input_info * for var di-
>inputs (0x8777838)
[java] [v4l2-query.c:567 check_inputs_v4l2] QRY: input 0 -
pac7311 - Camera - tuner: 0
[java] [v4l2-query.c:585 check_inputs_v4l2] QRY: No tuner
[java] [v4l2-query.c:526 add_supported_std] QRY: Adding standard
0
[java] [v4l2-query.c:528 add_supported_std] [REALLOC]: Allocating
4 bytes of type int * for var vi->supported_stds (0x8776930)
[java] [v4l2-query.c:453 check_palettes_v4l2] QRY: Checking
supported palettes.
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x33424752
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: RGB24
supported (7)
[java] [v4l2-query.c:350 add_supported_palette] [REALLOC]:
Allocating 16 bytes of type struct palette_info * for var di->palettes
(0x8776ad0)
[java] [v4l2-query.c:374 add_supported_palette] QRY: RGB24 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (RGB24 - 7) as a native one
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x33524742
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: BGR24
supported (6)
[java] [v4l2-query.c:350 add_supported_palette] REALLOC: re-
allocating 32 bytes of type struct palette_info * for var di-
>palettes(0x8776878).
[java] [v4l2-query.c:374 add_supported_palette] QRY: BGR24 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (BGR24 - 6) as a native one
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x32315559
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: YUV420
supported (31)
[java] [v4l2-query.c:350 add_supported_palette] REALLOC: re-
allocating 48 bytes of type struct palette_info * for var di-
>palettes(0x8776878).
[java] [v4l2-query.c:374 add_supported_palette] QRY: YUV420 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (YUV420 - 31) as a native one
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x32315659
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: YVU420
supported (17)
[java] [v4l2-query.c:350 add_supported_palette] REALLOC: re-
allocating 64 bytes of type struct palette_info * for var di-
>palettes(0x8777ca8).
[java] [v4l2-query.c:374 add_supported_palette] QRY: YVU420 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (YVU420 - 17) as a native one
[java] [v4l4j_DeviceInfo.c:242] [V4L4J] Creating inputInfo
objects
[java] [v4l4j_DeviceInfo.c:70] [CALL] Entering
create_inputs_object
[java] [v4l4j_DeviceInfo.c:132] [V4L4J] Setting new stds array
with array[1] @ 0x8776930
[java] [v4l4j_DeviceInfo.c:139] [V4L4J] Creating input object (wo
tuner): name 'pac7311' - supported standards (1): 0x8776930 - index: 0
[java] [v4l4j_DeviceInfo.c:246] [V4L4J] Creating Format objects
[java] [v4l4j_DeviceInfo.c:170] [CALL] Entering
create_formats_object
[java] [v4l4j_ImageFormatList.c:300] [CALL] Entering
Java_au_edu_jcu_v4l4j_ImageFormatList_listFormats
[java] [v4l4j_ImageFormatList.c:274] [V4L4J] Creating native
format list
[java] [v4l4j_ImageFormatList.c:282] [V4L4J] Checking format
RGB24 - index: 7 - raw ? Yes-adding it
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:282] [V4L4J] Checking format
BGR24 - index: 6 - raw ? Yes-adding it
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:282] [V4L4J] Checking format
YUV420 - index: 31 - raw ? Yes-adding it
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:282] [V4L4J] Checking format
YVU420 - index: 17 - raw ? Yes-adding it
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:104] [V4L4J] Creating RGB
encodable format list
[java] [v4l4j_ImageFormatList.c:112] [V4L4J] Found native RGB24
format - adding it to list
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:160] [V4L4J] Creating BGR24
encodable format list
[java] [v4l4j_ImageFormatList.c:168] [V4L4J] Found native BGR24
format - adding it to list
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:198] [V4L4J] Creating YUV
encodable format list
[java] [v4l4j_ImageFormatList.c:206] [V4L4J] Found native YUV420
format - adding it to list
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:236] [V4L4J] Creating YVU
encodable format list
[java] [v4l4j_ImageFormatList.c:244] [V4L4J] Found native YVU420
format - adding it to list
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:61] [V4L4J] Creating JPEG
encodable format list
[java] [v4l4j_ImageFormatList.c:84] [V4L4J] Found v4l4j-
convertible JPEG format from RGB24 format - add it
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:84] [V4L4J] Found v4l4j-
convertible JPEG format from BGR24 format - add it
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_ImageFormatList.c:84] [V4L4J] Found v4l4j-
convertible JPEG format from YUV420 format - add it
[java] [v4l4j_ResolutionInfo.c:53] [CALL] Entering
Java_au_edu_jcu_v4l4j_ResolutionInfo_doGetType
[java] [v4l4j_ResolutionInfo.c:64] [V4L4J] Returning resolution
of type 0 (unsupported)
[java] [v4l4j_VideoDevice.c:263] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doGetTunerActions
[java] [v4l4j_VideoDevice.c:266] [LIBVIDEO] Calling
get_tuner_actions()
[java] [libvideo.c:677 get_tuner_actions] TUN: Getting struct
tuner actions
[java] [libvideo.c:680 get_tuner_actions] [MEMALLOC]: allocating
4 bytes of type struct tuner_actions * for var vdev->tuner_action
(0x8776ae0)
[java] [v4l4j_VideoDevice.c:175] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doGetControlList
[java] [v4l4j_VideoDevice.c:185] [LIBVIDEO] Calling
get_control_list()
[java] [libvideo.c:487 get_control_list] CTRL: Listing controls
[java] [libvideo.c:489 get_control_list] [MEMALLOC]: allocating
16 bytes of type struct control_list * for var vdev->control
(0x8859de8)
[java] [v4l2-input.c:928 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var (*list) (0x885b088)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x8859dd8)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x8859d30)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x885ca58)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x885ca68)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x885b138)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x885b148)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x87c9ef0)
[java] [v4l2-input.c:967 count_v4l2_controls] CTRL: found 8 std
ctrls
[java] [v4l2-input.c:987 count_v4l2_controls] CTRL: found 8 std/
priv ctrls
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885b088).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x8859dd8).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x8859d30).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885ca58).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885ca68).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885b138).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885b148).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x87c9ef0).
[java] [v4l2-input.c:1013 count_v4l2_controls] CTRL: found 8 std/
priv/ext controls
[java] [pwc-probe.c:53 pwc_driver_probe] PWC: probing PWC ...
[java] [pwc-probe.c:77 pwc_driver_probe] PWC: pwc driver NOT
found
[java] [gspca-probe.c:80 gspca_driver_probe] GSPCA: probing GSPCA
[java] [gspca-probe.c:140 gspca_driver_probe] GSPCA: not found
[java] [qc-probe.c:51 qc_driver_probe] QC: probing Quickam
[java] [qc-probe.c:110 qc_driver_probe] QC: not found
[java] [libvideo.c:542 get_control_list] CTRL: Got 8 v4l controls
and 0 driver probe controls
[java] [libvideo.c:546 get_control_list] [MEMALLOC]: allocating
96 bytes of type struct control * for var l->controls (0x8876aa8)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876b10)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876b58)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876ba0)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876be8)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876c30)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876c78)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876cc0)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x8876d08)
[java] [libvideo.c:552 get_control_list] CTRL: Creating v4l
controls (found 8)...
[java] [v4l2-input.c:1187 create_v4l2_controls] CTRL: Creating
std controls
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980901 - name: Contrast - min: 0 - max: 255 - step: 1 - type:
1(Integer) - flags: 0 ()
[java] [v4l2-input.c:928 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var (*list) (0x87c9ef0)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x98090c - name: Whitebalance (software) - min: 0 - max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x885b138)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980910 - name: Gamma (software) - min: 500 - max: 3000 - step: 1 -
type: 1(Integer) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x885ca58)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980911 - name: Exposure - min: 0 - max: 255 - step: 1 - type:
1(Integer) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x8859dd8)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980912 - name: Auto Gain - min: 0 - max: 1 - step: 1 - type:
2(Boolean) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x885b088)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980913 - name: Gain - min: 0 - max: 255 - step: 1 - type: 1(Integer)
- flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x8876d50)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980914 - name: Mirror - min: 0 - max: 1 - step: 1 - type: 2(Boolean)
- flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x8876d60)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980915 - name: Vflip - min: 0 - max: 1 - step: 1 - type: 2(Boolean)
- flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x8876d70)
[java] [v4l2-input.c:1206 create_v4l2_controls] CTRL: Creating
priv controls (found 8 std ctrl)
[java] [v4l2-input.c:1232 create_v4l2_controls] CTRL: Creating
ext controls (created 8 std/priv ctrl so far)
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x87c9ef0).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885b138).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885ca58).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x8859dd8).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x885b088).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x8876d50).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x8876d60).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x8876d70).
[java] [libvideo.c:561 get_control_list] CTRL: (got 8)
[java] [libvideo.c:565 get_control_list] CTRL: listing private
controls (found 0)...
[java] [libvideo.c:572 get_control_list] CTRL: done listing
controls
[java] [v4l4j_VideoDevice.c:189] [V4L4J] Creating the Control
array[8]
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 0 -
name: Contrast - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 1 -
name: Whitebalance (software) - type: 2
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 2 -
name: Gamma (software) - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 3 -
name: Exposure - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 4 -
name: Auto Gain - type: 2
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 5 -
name: Gain - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 6 -
name: Mirror - type: 2
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 7 -
name: Vflip - type: 2
[java] [v4l4j_DeviceInfo.c:262] [CALL] Entering
Java_au_edu_jcu_v4l4j_DeviceInfo_doListIntervals
[java] [v4l4j_DeviceInfo.c:284] [V4L4L] Creating the frame
interval (unsupported)
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Mirror)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Mirror
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Mirror) = 0
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Gain)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Gain
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Gain) = 127
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Exposure)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Exposure
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Exposure) = 16
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Whitebalance (software))
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Whitebalance (software)
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Whitebalance (software)) = 1
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Vflip)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Vflip
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Vflip) = 0
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Gamma (software))
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Gamma (software)
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Gamma (software)) = 1000
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Contrast)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Contrast
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Contrast) = 127
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Auto Gain)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Auto Gain
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Auto Gain) = 1
[java] [v4l4j_FrameGrabber.c:365] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_doInit
[java] [v4l4j_FrameGrabber.c:305] [CALL] Entering
get_lastFrame_field_ids
[java] [v4l4j_FrameGrabber.c:379] [LIBVIDEO] Calling
init_capture_device()
[java] [libvideo.c:197 init_capture_device] CAP: Initialising
capture interface
[java] [libvideo.c:198 init_capture_device] [MEMALLOC]:
allocating 48 bytes of type struct capture_device * for var vdev-
>capture (0x87ae4b8)
[java] [libvideo.c:199 init_capture_device] [MEMALLOC]:
allocating 20 bytes of type struct mmap * for var vdev->capture->mmap
(0x87eed98)
[java] [libvideo.c:161 setup_capture_actions] [MEMALLOC]:
allocating 40 bytes of type struct capture_actions * for var c-
>actions (0x87ae680)
[java] [libvideo.c:212 init_capture_device] [MEMALLOC]:
allocating 20 bytes of type struct convert_data * for var vdev-
>capture->convert (0x87ae6b0)
[java] [v4l4j_FrameGrabber.c:235] [V4L4J] Setting output to RGB24
- input format: RGB24
[java] [v4l4j_FrameGrabber.c:260] [V4L4J] RGB24 conversion done
by libvideo
[java] [v4l4j_FrameGrabber.c:402] [V4L4J] input format: RGB24
[java] [v4l4j_FrameGrabber.c:404] [LIBVIDEO] calling
'set_cap_param'
[java] [v4l2-input.c:555 set_cap_param_v4l2] CAP: Setting capture
parameters on device /dev/video0.
[java] [v4l2-input.c:384 set_image_format] [MEMALLOC]: allocating
204 bytes of type struct v4l2_format * for var c->convert->src_fmt
(0x87af610)
[java] [v4l2-input.c:385 set_image_format] [MEMALLOC]: allocating
204 bytes of type struct v4l2_format * for var c->convert->dst_fmt
(0x87a5fb0)
[java] [v4l2-input.c:393 set_image_format] CAP: trying palettes
(1 to try in total)
[java] [v4l2-input.c:358 find_best_palette] CAP: trying palette
0x33424752 (RGB24) 640x480 - ...
[java] [v4l2-input.c:309 try_image_format] CAP: For dest palette
0x33424752 (RGB24 - 7) 640x480 - ...
[java] [v4l2-input.c:314 try_image_format] CAP: libv4lconvert
said to use palette 0x47504a50 640x480 - ...
[java] [v4l2-input.c:320 try_image_format] CAP: which is libvideo
index 67, palette PJPG
[java] [v4l2-input.c:330 try_image_format] CAP: libv4lconvert
required ? Yes
[java] [v4l2-input.c:370 find_best_palette] CAP: palette (RGB24)
is best palette so far
[java] [v4l2-input.c:410 set_image_format] CAP: Setting to best
palette RGB24...
[java] [v4l2-input.c:309 try_image_format] CAP: For dest palette
0x33424752 (RGB24 - 7) 640x480 - ...
[java] [v4l2-input.c:314 try_image_format] CAP: libv4lconvert
said to use palette 0x47504a50 640x480 - ...
[java] [v4l2-input.c:320 try_image_format] CAP: which is libvideo
index 67, palette PJPG
[java] [v4l2-input.c:330 try_image_format] CAP: libv4lconvert
required ? Yes
[java] [v4l2-input.c:248 apply_image_format] CAP: palette
0x47504a50 - accepted at 640x480
[java] [v4l2-input.c:418 set_image_format] CAP: setting src
palette (PJPG) accepted
[java] [v4l2-input.c:438 set_image_format] CAP: capturing (src)
using width: 640, height: 480, bytes/line 640, image size: 115790 -
palette: 67 (PJPG)
[java] [v4l2-input.c:443 set_image_format] CAP: libv4lconvert
required ? Yes
[java] [v4l2-input.c:454 set_image_format] CAP: conv to (dst)
width: 640, height: 480, bytes/line 1920, image size: 921600 -
palette: 7 (RGB24)
[java] [v4l4j_FrameGrabber.c:434] [LIBVIDEO] Calling
'init_capture(dev: /dev/video0)'
[java] [v4l2-input.c:614 init_capture_v4l2] CAP: Initialising
capture on device /dev/video0.
[java] [v4l2-input.c:624 init_capture_v4l2] CAP: asking for 4
V4L2 buffers
[java] [v4l2-input.c:633 init_capture_v4l2] CAP: driver said 4
V4L2 buffers
[java] [v4l2-input.c:636 init_capture_v4l2] [MEMALLOC]:
allocating 32 bytes of type struct mmap_buffer * for var c->mmap-
>buffers (0x87abe80)
[java] [v4l2-input.c:667 init_capture_v4l2] CAP: mmap'ed 118784
bytes at 0xb39a9000
[java] [v4l2-input.c:667 init_capture_v4l2] CAP: mmap'ed 118784
bytes at 0xb398c000
[java] [v4l2-input.c:667 init_capture_v4l2] CAP: mmap'ed 118784
bytes at 0xb396f000
[java] [v4l2-input.c:667 init_capture_v4l2] CAP: mmap'ed 118784
bytes at 0xb3952000
[java] [v4l2-input.c:673 init_capture_v4l2] CAP: need conversion,
create temp buffer (921600 bytes)
[java] [v4l2-input.c:675 init_capture_v4l2] [MEMALLOC]:
allocating 921600 bytes of type void * for var vdev->capture->convert-
>frame (0xb3870008)
[java] [v4l4j_FrameGrabber.c:173] [CALL] Entering
init_format_converter
[java] [v4l4j_FrameGrabber.c:199] [V4L4J] no conversion done by
v4l4j - raw copy
[java] [v4l4j_FrameGrabber.c:127] [V4L4J] OUTPUT: RGB24 - Using
byte array of size 921600
[java] [v4l4j_FrameGrabber.c:48] [CALL] Entering
update_width_height
[java] [v4l4j_FrameGrabber.c:111] [V4L4J] Setting format field to
'PJPG' image format
[java] [v4l4j_FrameGrabber.c:465] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_getBufferSize
[java] [v4l4j_FrameGrabber.c:127] [V4L4J] OUTPUT: RGB24 - Using
byte array of size 921600
[java] [v4l4j_FrameGrabber.c:476] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_start
[java] [v4l4j_FrameGrabber.c:480] [LIBVIDEO] Calling
'start_capture(dev: /dev/video0)'
[java] [v4l2-input.c:687 start_capture_v4l2] CAP: Starting
capture on device /dev/video0.
[java] [v4l4j_FrameGrabber.c:567] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_fillBuffer
[java] [v4l2-input.c:724 dequeue_buffer_v4l2_convert] CAP:
dequeuing buffer on device /dev/video0.
[java] Exception in thread "AWT-EventQueue-0"
java.lang.NullPointerException
[java] at
au.edu.jcu.v4l4j.examples.videoViewer.AbstractVideoViewer.startCapture(AbstractVideoViewer.java:
399)
[java] at
au.edu.jcu.v4l4j.examples.videoViewer.AbstractVideoViewer.access
$400(AbstractVideoViewer.java:86)
[java] at
au.edu.jcu.v4l4j.examples.videoViewer.AbstractVideoViewer
$3.mouseClicked(AbstractVideoViewer.java:240)
[java] at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:
270)
[java] at java.awt.Component.processMouseEvent(Component.java:
6271)
[java] at
javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
[java] at java.awt.Component.processEvent(Component.java:6033)
[java] at java.awt.Container.processEvent(Container.java:2045)
[java] at java.awt.Component.dispatchEventImpl(Component.java:
4629)
[java] at java.awt.Container.dispatchEventImpl(Container.java:
2103)
[java] at java.awt.Component.dispatchEvent(Component.java:4455)
[java] at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
[java] at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4306)
[java] at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
[java] at java.awt.Container.dispatchEventImpl(Container.java:
2089)
[java] at java.awt.Window.dispatchEventImpl(Window.java:2517)
[java] at java.awt.Component.dispatchEvent(Component.java:4455)
[java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:
649)
[java] at java.awt.EventQueue.access$000(EventQueue.java:96)
[java] at java.awt.EventQueue$1.run(EventQueue.java:608)
[java] at java.awt.EventQueue$1.run(EventQueue.java:606)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:116)
[java] at java.awt.EventQueue$2.run(EventQueue.java:622)
[java] at java.awt.EventQueue$2.run(EventQueue.java:620)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
275)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
200)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
190)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
[java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
[java] [v4l2-input.c:733 dequeue_buffer_v4l2_convert] CAP: Error
dequeuing buffer (5)
[java] [v4l4j_FrameGrabber.c:578] [V4L4J] Error dequeuing buffer
for capture
[java] [v4l4j_FrameGrabber.c:620] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_stop
[java] [v4l4j_FrameGrabber.c:623] [LIBVIDEO] Calling
stop_capture(dev: /dev/video0)
[java] [v4l2-input.c:839 stop_capture_v4l2] CAP: stopping capture
on device /dev/video0.
[java] [v4l4j_FrameGrabber.c:638] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_doRelease
[java] [v4l4j_FrameGrabber.c:208] [CALL] Entering
release_format_converter
[java] [v4l2-input.c:856 free_capture_v4l2] CAP: freeing capture
structure on device /dev/video0.
[java] [v4l2-input.c:860 free_capture_v4l2] MEMALLOC: freeing
memory for var vdev->capture->convert->frame (0xb3870008).
[java] [v4l2-input.c:867 free_capture_v4l2] CAP: unmmap 118784
bytes at 0xb39a9000
[java] [v4l2-input.c:867 free_capture_v4l2] CAP: unmmap 118784
bytes at 0xb398c000
[java] [v4l2-input.c:867 free_capture_v4l2] CAP: unmmap 118784
bytes at 0xb396f000
[java] [v4l2-input.c:867 free_capture_v4l2] CAP: unmmap 118784
bytes at 0xb3952000
[java] [v4l2-input.c:876 free_capture_v4l2] MEMALLOC: freeing
memory for var vdev->capture->mmap->buffers (0x87abe80).
[java] [v4l2-input.c:888 free_capture_v4l2] CAP: Applying
workaround - releasing v4l2 buffers
[java] [v4l2-input.c:903 free_capture_v4l2] MEMALLOC: freeing
memory for var vdev->capture->convert->dst_fmt (0x87a5fb0).
[java] [v4l2-input.c:904 free_capture_v4l2] MEMALLOC: freeing
memory for var vdev->capture->convert->src_fmt (0x87af610).
[java] [libvideo.c:223 free_capture_device] CAP: Freeing capture
device on /dev/video0.
[java] [libvideo.c:227 free_capture_device] MEMALLOC: freeing
memory for var vdev->capture->convert (0x87ae6b0).
[java] [libvideo.c:230 free_capture_device] MEMALLOC: freeing
memory for var vdev->capture->actions (0x87ae680).
[java] [libvideo.c:231 free_capture_device] MEMALLOC: freeing
memory for var vdev->capture->mmap (0x87eed98).
[java] [libvideo.c:232 free_capture_device] MEMALLOC: freeing
memory for var vdev->capture (0x87ae4b8).
[java] [v4l4j_VideoDevice.c:255] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doReleaseControlList
[java] [v4l4j_VideoDevice.c:258] [LIBVIDEO] Calling
release_control_list()
[java] [libvideo.c:638 release_control_list] CTRL: Freeing
controls
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876b10).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876b58).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876ba0).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876be8).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876c30).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876c78).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876cc0).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x8876d08).
[java] [libvideo.c:651 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls (0x8876aa8).
[java] [libvideo.c:667 release_control_list] MEMALLOC: freeing
memory for var vdev->control (0x8859de8).
[java] [v4l4j_VideoDevice.c:271] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doReleaseTunerActions
[java] [v4l4j_VideoDevice.c:274] [LIBVIDEO] Calling
release_tuner_actions()
[java] [libvideo.c:698 release_tuner_actions] TUN: Releasing
struct tuner actions
[java] [libvideo.c:699 release_tuner_actions] MEMALLOC: freeing
memory for var vdev->tuner_action (0x8776ae0).
[java] [v4l4j_DeviceInfo.c:337] [LIBVIDEO] call to
release_device_info
[java] [libvideo.c:407 release_device_info] QRY: Releasing device
info for device /dev/video0.
[java] [v4l2-query.c:697 free_video_device_v4l2] MEMALLOC:
freeing memory for var vd->info->palettes (0x8777ca8).
[java] [v4l2-query.c:519 free_video_inputs] MEMALLOC: freeing
memory for var vi[i].supported_stds (0x8776930).
[java] [v4l2-query.c:521 free_video_inputs] MEMALLOC: freeing
memory for var vi (0x8777838).
[java] [libvideo.c:422 release_device_info] MEMALLOC: freeing
memory for var vdev->info (0x8776a90).
[java] [v4l4j_VideoDevice.c:58] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doRelease
[java] [libvideo.c:119 close_device] VD: closing device file /dev/
video0.
[java] [libvideo.c:149 close_device] MEMALLOC: freeing memory for
var vdev (0x8777758).
[java] [v4l4j_VideoDevice.c:76] [V4L4J] Freeing v4l4j device
[java] [v4l4j_VideoDevice.c:77] [MEMALLOC]: freeing memory for
var d (0x8777730).
[java] Exception in thread "AWT-EventQueue-0"
au.edu.jcu.v4l4j.exceptions.StateException: This VideoDevice has not
been initialised and can not be used
[java] at au.edu.jcu.v4l4j.VideoDevice
$State.release(VideoDevice.java:1544)
[java] at au.edu.jcu.v4l4j.VideoDevice.release(VideoDevice.java:
354)
[java] at au.edu.jcu.v4l4j.VideoDevice.release(VideoDevice.java:
330)
[java] at
au.edu.jcu.v4l4j.examples.videoViewer.AbstractVideoViewer.windowClosing(AbstractVideoViewer.java:
432)
[java] at
java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:
349)
[java] at
java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:
349)
[java] at java.awt.Window.processWindowEvent(Window.java:1904)
[java] at javax.swing.JFrame.processWindowEvent(JFrame.java:290)
[java] at java.awt.Window.processEvent(Window.java:1862)
[java] at java.awt.Component.dispatchEventImpl(Component.java:
4629)
[java] at java.awt.Container.dispatchEventImpl(Container.java:
2103)
[java] at java.awt.Window.dispatchEventImpl(Window.java:2517)
[java] at java.awt.Component.dispatchEvent(Component.java:4455)
[java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:
649)
[java] at java.awt.EventQueue.access$000(EventQueue.java:96)
[java] at java.awt.EventQueue$1.run(EventQueue.java:608)
[java] at java.awt.EventQueue$1.run(EventQueue.java:606)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:116)
[java] at java.awt.EventQueue$2.run(EventQueue.java:622)
[java] at java.awt.EventQueue$2.run(EventQueue.java:620)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
275)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
200)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
190)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
[java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
[java] Exception in thread "AWT-EventQueue-0"
au.edu.jcu.v4l4j.exceptions.StateException: This VideoDevice has not
been initialised and can not be used
[java] at au.edu.jcu.v4l4j.VideoDevice
$State.release(VideoDevice.java:1544)
[java] at au.edu.jcu.v4l4j.VideoDevice.release(VideoDevice.java:
354)
[java] at au.edu.jcu.v4l4j.VideoDevice.release(VideoDevice.java:
330)
[java] at
au.edu.jcu.v4l4j.examples.videoViewer.AbstractVideoViewer.windowClosing(AbstractVideoViewer.java:
432)
[java] at
java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:
349)
[java] at
java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:
349)
[java] at java.awt.Window.processWindowEvent(Window.java:1904)
[java] at javax.swing.JFrame.processWindowEvent(JFrame.java:290)
[java] at java.awt.Window.processEvent(Window.java:1862)
[java] at java.awt.Component.dispatchEventImpl(Component.java:
4629)
[java] at java.awt.Container.dispatchEventImpl(Container.java:
2103)
[java] at java.awt.Window.dispatchEventImpl(Window.java:2517)
[java] at java.awt.Component.dispatchEvent(Component.java:4455)
[java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:
649)
[java] at java.awt.EventQueue.access$000(EventQueue.java:96)
[java] at java.awt.EventQueue$1.run(EventQueue.java:608)
[java] at java.awt.EventQueue$1.run(EventQueue.java:606)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:116)
[java] at java.awt.EventQueue$2.run(EventQueue.java:622)
[java] at java.awt.EventQueue$2.run(EventQueue.java:620)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
275)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
200)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
190)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
[java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

BUILD SUCCESSFUL
Total time: 20 seconds

On Sep 30, 7:47 pm, Gilles Gigan <gilles.gi...@gmail.com> wrote:
> Jay,
> I forgot one thing: after rebuilding /reinstalling v4l4j in debug
> mode, can you also run 'ant deviceInfo' and send its output too.
> Thanks
> Gilles
>
>
>
>
>
>
>
> On Sat, Oct 1, 2011 at 9:16 AM, Gilles Gigan <gilles.gi...@gmail.com> wrote:
> > Hi Jay,
> > Ok, to debug this issue, can you do the following:
> > - uninstall v4l4j (sudo ant uninstall)
> > - rebuild v4l4j in debug mode (ant clean all-debug)
> > - reinstall it (sudo ant install)
> > - then run ant test-gui
> > Copy the output of this last command to a file and post it here.
> > Thanks
> > Gilles
>

J.G.

unread,
Oct 4, 2011, 4:48:08 PM10/4/11
to v4l4j
Running deviceInfo

deviceInfo:
[java] name: USB Camera (093a:260f)
[java] Device file: /dev/video0
[java] Supported formats:
[java] RGB24 - 7 - no resolution information
[java] BGR24 - 6 - no resolution information
[java] YUV420 - 31 - no resolution information
[java] YVU420 - 17 - no resolution information
[java] Formats that can be RGB24-converted:
[java] RGB24 - 7 - no resolution information
[java] Formats that can be BGR24-converted:
[java] BGR24 - 6 - no resolution information
[java] Formats that can be YUV420-converted:
[java] YUV420 - 31 - no resolution information
[java] Formats that can be YVU420-converted:
[java] YVU420 - 17 - no resolution information
[java] Formats that can be JPEG-encoded:
[java] RGB24 - 7 - no resolution information
[java] BGR24 - 6 - no resolution information
[java] YUV420 - 31 - no resolution information
[java] Inputs:
[java] Name: pac7311
[java] Type: 2(Camera)
[java] Index: 0
[java] Supported standards:
[java] 0(None/Webcam)
[java] Control: Whitebalance (software) - min: 0 - max: 1 - step:
1 - value: 1
[java] Control: Gamma (software) - min: 500 - max: 3000 - step: 1
- value: 1000
[java] Control: Gain - min: 0 - max: 255 - step: 1 - value: 127
[java] Control: Contrast - min: 0 - max: 255 - step: 1 - value:
127
[java] Control: Vflip - min: 0 - max: 1 - step: 1 - value: 0
[java] Control: Mirror - min: 0 - max: 1 - step: 1 - value: 0
[java] Control: Auto Gain - min: 0 - max: 1 - step: 1 - value: 1
[java] Control: Exposure - min: 0 - max: 255 - step: 1 - value:
16
[java] [v4l4j_VideoDevice.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doInit
[java] [v4l4j_VideoDevice.c:39] [MEMALLOC]: allocated 32 bytes of
type struct v4l4j_device * for var d (0x9857558).
[java] [v4l4j_VideoDevice.c:42] [LIBVIDEO] Calling open_device()
[java] [ libvideo.c:68 ] Using libvideo version 0.8-10
[java] [libvideo.c:75 open_device] VD: Opening device file /dev/
video0.
[java] [libvideo.c:82 open_device] [MEMALLOC]: allocating 124
bytes of type struct video_device * for var vdev (0x98625a0)
[java] [libvideo.c:87 open_device] VD: Checking V4L version on
device /dev/video0
[java] [v4l2-input.c:54 check_capture_capabilities_v4l2] CAP:
Checking capture device
[java] [libvideo.c:90 open_device] VD: device /dev/video0 is V4L2
[java] [v4l4j_DeviceInfo.c:212] [CALL] Entering
Java_au_edu_jcu_v4l4j_DeviceInfo_getInfo
[java] [v4l4j_DeviceInfo.c:234] [LIBVIDEO] call to
get_device_info
[java] [libvideo.c:372 get_device_info] QRY: Querying device /dev/
video0.
[java] [libvideo.c:374 get_device_info] [MEMALLOC]: allocating 60
bytes of type struct device_info * for var vdev->info (0x98574f8)
[java] [v4l2-query.c:618 query_device_v4l2] QRY: Querying V4L2
device.
[java] [v4l2-query.c:539 check_inputs_v4l2] QRY: querying inputs
[java] [v4l2-query.c:548 check_inputs_v4l2] QRY: found 1 inputs
[java] [v4l2-query.c:551 check_inputs_v4l2] [MEMALLOC]:
allocating 56 bytes of type struct video_input_info * for var di-
>inputs (0x9862680)
[java] [v4l2-query.c:567 check_inputs_v4l2] QRY: input 0 -
pac7311 - Camera - tuner: 0
[java] [v4l2-query.c:585 check_inputs_v4l2] QRY: No tuner
[java] [v4l2-query.c:526 add_supported_std] QRY: Adding standard
0
[java] [v4l2-query.c:528 add_supported_std] [REALLOC]: Allocating
4 bytes of type int * for var vi->supported_stds (0x9851ff8)
[java] [v4l2-query.c:453 check_palettes_v4l2] QRY: Checking
supported palettes.
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x33424752
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: RGB24
supported (7)
[java] [v4l2-query.c:350 add_supported_palette] [REALLOC]:
Allocating 16 bytes of type struct palette_info * for var di->palettes
(0x9850c00)
[java] [v4l2-query.c:374 add_supported_palette] QRY: RGB24 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (RGB24 - 7) as a native one
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x33524742
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: BGR24
supported (6)
[java] [v4l2-query.c:350 add_supported_palette] REALLOC: re-
allocating 32 bytes of type struct palette_info * for var di-
>palettes(0x98564e0).
[java] [v4l2-query.c:374 add_supported_palette] QRY: BGR24 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (BGR24 - 6) as a native one
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x32315559
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: YUV420
supported (31)
[java] [v4l2-query.c:350 add_supported_palette] REALLOC: re-
allocating 48 bytes of type struct palette_info * for var di-
>palettes(0x9865860).
[java] [v4l2-query.c:374 add_supported_palette] QRY: YUV420 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (YUV420 - 31) as a native one
[java] [v4l2-query.c:460 check_palettes_v4l2] QRY: looking for
palette 0x32315659
[java] [v4l2-query.c:468 check_palettes_v4l2] QRY: YVU420
supported (17)
[java] [v4l2-query.c:350 add_supported_palette] REALLOC: re-
allocating 64 bytes of type struct palette_info * for var di-
>palettes(0x9865860).
[java] [v4l2-query.c:374 add_supported_palette] QRY: YVU420 is a
converted palette
[java] [v4l2-query.c:382 add_supported_palette] QRY: from 67
(PJPG)
[java] [v4l2-query.c:290 add_raw_format] QRY: raw palette 67
(PJPG - 0x47504a50) cannot be used for capture- Advertising this
'converted' palette (YVU420 - 17) as a native one
[java] [v4l4j_DeviceInfo.c:242] [V4L4J] Creating inputInfo
objects
[java] [v4l4j_DeviceInfo.c:70] [CALL] Entering
create_inputs_object
[java] [v4l4j_DeviceInfo.c:132] [V4L4J] Setting new stds array
with array[1] @ 0x9851ff8
[java] [v4l4j_DeviceInfo.c:139] [V4L4J] Creating input object (wo
tuner): name 'pac7311' - supported standards (1): 0x9851ff8 - index: 0
(0x9865ac8)
[java] [v4l4j_VideoDevice.c:175] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doGetControlList
[java] [v4l4j_VideoDevice.c:185] [LIBVIDEO] Calling
get_control_list()
[java] [libvideo.c:487 get_control_list] CTRL: Listing controls
[java] [libvideo.c:489 get_control_list] [MEMALLOC]: allocating
16 bytes of type struct control_list * for var vdev->control
(0x98658f0)
[java] [v4l2-input.c:928 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var (*list) (0x9865ad8)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9865b28)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9865b38)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d18)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d28)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d38)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d48)
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d58)
[java] [v4l2-input.c:967 count_v4l2_controls] CTRL: found 8 std
ctrls
[java] [v4l2-input.c:987 count_v4l2_controls] CTRL: found 8 std/
priv ctrls
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:1000 count_v4l2_controls] CTRL: found
duplicate ext ctrl
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9865ad8).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9865b28).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9865b38).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d18).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d28).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d38).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d48).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d58).
[java] [v4l2-input.c:1013 count_v4l2_controls] CTRL: found 8 std/
priv/ext controls
[java] [pwc-probe.c:53 pwc_driver_probe] PWC: probing PWC ...
[java] [pwc-probe.c:77 pwc_driver_probe] PWC: pwc driver NOT
found
[java] [gspca-probe.c:80 gspca_driver_probe] GSPCA: probing GSPCA
[java] [gspca-probe.c:140 gspca_driver_probe] GSPCA: not found
[java] [qc-probe.c:51 qc_driver_probe] QC: probing Quickam
[java] [qc-probe.c:110 qc_driver_probe] QC: not found
[java] [libvideo.c:542 get_control_list] CTRL: Got 8 v4l controls
and 0 driver probe controls
[java] [libvideo.c:546 get_control_list] [MEMALLOC]: allocating
96 bytes of type struct control * for var l->controls (0x9868d68)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868dd0)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868e18)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868e60)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868ea8)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868ef0)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868f38)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868f80)
[java] [libvideo.c:549 get_control_list] [MEMALLOC]: allocating
68 bytes of type struct v4l2_queryctrl * for var l-
>controls[nb].v4l2_ctrl (0x9868fc8)
[java] [libvideo.c:552 get_control_list] CTRL: Creating v4l
controls (found 8)...
[java] [v4l2-input.c:1187 create_v4l2_controls] CTRL: Creating
std controls
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980901 - name: Contrast - min: 0 - max: 255 - step: 1 - type:
1(Integer) - flags: 0 ()
[java] [v4l2-input.c:928 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var (*list) (0x9868d58)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x98090c - name: Whitebalance (software) - min: 0 - max: 1 - step: 1 -
type: 2(Boolean) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d48)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980910 - name: Gamma (software) - min: 500 - max: 3000 - step: 1 -
type: 1(Integer) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d38)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980911 - name: Exposure - min: 0 - max: 255 - step: 1 - type:
1(Integer) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d28)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980912 - name: Auto Gain - min: 0 - max: 1 - step: 1 - type:
2(Boolean) - flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9868d18)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980913 - name: Gain - min: 0 - max: 255 - step: 1 - type: 1(Integer)
- flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9865b28)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980914 - name: Mirror - min: 0 - max: 1 - step: 1 - type: 2(Boolean)
- flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9865ad8)
[java] [v4l2-input.c:1193 create_v4l2_controls] CTRL: control id:
0x980915 - name: Vflip - min: 0 - max: 1 - step: 1 - type: 2(Boolean)
- flags: 0 ()
[java] [v4l2-input.c:924 add_node] [MEMALLOC]: allocating 8 bytes
of type node * for var t->next (0x9869010)
[java] [v4l2-input.c:1206 create_v4l2_controls] CTRL: Creating
priv controls (found 8 std ctrl)
[java] [v4l2-input.c:1232 create_v4l2_controls] CTRL: Creating
ext controls (created 8 std/priv ctrl so far)
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:1256 create_v4l2_controls] CTRL: duplicate
ext ctrl
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d58).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d48).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d38).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d28).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9868d18).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9865b28).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9865ad8).
[java] [v4l2-input.c:936 empty_list] MEMALLOC: freeing memory for
var list (0x9869010).
[java] [libvideo.c:561 get_control_list] CTRL: (got 8)
[java] [libvideo.c:565 get_control_list] CTRL: listing private
controls (found 0)...
[java] [libvideo.c:572 get_control_list] CTRL: done listing
controls
[java] [v4l4j_VideoDevice.c:189] [V4L4J] Creating the Control
array[8]
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 0 -
name: Contrast - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 1 -
name: Whitebalance (software) - type: 2
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 2 -
name: Gamma (software) - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 3 -
name: Exposure - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 4 -
name: Auto Gain - type: 2
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 5 -
name: Gain - type: 1
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 6 -
name: Mirror - type: 2
[java] [v4l4j_VideoDevice.c:235] [V4L4J] Creating Control 7 -
name: Vflip - type: 2
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Whitebalance (software))
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Whitebalance (software)
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Whitebalance (software)) = 1
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Gamma (software))
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Gamma (software)
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Gamma (software)) = 1000
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Gain)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Gain
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Gain) = 127
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Contrast)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Contrast
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Contrast) = 127
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Vflip)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Vflip
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Vflip) = 0
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Mirror)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Mirror
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Mirror) = 0
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Auto Gain)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Auto Gain
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Auto Gain) = 1
[java] [v4l4j_Control.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_Control_doGetValue
[java] [v4l4j_Control.c:41] [LIBVIDEO] Calling
get_control_value(dev: /dev/video0, ctrl name:Exposure)
[java] [libvideo.c:587 get_control_value] CTRL: getting value for
control Exposure
[java] [v4l4j_Control.c:49] [V4L4J] get_control_value(dev: /dev/
video0, ctrl name:Exposure) = 16
[java] [v4l4j_VideoDevice.c:255] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doReleaseControlList
[java] [v4l4j_VideoDevice.c:258] [LIBVIDEO] Calling
release_control_list()
[java] [libvideo.c:638 release_control_list] CTRL: Freeing
controls
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868dd0).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868e18).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868e60).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868ea8).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868ef0).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868f38).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868f80).
[java] [libvideo.c:644 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls[i].v4l2_ctrl (0x9868fc8).
[java] [libvideo.c:651 release_control_list] MEMALLOC: freeing
memory for var vdev->control->controls (0x9868d68).
[java] [libvideo.c:667 release_control_list] MEMALLOC: freeing
memory for var vdev->control (0x98658f0).
[java] [v4l4j_VideoDevice.c:271] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doReleaseTunerActions
[java] [v4l4j_VideoDevice.c:274] [LIBVIDEO] Calling
release_tuner_actions()
[java] [libvideo.c:698 release_tuner_actions] TUN: Releasing
struct tuner actions
[java] [libvideo.c:699 release_tuner_actions] MEMALLOC: freeing
memory for var vdev->tuner_action (0x9865ac8).
[java] [v4l4j_DeviceInfo.c:337] [LIBVIDEO] call to
release_device_info
[java] [libvideo.c:407 release_device_info] QRY: Releasing device
info for device /dev/video0.
[java] [v4l2-query.c:697 free_video_device_v4l2] MEMALLOC:
freeing memory for var vd->info->palettes (0x9865860).
[java] [v4l2-query.c:519 free_video_inputs] MEMALLOC: freeing
memory for var vi[i].supported_stds (0x9851ff8).
[java] [v4l2-query.c:521 free_video_inputs] MEMALLOC: freeing
memory for var vi (0x9862680).
[java] [libvideo.c:422 release_device_info] MEMALLOC: freeing
memory for var vdev->info (0x98574f8).
[java] [v4l4j_VideoDevice.c:58] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doRelease
[java] [libvideo.c:119 close_device] VD: closing device file /dev/
video0.
[java] [libvideo.c:149 close_device] MEMALLOC: freeing memory for
var vdev (0x98625a0).
[java] [v4l4j_VideoDevice.c:76] [V4L4J] Freeing v4l4j device
[java] [v4l4j_VideoDevice.c:77] [MEMALLOC]: freeing memory for
var d (0x9857558).

BUILD SUCCESSFUL
Total time: 1 second

On Sep 30, 7:47 pm, Gilles Gigan <gilles.gi...@gmail.com> wrote:
> Jay,
> I forgot one thing: after rebuilding /reinstalling v4l4j in debug
> mode, can you also run 'ant deviceInfo' and send its output too.
> Thanks
> Gilles
>
>
>
>
>
>
>
> On Sat, Oct 1, 2011 at 9:16 AM, Gilles Gigan <gilles.gi...@gmail.com> wrote:
> > Hi Jay,
> > Ok, to debug this issue, can you do the following:
> > - uninstall v4l4j (sudo ant uninstall)
> > - rebuild v4l4j in debug mode (ant clean all-debug)
> > - reinstall it (sudo ant install)
> > - then run ant test-gui
> > Copy the output of this last command to a file and post it here.
> > Thanks
> > Gilles
>

Gilles Gigan

unread,
Oct 6, 2011, 11:44:06 PM10/6/11
to v4...@googlegroups.com
Jay,
I can see two issues in the traces you sent. The first one is a bug I
need to fix, but in the meantime, you can avoid hitting it by
commenting line 399 in AbstractVideoViewer.java .
Once you have done that, can you run "ant all-debug; sudo ant install"
and see if "ant test-gui" works. But I suspect it wont... because of
the second issue:
Further down in the first trace, I can see that v4l4j was unable to
dequeue the first video buffer (driver returns EIO, which according to
the v4l API means the buffer type is not supported, but if that was
the case, it should have failed much earlier, when capture parameters
were negotiated). So, if you cant capture after commenting out the
line mentioned above, try this:
in libvideo/, run "make test". Then run "./test-capture /dev/video0 1
0 0 640 480 67" and send the output.

Gilles

Gilles Gigan

unread,
Oct 23, 2011, 12:17:52 AM10/23/11
to v4...@googlegroups.com
Jay,
i finally got around to fixing the issue you reported.
When you have some time, can you please test the fix ?
update to the latest trunk, uninstall v4l4j, "ant clean all-debug",
"sudo ant install" and "ant test-gui"
This should work now. if not, please submit the output of ant test-gui.

Thanks
Gilles

Reply all
Reply to author
Forward
0 new messages