This can recognize your video file and return main 3 scenes like Youtube.
Using pyscenedetect
git clone https://github.com/yoonhero/ai-thumbnail-generator
pip3 install scenedetect[opencv]
python3 ai_detector
Copyright 2021 IAMU Inc all rights reserved.