My Project on a Raspberry Pi 2 with Raspian stretch. I want use a GPIO pin to drive 3d shutter glasses (glasses hacked to receive 0 _3V square wave) Video playing on the HDMI port and A Pin goes on when one video frame completes then goes off when the next video frame completes.
Things I’ve tried. HDMI splitter then a VGA converter one of the HDMI’s. This works but requires a bit of electronics to clean up the signal to give me the square wave I want. I’m also hoping in the end to have more than one pin switching. Plus it seems to upset the RPI on occasions possible due to the and shaking between the PI and the monitor. So this solution doesn’t really cut it
Set up the DPI output and get the Vsync from pin 3. Then use mirroring software like rpi-fbcp or raspi2fb to show the same video on the HDMI and DPI at the same time. Main problem here is there is a varying time delay between the HDMI frames and the DPI frames. So they are not synchronised.
I’ve been searching the ol google for near a week now trying stuff but haven’t managed to bottom it.
As the video I’m showing is made up of still images made in to an MPG I could send the individual JPGs to the HDMI and put a pin toggle command between each frame but Python is too slow to get a decent frame rate (ie 60fps or more) . So a smart person maybe able to do this in C or something but it’s beyond me and I can’t find any example close enough on the net to figure it out…
I think it is probably very possible using the Video core API’s like DispmanX but I can’t understand how to use it and again can’t find any examples out there that are close enough for me to tinker with.
So I’m really open to suggestions…
Thanks for reading….