Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #frame #number #seconds #python
ADD COMMENT
Topic
Name
6+3 =