cara mengonversi nomor bingkai dalam detik python

from datetime import timedelta

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

>>> print td
0:08:34.375000
Puzzled Porcupine