From 1f2e7f4b444b5d1c58efbb967066946192266746 Mon Sep 17 00:00:00 2001 From: giulia Date: Tue, 21 Mar 2017 13:36:26 +0100 Subject: [PATCH] updated record cgi --- floppies/giulia/.gitignore | 5 +++++ floppies/giulia/cgi-bin/record.cgi | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 floppies/giulia/.gitignore diff --git a/floppies/giulia/.gitignore b/floppies/giulia/.gitignore new file mode 100644 index 0000000..d1818f0 --- /dev/null +++ b/floppies/giulia/.gitignore @@ -0,0 +1,5 @@ +clips/ +*.DS_Store +.DS_Store +*.pyc + diff --git a/floppies/giulia/cgi-bin/record.cgi b/floppies/giulia/cgi-bin/record.cgi index 5ac84c6..cdb5c90 100755 --- a/floppies/giulia/cgi-bin/record.cgi +++ b/floppies/giulia/cgi-bin/record.cgi @@ -10,9 +10,9 @@ print "hello from python
" 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 + "
\n" o2 = subprocess.check_output(["ffmpeg", "-i", basename+".avi", "-y", basename+".mp4"]) print o2 + "
\n"