Hello,
I’m working on a video/lighting project on the raspberry pi. The goal is to have an HD video running while different LEDs are ramping up and down in sync with the video.
My initial goal was to base it off of omxplayer’s getCurrentFrame() function:
currentFrame = omxPlayer.getCurrentFrame();
if(currentFrame > 100 && currentFrame < 200)
{
pca->setLED(0, (currentFrame-100) * 40);
}
but the current frame count doesn’t resent upon looping. I’m somewhat stuck at this point and I’m wondering if i need to put either the OMXplayer in a seperate thread (is that even possible b/c of threads not accessing GL?)
I’m also having trouble restarting the video on command after it has ended (instead of looping). Any help is much appreciated.