📜  如何以秒为单位转换帧数 python - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:33.900000             🧑  作者: Mango

代码示例1
from datetime import timedelta

FPS = 24.0
frame_count = 12345
td = timedelta(seconds=(frame_count / FPS))

>>> print td
0:08:34.375000