Unfortunately the processing-glvideo library hasn't been updated in a few years and is archived.
If you really need to use this library, the options I can think off are not super straight forward:
- Try making a copy of the
libraries/glvideo/library/linux-armv6hf
folder and rename it to linux-aarch64
(kept within the same library
). Based on what I read here there's a small chance it might be picked up and with a bit of luck of the 64-bit OS will load/use non 64-bit libraries as well. This isn't tested, so it might not work, but if it does it's a simpler workaround.
- The second option is to clone the library and rebuild it for
aarch64
. This should work, but it's not something I recommend for a beginner.
The steps would be:
- Install a c++ compiler (if you haven't already) (e.g.
sudo apt-get install build-essential
), ensure JDK is installed (and javac
is added to the PATH
environment variable) and install ant (sudo apt-get install ant
).
- build gstreamer
- build the glvideo native (c++) library to java JNI bindings using the supplied Makefile)(e.g.
cd /path/to/your/glvideo-repo-clone/src/native/ && make
) (hopefully no errors there if all the dependencies have been installed succesfully)
- Build the glvideo processing library using ant: e.g.
cd /path/to/your/glvideo-repo-clone && ant
(This should pickup build.xml and build the processing java library)
From a pragmatic point of view it might be simpler to switch languages to get your project over the line.
For example, you can trigger the video playback from command line (bash) as omxplayer should be preinstalled:
omxplayer /path/to/your/video.mp4
(you have additional flags available for fullscreen, looping, etc.)
Additionally, if you need more complex logic that would cumbersome as a shell script you could use a bit of python and the OMXPlayer module. The syntax is different from Java, yes, but it is, in a way, simpler/less verbose and would be faster to iterate with than using Processing on Raspberry Pi with limited resources. (On the long run being familiar with more languages also pays off).
Here is a simple example the omxplayer wrapper provides:
#!/usr/bin/env python3
from omxplayer.player import OMXPlayer
from pathlib import Path
from time import sleep
VIDEO_PATH = Path("../tests/media/test_media_1.mp4")
player = OMXPlayer(VIDEO_PATH)
sleep(5)
player.quit()