updated record cgi

master
giulia 8 years ago
parent b978db23c9
commit 1f2e7f4b44

@ -0,0 +1,5 @@
clips/
*.DS_Store
.DS_Store
*.pyc

@ -10,9 +10,9 @@ print "hello from python<br>"
n = datetime.datetime.now() n = datetime.datetime.now()
basename = n.strftime("%Y%m%dT%H%M%SZ") basename = n.strftime("%Y-%m-%dT%H-%M-%S")
o1 = subprocess.check_output(["scripts/simplerecord.py", "--output", basename+".avi", "--time", "5"]) o1 = subprocess.check_output(["scripts/black2.py", "--output", basename+".avi", "--time", "5"])
print o1 + "<br>\n" print o1 + "<br>\n"
o2 = subprocess.check_output(["ffmpeg", "-i", basename+".avi", "-y", basename+".mp4"]) o2 = subprocess.check_output(["ffmpeg", "-i", basename+".avi", "-y", basename+".mp4"])
print o2 + "<br>\n" print o2 + "<br>\n"

Loading…
Cancel
Save