Hi Gilles,
it seems it doesn't work... it just show a frame, and freeze on it...
Anyway, the output is:
Buildfile: /home/aisac/Desktop/prove/branch2/v4l4j/build.xml
test-simpleViewer:
[java] Starting capture at 640x480
[java] [v4l4j_VideoDevice.c:37] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doInit
[java] [v4l4j_VideoDevice.c:39] [MEMALLOC]: allocated 48 bytes of
type struct v4l4j_device * for var d (0x7f49bc019db0).
[java] [v4l4j_VideoDevice.c:42] [LIBVIDEO] Calling open_device()
[java] [ libvideo.c:68 ] Using libvideo version 0.8-libvideo_r344
dell'Ultimo
[java] [v4l2-input.c:54 check_capture_capabilities_v4l2] CAP:
Checking capture device
[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] [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[3] @ 0x7f49bc01b480
[java] [v4l4j_DeviceInfo.c:139] [V4L4J] Creating input object (wo
tuner): name 'Composite0' - supported standards (3): 0x7f49bc01b480 -
index: 0
[java] [v4l4j_DeviceInfo.c:132] [V4L4J] Setting new stds array
with array[3] @ 0x7f49bc01b4a0
[java] [v4l4j_DeviceInfo.c:139] [V4L4J] Creating input object (wo
tuner): name 'Composite1' - supported standards (3): 0x7f49bc01b4a0 -
index: 1
[java] [v4l4j_DeviceInfo.c:132] [V4L4J] Setting new stds array
with array[3] @ 0x7f49bc002570
[java] [v4l4j_DeviceInfo.c:139] [V4L4J] Creating input object (wo
tuner): name 'Composite2' - supported standards (3): 0x7f49bc002570 -
index: 2
[java] [v4l4j_DeviceInfo.c:132] [V4L4J] Setting new stds array
with array[3] @ 0x7f49bc01b4c0
[java] [v4l4j_DeviceInfo.c:139] [V4L4J] Creating input object (wo
tuner): name 'Composite3' - supported standards (3): 0x7f49bc01b4c0 -
index: 3
[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 GREY
- index: 10 - 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
HI240 - index: 32 - 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
RGB555 - index: 2 - 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
RGB555 BE - index: 4 - 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
RGB565 - index: 3 - 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
RGB565 BE - index: 5 - 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
BGR32 - index: 8 - 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
RGB32 - index: 9 - 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 YUYV
- index: 18 - 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 YUYV
- index: 18 - 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 UYVY
- index: 21 - 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
YUV422P - index: 23 - 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:282] [V4L4J] Checking format
YUV411P - index: 24 - 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
YUV410 - index: 30 - 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
YVU410 - index: 16 - 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
RGB24 - index: 7 - raw ? No-skipping it
[java] [v4l4j_ImageFormatList.c:104] [V4L4J] Creating RGB
encodable format list
[java] [v4l4j_ImageFormatList.c:141] [V4L4J] Found v4l4j provided
RGB24 format from BGR32 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:141] [V4L4J] Found v4l4j provided
RGB24 format from RGB32 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:124] [V4L4J] Found libvideo-
converted RGB24 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: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 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 BGR32 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 RGB32 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 YUYV 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 YUYV 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 UYVY 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_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_VideoDevice.c:263] [CALL] Entering
Java_au_edu_jcu_v4l4j_VideoDevice_doGetTunerActions
[java] [v4l4j_VideoDevice.c:266] [LIBVIDEO] Calling
get_tuner_actions()
[java] [v4l4j_FrameGrabber.c:492] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_setQuality
[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] [v4l4j_FrameGrabber.c:235] [V4L4J] Setting output to JPEG
- input format: BGR24
[java] [v4l4j_FrameGrabber.c:242] [V4L4J] JPEG conversion done by
v4l4j
[java] [v4l4j_FrameGrabber.c:402] [V4L4J] input format: BGR24
[java] [v4l4j_FrameGrabber.c:404] [LIBVIDEO] calling
'set_cap_param'
[java] [v4l2-input.c:581 set_cap_param_v4l2] CAP: Setting capture
parameters on device /dev/video0.
[java] [ v4l2-input.c:155 ] The specified standard (0) is
invalid.
[java] [v4l2-input.c:113 detect_standard] Trying to autodetect
standard
[java] [ v4l2-input.c:122 ] Adjusted standard to PAL
[java] [v4l2-input.c:222 set_input] CAP: Setting input.
[java] [v4l2-input.c:384 set_image_format] [MEMALLOC]: allocating
208 bytes of type struct v4l2_format * for var c->convert->src_fmt
(0x7f49bc061400)
[java] [v4l2-input.c:385 set_image_format] [MEMALLOC]: allocating
208 bytes of type struct v4l2_format * for var c->convert->dst_fmt
(0x7f49bc0614e0)
[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
0x33524742 (BGR24) 640x480 - ...
[java] [v4l2-input.c:309 try_image_format] CAP: For dest palette
0x33524742 (BGR24 - 6) 640x480 - ...
[java] [v4l2-input.c:314 try_image_format] CAP: libv4lconvert
said to use palette 0x33524742 640x480 - ...
[java] [v4l2-input.c:320 try_image_format] CAP: which is libvideo
index 6, palette BGR24
[java] [v4l2-input.c:330 try_image_format] CAP: libv4lconvert
required ? No
[java] [v4l2-input.c:370 find_best_palette] CAP: palette (BGR24)
is best palette so far
[java] [v4l2-input.c:410 set_image_format] CAP: Setting to best
palette BGR24...
[java] [v4l2-input.c:309 try_image_format] CAP: For dest palette
0x33524742 (BGR24 - 6) 640x480 - ...
[java] [v4l2-input.c:314 try_image_format] CAP: libv4lconvert
said to use palette 0x33524742 640x480 - ...
[java] [v4l2-input.c:320 try_image_format] CAP: which is libvideo
index 6, palette BGR24
[java] [v4l2-input.c:330 try_image_format] CAP: libv4lconvert
required ? No
[java] [v4l2-input.c:248 apply_image_format] CAP: palette
0x33524742 - accepted at 640x480
[java] [v4l2-input.c:418 set_image_format] CAP: setting src
palette (BGR24) accepted
[java] [v4l2-input.c:438 set_image_format] CAP: capturing (src)
using width: 640, height: 480, bytes/line 1920, image size: 921600 -
palette: 6 (BGR24)
[java] [v4l2-input.c:443 set_image_format] CAP: libv4lconvert
required ? No
[java] [v4l2-input.c:454 set_image_format] CAP: conv to (dst)
width: 640, height: 480, bytes/line 1920, image size: 921600 -
palette: 6 (BGR24)
[java] [v4l4j_FrameGrabber.c:434] [LIBVIDEO] Calling
'init_capture(dev: /dev/video0)'
[java] [v4l2-input.c:640 init_capture_v4l2] CAP: Initialising
capture on device /dev/video0.
[java] [v4l2-input.c:650 init_capture_v4l2] CAP: asking for 4
V4L2 buffers
[java] [v4l2-input.c:659 init_capture_v4l2] CAP: driver said 4
V4L2 buffers
[java] [v4l2-input.c:662 init_capture_v4l2] [MEMALLOC]:
allocating 64 bytes of type struct mmap_buffer * for var c->mmap-
>buffers (0x7f49bc0615c0)
[java] [v4l2-input.c:693 init_capture_v4l2] CAP: mmap'ed 921600
bytes at 0x7f49c0b4d000
[java] [v4l2-input.c:693 init_capture_v4l2] CAP: mmap'ed 921600
bytes at 0x7f49c0a6c000
[java] [v4l2-input.c:693 init_capture_v4l2] CAP: mmap'ed 921600
bytes at 0x7f49c098b000
[java] [v4l2-input.c:693 init_capture_v4l2] CAP: mmap'ed 921600
bytes at 0x7f49c08aa000
[java] [v4l4j_FrameGrabber.c:173] [CALL] Entering
init_format_converter
[java] [v4l4j_FrameGrabber.c:178] [V4L4J] Initialising JPEG
converter
[java] [jpeg.c:473] [JPEG] Initialising the JPEG compressor
[java] [jpeg.c:474] [MEMALLOC]: allocated 32 bytes of type struct
jpeg_data * for var d->j (0x7f49bc061610).
[java] [jpeg.c:481] [MEMALLOC]: allocated 520 bytes of type
struct jpeg_compress_struct * for var d->j->cinfo (0x7f49bc061c40).
[java] [jpeg.c:482] [MEMALLOC]: allocated 168 bytes of type
struct jpeg_error_mgr * for var d->j->jerr (0x7f49bc061e50).
[java] [jpeg.c:483] [MEMALLOC]: allocated 40 bytes of type struct
jpeg_destination_mgr * for var d->j->destmgr (0x7f49bc061f00).
[java] [jpeg.c:530] [MEMALLOC]: allocated 1920 bytes of type
unsigned char * for var d->temp_conv_buffer (0x7f49bc06ab40).
[java] [jpeg.c:531] [JPEG] Setting jpeg compressor for BGR24
[java] [v4l4j_FrameGrabber.c:48] [CALL] Entering
update_width_height
[java] [v4l4j_FrameGrabber.c:111] [V4L4J] Setting format field to
'BGR24' image format
[java] [v4l4j_FrameGrabber.c:465] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_getBufferSize
[java] [v4l4j_FrameGrabber.c:121] [V4L4J] OUTPUT: RAW / JPEG -
Using byte array of size 921600
[java] [v4l4j_FrameGrabber.c:492] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_setQuality
[java] [v4l4j_FrameGrabber.c:496] [V4L4J] Setting JPEG quality to
80
[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:713 start_capture_v4l2] CAP: Starting
capture on device /dev/video0.
[java] [v4l4j_FrameGrabber.c:623] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_fillBuffer
[java] [v4l2-input.c:822 dequeue_buffer_v4l2] CAP: dequeuing
buffer on device /dev/video0.
[java] [v4l2-input.c:846 dequeue_buffer_v4l2] CAP: dequeued
buffer 0 length: 921600 - seq: 6 - time 1319441477101431
[java] [v4l2-input.c:743 print_buffer_details] Index: 0
[java] Input Flag: no
[java] Input: 0
[java] [jpeg.c:408] [CALL] Entering jpeg_encode_bgr24
[java] [jpeg.c:417] [JPEG] Starting compression (921600 bytes)
[java] [jpeg.c:431] [JPEG] Finished compression (42145 bytes)
[java] [v4l4j_FrameGrabber.c:612] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_enqueueBuffer
[java] [v4l2-input.c:856 enqueue_buffer_v4l2] CAP: queuing buffer
on device /dev/video0.
[java] [v4l2-input.c:867 enqueue_buffer_v4l2] CAP: error queuing
buffer
[java] [v4l4j_FrameGrabber.c:623] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_fillBuffer
[java] [v4l2-input.c:822 dequeue_buffer_v4l2] CAP: dequeuing
buffer on device /dev/video0.
[java] [v4l2-input.c:846 dequeue_buffer_v4l2] CAP: dequeued
buffer 1 length: 921600 - seq: 7 - time 1319441477141396
[java] [v4l2-input.c:743 print_buffer_details] Index: 1
[java] Input Flag: no
[java] Input: 0
[java] [jpeg.c:408] [CALL] Entering jpeg_encode_bgr24
[java] [jpeg.c:417] [JPEG] Starting compression (921600 bytes)
[java] [jpeg.c:431] [JPEG] Finished compression (31673 bytes)
[java] [v4l4j_FrameGrabber.c:612] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_enqueueBuffer
[java] [v4l2-input.c:856 enqueue_buffer_v4l2] CAP: queuing buffer
on device /dev/video0.
[java] [v4l2-input.c:867 enqueue_buffer_v4l2] CAP: error queuing
buffer
[java] [v4l4j_FrameGrabber.c:623] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_fillBuffer
[java] [v4l2-input.c:822 dequeue_buffer_v4l2] CAP: dequeuing
buffer on device /dev/video0.
[java] [v4l2-input.c:846 dequeue_buffer_v4l2] CAP: dequeued
buffer 2 length: 921600 - seq: 8 - time 1319441477181427
[java] [v4l2-input.c:743 print_buffer_details] Index: 2
[java] Input Flag: no
[java] Input: 0
[java] [jpeg.c:408] [CALL] Entering jpeg_encode_bgr24
[java] [jpeg.c:417] [JPEG] Starting compression (921600 bytes)
[java] [jpeg.c:431] [JPEG] Finished compression (31819 bytes)
[java] [v4l4j_FrameGrabber.c:612] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_enqueueBuffer
[java] [v4l2-input.c:856 enqueue_buffer_v4l2] CAP: queuing buffer
on device /dev/video0.
[java] [v4l2-input.c:867 enqueue_buffer_v4l2] CAP: error queuing
buffer
[java] [v4l4j_FrameGrabber.c:623] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_fillBuffer
[java] [v4l2-input.c:822 dequeue_buffer_v4l2] CAP: dequeuing
buffer on device /dev/video0.
[java] [v4l2-input.c:846 dequeue_buffer_v4l2] CAP: dequeued
buffer 3 length: 921600 - seq: 9 - time 1319441477221401
[java] [v4l2-input.c:743 print_buffer_details] Index: 3
[java] Input Flag: no
[java] Input: 0
[java] [jpeg.c:408] [CALL] Entering jpeg_encode_bgr24
[java] [jpeg.c:417] [JPEG] Starting compression (921600 bytes)
[java] [jpeg.c:431] [JPEG] Finished compression (36352 bytes)
[java] [v4l4j_FrameGrabber.c:612] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_enqueueBuffer
[java] [v4l2-input.c:856 enqueue_buffer_v4l2] CAP: queuing buffer
on device /dev/video0.
[java] [v4l2-input.c:867 enqueue_buffer_v4l2] CAP: error queuing
buffer
[java] [v4l4j_FrameGrabber.c:623] [CALL] Entering
Java_au_edu_jcu_v4l4j_AbstractGrabber_fillBuffer
[java] [v4l2-input.c:822 dequeue_buffer_v4l2] CAP: dequeuing
buffer on device /dev/video0.
I've tried to check (in my project) how change the input field, when I
switch input in the old manner, and I see that it doesn't change! it
is alwas 0.
I'm continuing to find a solution on the C side, but I'm new of v4l,
so no big step ahead, for now... I've tried even to contact the
provider of the card, but they told me just "look v4l api", so no real
help. Aniway, I must find a solution, so no rest for me...
> I have made changes so that struct v4l2_buffer->input is used instead
> of ioctl(VIDIOC_S_INPUT) to change the current input. I am not sure
> whether this is going to work, but it doesnt hurt to try.
> Can you please update your copy, make sure you uninstall the current
> version of v4l4j, then "ant clean all-debug", and "sudo ant install".
> Test it with "ant test-simpleViewer". This will show 5 frames from
> input 0, then 5 frames from input 1, if everything goes according to
> plan.
> Can you please send the output of "ant test-simpleViewer" (even if it works).
> Thanks
> Gilles
>
>
>
>
>
>
>
> On Sat, Oct 22, 2011 at 8:48 AM, Gilles Gigan <
gilles.gi...@gmail.com> wrote:
> > Roberto,
> > There is one more thing I d like to explore. I noticed there is an
> > "input" field in struct v4l2_buffer, which according to the doc,
> > should be set by the application when queuing a buffer with
> > VIDIOC_QBUF to indicate which input to capture from (?) I guess.
> > I am making a few changes to use this field, and I ll let you know
> > when it s ready to test.
> > Gilles
>
> ...
>
> leggi tutto