Re: [v4l4j] Error looking up V4L2 format 34363248

169 views
Skip to first unread message

Gilles Gigan

unread,
Mar 12, 2013, 6:57:45 AM3/12/13
to v4...@googlegroups.com
Hi Martin,
Can you run the DumpInfo app in the v4l4j jar and send the output ?
You ll find the instructions here:
https://code.google.com/p/v4l4j/wiki/TestingV4l4j
Which device are you using ?

Thanks
Gilles


On 12 March 2013 20:22, Martin Vyšný <martin...@gmail.com> wrote:
Good day,
  thank you for your wonderful library. However, I have encountered the following situation: when I instantiate VideoDevice (using new VideoDevice("/dev/video1")), there is the following text printed to the console:

[ v4l2-query.c:49 ] Error looking up V4L2 format 34363248. Please submit a bug report on the v4l4j mailing list.[ v4l2-query.c:474 ] libvideo has encountered an unsupported image format:
[ v4l2-query.c:475 ] H.264 (0x34363248)
[ v4l2-query.c:476 ] Please let the author know about this error.
[ v4l2-query.c:477 ] See the ISSUES section in the libvideo README file.

Then, when I try to call videoDevice.release(), Java segfaults. It seems that it segfaults when it tries to release deviceInfo - perhaps it was not initialized correctly. I am using v4l4j 0.8.10 but the problem is present also on v4l4j 0.9.0. The following text is the relevant snippet from the hs_err_pid file:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  au.edu.jcu.v4l4j.DeviceInfo.doRelease(J)V+0
j  au.edu.jcu.v4l4j.DeviceInfo.release()V+5
j  au.edu.jcu.v4l4j.VideoDevice.release(Z)V+41
j  au.edu.jcu.v4l4j.VideoDevice.release()V+2
j  au.edu.jcu.v4l4j.examples.videoViewer.AbstractVideoViewer.windowClosing(Ljava/awt/event/WindowEvent;)V+22
j  java.awt.AWTEventMulticaster.windowClosing(Ljava/awt/event/WindowEvent;)V+8
j  java.awt.Window.processWindowEvent(Ljava/awt/event/WindowEvent;)V+68
j  javax.swing.JFrame.processWindowEvent(Ljava/awt/event/WindowEvent;)V+2
j  java.awt.Window.processEvent(Ljava/awt/AWTEvent;)V+69
j  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+581
j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
j  java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j  java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+41
j  java.awt.EventQueue.access$200(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
j  java.awt.EventQueue$3.run()Ljava/lang/Void;+12
j  java.awt.EventQueue$3.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.security.ProtectionDomain$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
j  java.security.ProtectionDomain$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+6
j  java.awt.EventQueue$4.run()Ljava/lang/Void;+11
j  java.awt.EventQueue$4.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.security.ProtectionDomain$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)V+245
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

I am curious what the missing V4L2 format means. I'm on Ubuntu Desktop 12.10 x86-32. Thank you for your time,
Sincerely,
Martin Vysny

--
You received this message because you are subscribed to the Google Groups "v4l4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v4l4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Martin Vysny

unread,
Mar 12, 2013, 7:22:43 AM3/12/13
to v4...@googlegroups.com
Hi Gilles,
  certainly, thank you for your quick response. I'm using the Logitech HD Pro Webcam C920. The webcam works correctly in Linux. The output of DumpInfo is as follows:

[ libvideo.c:68 ] Using libvideo version 0.9-0
[ v4l2-query.c:49 ] Error looking up V4L2 format 34363248. Please submit
a bug report on the v4l4j mailing list.[ v4l2-query.c:474 ] libvideo has encountered an unsupported image format:
[ v4l2-query.c:475 ] H.264 (0x34363248)
[ v4l2-query.c:476 ] Please let the author know about this error.
[ v4l2-query.c:477 ] See the ISSUES section in the libvideo README file.
name: HD Pro Webcam C920
Device file: /dev/video1
Supported formats:
YUYV - 18 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/10 - 2/15 - 1/5 - ) - 1600x896 (2/15 - 1/5 - ) - 1920x1080 (1/5 - ) - 2304x1296 (1/2 - ) - 2304x1536 (1/2 - ) - 
MJPEG - 48 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1600x896 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1920x1080 (1/30 - 1/24 - 1/20 - 
1/15 - 1/10 - 2/15 - 1/5 - ) - 
Formats that can be RGB24-converted: 
YUYV - 18 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/10 - 2/15 - 1/5 - ) - 1600x896 (2/15 - 1/5 - ) - 1920x1080 (1/5 - ) - 2304x1296 (1/2 - ) - 2304x1536 (1/2 - ) - 
MJPEG - 48 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1600x896 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1920x1080 (1/30 - 1/24 - 1/20 -
 1/15 - 1/10 - 2/15 - 1/5 - ) - 
Formats that can be BGR24-converted: 
YUYV - 18 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/10 - 2/15 - 1/5 - ) - 1600x896 (2/15 - 1/5 - ) - 1920x1080 (1/5 - ) - 2304x1296 (1/2 - ) - 2304x1536 (1/2 - ) - 
MJPEG - 48 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1600x896 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1920x1080 (1/30 - 1/24 - 1/20 -
 1/15 - 1/10 - 2/15 - 1/5 - ) - 
Formats that can be YUV420-converted: 
YUYV - 18 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/10 - 2/15 - 1/5 - ) - 1600x896 (2/15 - 1/5 - ) - 1920x1080 (1/5 - ) - 2304x1296 (1/2 - ) - 2304x1536 (1/2 - ) - 
MJPEG - 48 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1600x896 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1920x1080 (1/30 - 1/24 - 1/20 -
 1/15 - 1/10 - 2/15 - 1/5 - ) - 
Formats that can be YVU420-converted: 
YUYV - 18 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/10 - 2/15 - 1/5 - ) - 1600x896 (2/15 - 1/5 - ) - 1920x1080 (1/5 - ) - 2304x1296 (1/2 - ) - 2304x1536 (1/2 - ) - 
MJPEG - 48 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1600x896 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1920x1080 (1/30 - 1/24 - 1/20 -
 1/15 - 1/10 - 2/15 - 1/5 - ) - 
Formats that can be JPEG-encoded: 
MJPEG - 48 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1600x896 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 1920x1080 (1/30 - 1/24 - 1/20 -
 1/15 - 1/10 - 2/15 - 1/5 - ) - 
YUYV - 18 - 640x480 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x90 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 160x120 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 176x144 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x180 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 320x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 352x288 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 432x240 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 640x360 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x448 (1/30 - 1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 800x600 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 864x480 (1/24 - 1/20 - 1/15 - 1/10 - 2/15 - 1/5 - ) - 960x720 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1024x576 (1/15 - 1/10 - 2/15 - 1/5 - ) - 1280x720 (1/10 - 2/15 - 1/5 - ) - 1600x896 (2/15 - 1/5 - ) - 1920x1080 (1/5 - ) - 2304x1296 (1/2 - ) - 2304x1536 (1/2 - ) - 
RGB24 - 7 - no resolution information
BGR24 - 6 - no resolution information
YUV420 - 31 - no resolution information
Inputs:
Name: Camera 1
Type: 2(Camera)
Index: 0
Supported standards:
0(None/Webcam)
Control: Contrast - min: 0 - max: 255 - step: 1 - value: 128
Control: White Balance Temperature - min: 2000 - max: 6500 - step: 1 - value: 4291
Control: Zoom, Absolute - min: 100 - max: 500 - step: 1 - value: 100
Control: Exposure, Auto - min: 0 - max: 3 - step: 1 - value: 3
Control: Gain - min: 0 - max: 255 - step: 1 - value: 0
Control: Pan (Absolute) - min: -36000 - max: 36000 - step: 3600 - value: 0
Control: Saturation - min: 0 - max: 255 - step: 1 - value: 128
Control: Sharpness - min: 0 - max: 255 - step: 1 - value: 128
Control: Tilt (Absolute) - min: -36000 - max: 36000 - step: 3600 - value: 0
Control: Focus, Auto - min: 0 - max: 1 - step: 1 - value: 1
Control: Exposure, Auto Priority - min: 0 - max: 1 - step: 1 - value: 1
Control: Power Line Frequency - min: 0 - max: 2 - step: 1 - value: 2
Control: Exposure (Absolute) - min: 3 - max: 2047 - step: 1 - value: 250
Control: Brightness - min: 0 - max: 255 - step: 1 - value: 128
Control: Focus (absolute) - min: 0 - max: 250 - step: 5 - value: 0
Control: Backlight Compensation - min: 0 - max: 1 - step: 1 - value: 0
Control: White Balance Temperature, Auto - min: 0 - max: 1 - step: 1 - value: 1
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb7622276, pid=12781, tid=3060599616
#
# JRE version: 7.0_15-b20
# Java VM: OpenJDK Server VM (23.7-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [libc.so.6+0x7a276]  cfree+0x26
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/vyzivus/Downloads/v4l4j/0.9.0/hs_err_pid12781.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./test.sh: line 4: 12781 Aborted                 (core dumped) java -cp `pwd`/usr/share/java/v4l4j.jar -Dtest.device=/dev/video1 $DUMPINFO

Martin Vysny

unread,
Mar 12, 2013, 7:24:54 AM3/12/13
to v4...@googlegroups.com
Hi Gilles,
  please find the hs_err file attached.
Kind regards,
Martin
hs_err_pid12781.log

Martin Vysny

unread,
Mar 12, 2013, 8:15:02 AM3/12/13
to v4...@googlegroups.com
Hi Gilles,
  just an information: the library works correctly on Ubuntu 10.04 for some reason...
Kind regards,
Martin

Gilles Gigan

unread,
Mar 14, 2013, 1:04:39 AM3/14/13
to v4...@googlegroups.com
Hi guys,
Juraj thanks for the patch. I have applied and committed it into svn.
Martin, can you test the fix when you have a chance ?
Thanks
Gilles


On 13 March 2013 00:46, Juraj Michalak <juraj.m...@gmail.com> wrote:
Dear all,

Here is the fix for that seg. fault:

--- v4l4j-0.9.0/libvideo/v4l2-query.c   2011-10-09 13:39:30.000000000 +0200
+++ v4l4j-0.9.0_my/libvideo/v4l2-query.c        2013-03-12 14:26:56.000000000 +0100

@@ -487,7 +487,7 @@
                }
                fmtd.index++;
        }
-       return fmtd.index;
+       return vdev->info->nb_palettes;
 }
 static int query_tuner(struct video_input_info *vi, int fd, int index){
        struct v4l2_tuner t;


check_palettes_v4l2() method returned wrong detected palettes count if at least one unsupported image format was encountered.

Cheers,
Juraj

Dne úterý, 12. března 2013 10:22:02 UTC+1 Martin Vyšný napsal(a):

Martin Vysny

unread,
Mar 14, 2013, 3:12:57 AM3/14/13
to v4...@googlegroups.com
I have applied the patch to 0.8.10 which I am currently using, and the patch indeed fixes the segfault. Would you like me to checkout svn trunk and test it on that?

Gilles Gigan

unread,
Mar 14, 2013, 5:16:38 PM3/14/13
to v4...@googlegroups.com
Hi Martin,
If Juraj's patch fixes the issue for you, no need to test svn trunk.
Thanks
Gilles

Stan Wijckmans

unread,
Jun 15, 2014, 6:45:40 PM6/15/14
to
I have the same error with the official raspberry pi camera (/dev/video0).
I'm compiled v4l4j from source today (is that 9.1?). So isn't the patch supposed to be in there already, or do I have to match manually?
Of course I'd like to test that first and, not bother you with that, but I don't have access to the pi untill thursday afternoon and I'm kind of close to the deadline for my app...

Anyway, there's a log enclosed from ant test-gui with v4l4j debug.

EDIT: I've just checked it and my source has the patch. The problem is that in that same file in the function around line 48 the comparison never matches so the returnvalue stays -1.

EDIT2: I'm looking through the source a bit and in v4l2-query.c on line 470 there's a call to v4lconvert_enum_fmt (a function inside the driver and not in v4l4j). So maybe the problem is in the pi's camera driver...
Next thursday I'm going to try the userspace driver and check if it still goes wrong with that one. If it doesn't then it's clear the problem is in the pi's kernel driver and not in v4l4j, which means I can start bugging the guys at qualquomm.
log.txt
Reply all
Reply to author
Forward
0 new messages