Skip to content

Commit

Permalink
Change video file format from h264 to mp4
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitel8p committed Nov 13, 2023
1 parent 406204c commit aec4028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def start_websocket():
if not recording:
logging.info("Device not detected. Start recording.")
camera.start_recording(
f"./server/public/recordings/video_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.h264")
f"./server/public/recordings/video_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.mp4")
recording = True
time.sleep(1)
except KeyboardInterrupt:
Expand Down

0 comments on commit aec4028

Please sign in to comment.