How to extract HDMI input to a custom app

You may try to study this video app