Answers for "how to convert frame number in seconds python"

0

how to convert frame number in seconds python

from datetime import timedelta

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

>>> print td
0:08:34.375000
Posted by: Guest on May-10-2021

Code answers related to "how to convert frame number in seconds python"

Browse Popular Code Answers by Language