tradermaki
Posts: 12
Joined: Mon Sep 17, 2018 4:16 am

How to upload video to ec2 instance ?

Thu Oct 11, 2018 11:37 pm

I have searched all over trying to find information on how to upload my video to my ec2 instance so if my raspberrypi is stolen or broken the video will be stored on the server. Any help would be appreciated, below is my code for CCTV recording.

Code: Select all

import picamera
import datetime as dt

with picamera.PiCamera() as camera:
    camera.resolution = (1280, 720)
    camera.framerate = 24
    camera.start_preview(fullscreen=False, window = (160,60,640,480))
    camera.annotate_background = picamera.Color('black')
    camera.annotate_text = dt.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
    camera.start_recording('/media/pi/lava21/cctv.h264')
    start = dt.datetime.now()
    while (dt.datetime.now() - start).seconds < 1300000:
        camera.annotate_text = dt.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
        camera.wait_recording(0.2)
    camera.stop_recording()
    camera.stop_preview()

PhatFil
Posts: 618
Joined: Thu Apr 13, 2017 3:55 pm

Re: How to upload video to ec2 instance ?

Fri Oct 12, 2018 1:07 am

perhaps this will help with uploading files
https://www.debuntu.org/wget-wput-or-ho ... -internet/

tradermaki
Posts: 12
Joined: Mon Sep 17, 2018 4:16 am

Re: How to upload video to ec2 instance ?

Fri Oct 12, 2018 8:46 pm

This tutorial suggest wget will only work on local machines and is vulnerable to security issues otherwise :( thank you for the suggestion though, does anybody else have advice ?

PhatFil
Posts: 618
Joined: Thu Apr 13, 2017 3:55 pm

Re: How to upload video to ec2 instance ?

Sat Oct 13, 2018 6:27 pm

tradermaki wrote:
Fri Oct 12, 2018 8:46 pm
This tutorial suggest wget will only work on local machines and is vulnerable to security issues otherwise :( thank you for the suggestion though, does anybody else have advice ?
sorry for the bum steer, google suggests any ftp tool would work, https://github.com/juanfrans/notes/wiki ... ance-(AWS)
still with dropbox this end.. Kermit always was the ftp transfer tool back in the day if you dont like the suggested filezilla
http://www.columbia.edu/kermit/ftpclient.html

Return to “Networking and servers”