I've built an Electron application that uses ffmpeg to transcode videos. I recently incorporated use of Video ToolBox to support use of hardware acceleration for video encoding. This works nicely but fails on older machines. At runtime I need to detect whether hardware acceleration is possible and adjust or not use Video ToolBox appropriately. I've unsucessfully searched the web for information on how to do this.
Can anyone point me in the right direction on this.
Thanks and Regards
Gideon