I need to process some mp4 videos on the JVM, so I understand I need something that calls into OpenMAX for performance reasons. I read somewhere that the JogAmp or perhaps the JOGL sub-project provide such bindings.

I found some references on the Internet that suggested that there by something like a 'GLMediaPlayer' and a demo 'MovieCube' showcasing this, but I cannot locate any further information or source code. There is some broken applet without references to source code:


So the question is: How do I efficiently decode the frames of an mp4/h264 video on the JVM on the Raspberry Pi with performance ok for the Raspberry Pi? I know omxplayer, but I need to do further processing such as triggering specific sequences in time, applying fade-in/fade-out etc. So I need an API I can call from Java or Scala.

| improve this question | | | | |
  • You make it sound a little unrelated to the Raspberry Pi which would render the question off-topic here. – Ghanima Aug 3 '16 at 16:59
  • @Ghanima JogAmp is specifically built for cross-platform playback, including Raspberry Pi with OpenMAX (= Raspberry Pi HARDWARE ACCEL) support – 0__ Aug 3 '16 at 17:00
  • I don't mind leaving this here, but "cross-platform" would make it not specific to the Pi, meaning you would probably be better off asking on S.O. But you seem to have enough of an account to know that already...you may get an answer, just don't hold your breath. We don't have a huge gaggle of java users (note, ~150 tagged questions in 4+ years). – goldilocks Aug 3 '16 at 17:33
  • Put another way, the fact that you haven't found a pi-specific java lib for this probably means there isn't one, or at least, isn't one worth fooling with, so you want something generic that will make use of the native openMAX interface, which should exploit the hardware. Of course, if you do get it figured out, please leave an answer ;) – goldilocks Aug 3 '16 at 17:44
  • 1
    @goldilocks Yeah, it's a bit sad Raspi folks seem all over Python. I really don't like that language and pushing more for JVM coverage. – 0__ Aug 3 '16 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.