Start and Stop Recording - Raspberry Pi Forums
does know if it's possible pause , resume recording using camera module? i'm building project mimics functionality of vine app, camera needs record in segments based on how long 1 of gpio pins held high. don't know if possible using raspivid library exists. here code. appreciated! code: select all #!/usr/bin/env python import rpi.gpio gpio subprocess import call time import sleep import urllib2, json, os #setup gpio pins gpio.setmode(gpio.bcm) gpio.setup(25, gpio.in, pull_up_down=gpio.pud_down) gpio.setup(23, gpio.out) vid_count = 1; #get prompt json json_url = "http://testurl.com/data" json_string = urllib2.urlopen(json_url).read() the_data = json.loads(json_string) data = the_data["data"] in data: video = i['video'] prompt = i['prompt'] #upload function def upload(file): url = "http://testurl.com/add" try: call(["curl -f name=img -f img=@" + file + " " + url], shell=true) except: pri...