Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Raspberry Pi 4 #1

Closed
thefpoff opened this issue Jan 9, 2021 · 1 comment
Closed

Issues with Raspberry Pi 4 #1

thefpoff opened this issue Jan 9, 2021 · 1 comment

Comments

@thefpoff
Copy link

thefpoff commented Jan 9, 2021

Issue trying to get this working on a Raspberry Pi 4 running:

Raspbian GNU/Linux 10 (buster).
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Raspbian-2)
OpenJDK Server VM (build 10.0.2+13-Raspbian-2, mixed mode)

Here are the issues with start-armhf.sh

pi@workbenchraspberrypi:~/RivetCam $ bash start-armhf.sh
Error loading properties: setup.properties (No such file or directory)
Opening video device: /dev/video0
[ libvideo.c:68 ] Using libvideo version 0.9-UNKNOWN
[ v4l2-query.c:49 ] Error looking up V4L2 format 34363248. Please submit
a bug report on the v4l4j mailing list.[ v4l2-query.c:484 ] libvideo has skipped an unsupported image format:
[ v4l2-query.c:485 ] H.264 (0x34363248)
[ v4l2-query.c:486 ] Please let the author know about this error.
[ v4l2-query.c:487 ] See the ISSUES section in the libvideo README file.
[ v4l2-query.c:49 ] Error looking up V4L2 format 34325852. Please submit
a bug report on the v4l4j mailing list.[ v4l2-query.c:484 ] libvideo has skipped an unsupported image format:
[ v4l2-query.c:485 ] 32-bit XBGR 8-8-8-8 (0x34325852)
[ v4l2-query.c:486 ] Please let the author know about this error.
[ v4l2-query.c:487 ] See the ISSUES section in the libvideo README file.
Video device name: mmal service 16.1
munmap_chunk(): invalid pointer
start-armhf.sh: line 6: 14557 Aborted java -jar RivetCam.jar $@

And here is the --info

pi@workbenchraspberrypi:~/RivetCam $ ./start-x86-64.sh --info /dev/video0
OpenJDK Server VM warning: You have loaded library /home/pi/RivetCam/x86-64/libv4l4j.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
Cant load v4l4j JNI library
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/pi/RivetCam/x86-64/libv4l4j.so: /home/pi/RivetCam/x86-64/libv4l4j.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2424)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2481)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2678)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2643)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:876)
at java.base/java.lang.System.loadLibrary(System.java:1875)
at au.edu.jcu.v4l4j.VideoDevice.(Unknown Source)
at com.prampec.rivetcam.CameraTools.dumpDeviceInfo(CameraTools.java:98)
at com.prampec.rivetcam.MainFrame.main(MainFrame.java:46)

I tested this to see if I could get a video recorded from the camera and this did work:
ffmpeg -f v4l2 -s 320x240 -r 25 -i /dev/video0 test.avi

Thanks!

@prampec
Copy link
Owner

prampec commented Jan 10, 2021

start-x86-64.sh will not work on RPi. start-armhf.sh is the right way there, as you have tried it first.
The error message shows: libvideo has skipped an unsupported image format: H.264
I have searched for the internet to find a solution for that, but had no luck. It might can happen, that v4l4j or v4l2 does not support H.264 at all?

As far as I know ffmpeg does not use v4l2, so it might work with that. Please try an application, that relys on v4l2.
E.g.: https://linuxtv.org/wiki/index.php/V4l-utils#Utilities_at_v4l-utils

@prampec prampec closed this as completed Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants