mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 06:33:40 -05:00
bug squashing
This commit is contained in:
parent
fa4bd9e7c1
commit
8b4f6b8d26
4 changed files with 9 additions and 5 deletions
|
|
@ -48,7 +48,7 @@ async def rotate_fernet_key():
|
|||
|
||||
def get_recording_duration(timestamp, stream_key):
|
||||
vid = cv2.VideoCapture(
|
||||
f"/home/onboard/recordings/{stream_key}/{datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S.%fZ').strftime('%Y-%m-%d_%H-%M-%S-%f')}.mp4"
|
||||
f"/recordings/{stream_key}/{datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S.%fZ').strftime('%Y-%m-%d_%H-%M-%S-%f')}.mp4"
|
||||
)
|
||||
return int(
|
||||
(vid.get(cv2.CAP_PROP_FRAME_COUNT) / vid.get(cv2.CAP_PROP_FPS)) / 60
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue