locate mjpg-streamer lib

workspace
Brendan Howell 8 years ago
parent e8e9a6d7da
commit 62282f2987

@ -63,9 +63,13 @@ class Photography(Bureau):
#cmd2 = "/usr/local/bin/uvccapture -m -x3264 -y2448 -o" + tmpimg.name
#subprocess.check_output(cmd1.split())
print(os.getcwd())
cmd = "../../lib/mjpg_streamer/mjpg-streamer-experimental/mjpg_streamer -i 'input_uvc.so -r 3264x2448 -n' -o 'output_file.so -f /tmp/webcam -d 500 -s 1'"
modpath = os.path.dirname(__file__)
mjpg = os.path.join(modpath, "..", "lib", "mjpg-streamer",
"mjpg-streamer-experimental", "mjpg_streamer")
cmd = mjpg.split() + ["-i", "'input_uvc.so -r 3264x2448 -n'", "-o", "'output_file.so -f /tmp/webcam -d 500 -s 1'"]
proc = subprocess.Popen(cmd.split())
print(cmd)
proc = subprocess.Popen(cmd)
# copy last image to the tmpfile
filelist = os.listdir()

Loading…
Cancel
Save