This commit is contained in:
Luke Ogburn
2021-03-31 09:11:41 -04:00
parent a533698227
commit a3c3790781
4 changed files with 23 additions and 3 deletions

19
conn_test.py Normal file
View File

@@ -0,0 +1,19 @@
import os
from signal import signal, SIGINT
from goprocam import GoProCamera, constants
seconds = 4
# helps with video recording
def handler(s, f):
gopro.stopWebcam()
quit()
def takeVideo(time):
signal(SIGINT, handler)
gopro = GoProCamera.GoPro()
gopro.shoot_video(time)
gopro.downloadLastMedia(custom_filename=(location+"plaintext/" + numFiles() + ".mp4"))
gopro.delete("last")
takeVideo(seconds)

View File

@@ -44,8 +44,9 @@ def compress(filename):
def takeVideo(time):
signal(SIGINT, handler)
gopro = GoProCamera.GoPro(ip_address=GoProCamera.GoPro.getWebcamIP())
gopro.video_settings("720p", fps='30')
gopro.shoot_video(time)
gopro.downloadLastMedia(custom_filename=(location+"plaintext/" + numFiles() + ".mp4"))
gopro.downloadLowRes(custom_filename=(location+"plaintext/" + numFiles() + ".mp4"))
gopro.delete("last")
# method to encrypt with ECC, however this is unsupported in pycryptodome

View File

@@ -1 +1 @@
10
300

View File

@@ -1 +1 @@
3
1