fix windows issue
This commit is contained in:
parent
b5f2bd0261
commit
fa3dbc6b32
@ -23,7 +23,7 @@ def detect_fps(input_path):
|
|||||||
output = os.popen(f'ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate "{input_path}"').read()
|
output = os.popen(f'ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate "{input_path}"').read()
|
||||||
if "/" in output:
|
if "/" in output:
|
||||||
try:
|
try:
|
||||||
return int(output.split(os.sep)[0]) // int(output.split(os.sep)[1]), output.removesuffix('\n')
|
return int(output.split("/")[0]) // int(output.split("/")[1].strip()), output.strip()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return 30, 30
|
return 30, 30
|
||||||
|
Loading…
Reference in New Issue
Block a user