I have made a stripped down version of the VideoPlayerExample on Raspberry Pi to experiment with performance of video playback. I’m making a VJ app.
Raspberry Pi Model B2.
The code is stripped right down. I’ve removed all the UI stuff. I’m drawing to a 500x500 surface. I’m using my own movie file. I’m running this in single user mode.
The movie I’m using is the first one, the mp4 file, here:
It is mp4, h264, 480x240.
The result is highly erratic.
Sometimes I’m getting a “cannot get pipeline caps” error.
Sometimes I’m getting a repeating error to do with “preroll”.
Sometimes I’m getting just a system freeze, before or after the background draws.
Sometimes it works!!
Short of fully understanding the problem, I’m wondering if anyone can suggest workarounds or some error reporting tricks that would help me build a system that is robust and predictable.