MCPcopy Create free account
hub / github.com/Francis-Rings/MotionFollower / get_fps

Function get_fps

src/utils/util.py:137–142  ·  view source on GitHub ↗
(video_path)

Source from the content-addressed store, hash-verified

135
136
137def get_fps(video_path):
138 container = av.open(video_path)
139 video_stream = next(s for s in container.streams if s.type == "video")
140 fps = video_stream.average_rate
141 container.close()
142 return fps

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected