Template code for a local video file for PyTorch Live

Hi, I am currently thinking of an app that runs an ML model frame-by-frame on a video file, is there a template code that would be suitable for this? Sample code for a single image or camera stream exist in PyTorch Live code, but it would be helpful if you could provide a sample code that processes against a local video file, or even pointers for implementation.
Thank you in advance.

Are you looking to do this for model training or for inference of a pre-trained model?

I’m looking to do this fo inference of pre-trained models and custom models (specifically, object detection and santic segmentation). I wanted to try PyTorch Live quickly, but I’m new to react native. So any input would be appreciated.