Video playback problem with RPi4

After some testing, it seems to me that playing videos in OF (Raspberry Pi4, Raspian OS/buster) it’s almost impossible…
Even the example shipped with OF didn’t work (video/videoPlayerExample): no loop, no speed change, video image sometime gets corrupted
If i try with bigger video (1024x768) it goes sluggish (ofGetFrameRate report almost the expected FPS, but the video goes max 10fps).
I’ve made some test with different video container (avi,mov,mp4), with no luck.

So, there’s something i’m doing wrong, or playing video it’s not possibile?

Thanks!

I’ve found a promising addons ofxOMXPlayer (https://github.com/jvcleave/ofxOMXPlayer) but cannot get it compile…
That’s what i’ve done:

  • dowloaded latest stable release (https://github.com/jvcleave/ofxOMXPlayer)
  • extracted under OF/addons
  • sudo ./install_depends.sh
  • cd OF/addons/ofxOMXPlayer/example-basic (or any other, no differences)
  • make fails with:
/usr/bin/ld: /home/pi/of_v0.11.0_linuxarmv6l_release/addons/obj/linuxarmv6l/Release/ofxOMXPlayer/src/ofxOMXPlayer.o: undefined reference to symbol 'eglCreateImageKHR'
/usr/bin/ld: //opt/vc/lib/libbrcmEGL.so: error adding symbols: DSO missing from command line

Suggestions?

Still trying to get video playing smoothly (without any success), i’ve found some other issue.
Default example videoPlayerExample, playing with

setPixelFormat(OF_PIXELS_NATIVE);

as read here https://forum.openframeworks.cc/t/videoplayerexample-on-raspberrypi/18525/14 and the player crash with segfault
Change to

setPixelFormat(OF_PIXELS_RGBA);

make the window freeze (sigkill/term to close)
Here’s the relevant code, for simplicity:

fingerMovie.setPixelFormat(OF_PIXELS_NATIVE);
fingerMovie.load("movies/fingers.mov");
fingerMovie.setLoopState(OF_LOOP_NORMAL);
fingerMovie.play();