Yolov9 Youtube Vidoe inference

I want to run the inference on the YouTube Video using its URL directly. Can you please suggest me how to achieve this in Yolov9 ?
NOTE: I am able to ran the inference on the videos which are stored in my local PC storage but figuring out a way where I get a URL and video is running on a website.

out of scope for OpenCV. it does not concern itself with figuring out how youtube’s CDN works and what files to fetch from there.

use yt-dlp as a module. Use other libraries to read that data and decode it. PyAV is a good choice.

Thank you for your reply. Let me reframe my question again.
Is it possible to run inference on YouTube Video using Yolov9 Model ?