Object detection on recorded footage

Hello,

I am new to the Jetson Nano and have followed this tutorial:
https://news.developer.nvidia.com/realtime-object-detection-in-10-lines-of-python-on-jetson-nano/
I am currently moving my code from RPI4 to the Jetson Nano.

The provided code example worked fine for me with an USB camera but I’d like to throw it also on some footage that I’ve recorded already. What are the alternatives to using gst.Camera here? Is there a documentation for the utils functions?

Please see below to know what code I’m exactly refering to:
import jetson.inference
import jetson.utils

net = jetson.inference.detectNet(“ssd-mobilenet-v2”, threshold=0.5)
camera = jetson.utils.gstCamera(640, 480, “/dev/video0”)
display = jetson.utils.glDisplay()

while display.IsOpen():
img, width, height = camera.CaptureRGBA()
detections = net.Detect(img, width, height)
display.RenderOnce(img, width, height)
display.SetTitle(“Object Detection | Network {:.0f} FPS”.format(net.GetNetworkFPS()))