@Mari ,
I understand from your ask is that you need to understand how to use Phyton to process (or analyze) a video on Azure. Here is an example that leverages Azure Video Analyzer, Storage account, Azure IOT tools, and Python to capture, record, and analyze videos using AI.
https://github.com/Azure-Samples/video-analyzer-iot-edge-python
----------
(If the reply was helpful, please don't forget to upvote and accept as an answer, thank you)
Ravi Kanth