MCPcopy
hub / github.com/nadermx/backgroundremover / _parse_frame_rate

Function _parse_frame_rate

backgroundremover/utilities.py:18–22  ·  view source on GitHub ↗
(rate_str)

Source from the content-addressed store, hash-verified

16
17
18def _parse_frame_rate(rate_str):
19 try:
20 return float(Fraction(rate_str))
21 except Exception:
22 return float(rate_str)
23
24
25def _alpha_encoding_args(output, alpha_codec, alpha_pix_fmt):

Callers 1

matte_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected